forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request #35: V0.2.0 doc updates
Merge in WMN_TOOLS/matter from v0.2.0-doc-updates to silabs Squashed commit of the following: commit ece0b96ad6bd2a79c110ce3f286f2c600dbc2f31 Author: Mathieu Kardous <[email protected]> Date: Tue Aug 16 11:53:05 2022 -0400 update submodule checkout command commit 8431661578b8a80b447d9673d042be3ea8c9eeed Merge: d48392a8d 19ccdb8ae Author: DOMAINA\elsherh <[email protected]> Date: Tue Aug 16 10:52:17 2022 -0400 Merge branch 'v0.2.0-doc-updates' of https://stash.silabs.com/scm/wmn_tools/matter into v0.2.0-doc-updates commit d48392a8dc96b13a1b2d5e54fdb3f3615fc75359 Author: DOMAINA\elsherh <[email protected]> Date: Tue Aug 16 10:50:40 2022 -0400 added latest updates to SETUP.md commit 19ccdb8ae8af3f2e8b53573611d7ebc616bb2717 Author: Rehan Rasool <[email protected]> Date: Tue Aug 16 10:47:38 2022 -0400 Re-add OTA documentation link commit c8e79e983949b6bf3d345e9577ac4d366959845d Author: Rehan Rasool <[email protected]> Date: Tue Aug 16 10:26:29 2022 -0400 Add reference to VS Code extensions commit 492eaa1927ead3030a9074cae8652c712679b395 Merge: 7ec88b609 40466c356 Author: DOMAINA\elsherh <[email protected]> Date: Tue Aug 16 10:39:15 2022 -0400 Conflicts resolved commit 7ec88b6094996e67ad169167958dc0664f322a67 Author: DOMAINA\elsherh <[email protected]> Date: Tue Aug 16 09:35:09 2022 -0400 had to remove a line .... oops commit 019e40724f7460ee371a8dfa18d0bf9cc0b96726 Author: DOMAINA\elsherh <[email protected]> Date: Tue Aug 16 09:32:56 2022 -0400 modified SETUP.md by adding additional installation steps commit bb71d1915537249bb0fc8e246d94d7fc7238e568 Author: DOMAINA\elsherh <[email protected]> Date: Mon Aug 15 17:20:16 2022 -0400 Added Requirements for VScode Environment Setup commit d784a7f57e4d4b05fa0babe2d600e68215b0b9f3 Author: Rehan Rasool <[email protected]> Date: Mon Aug 15 15:28:27 2022 -0400 Change file encoding to UTF-8, not sure how it got changed previously to UTF-8-BOM which was resulting in it not rendering properly commit 7f409513b38e4bafa548ecb5aa7da49570f022f0 Author: Rehan Rasool <[email protected]> Date: Mon Aug 15 15:13:50 2022 -0400 Readd anchor link commit a796309d3c4fb2bbc210db1a157205248785194f Author: Rehan Rasool <[email protected]> Date: Mon Aug 15 15:07:29 2022 -0400 Fix typo commit 9aa2e76fde5edf79925cfe48a4d14825b8650a79 Author: Rehan Rasool <[email protected]> Date: Mon Aug 15 15:01:17 2022 -0400 Make filename extension lowercase commit 455e2d56c28b238c3c204031a5a4ec8a2c7487a6 Author: Rehan Rasool <[email protected]> Date: Mon Aug 15 14:57:14 2022 -0400 Add build, flash, debug links in main silabs readme commit 8af152f3d34242977fc4c9669b9bca62f5f1c512 Author: Rehan Rasool <[email protected]> Date: Mon Aug 15 14:38:32 2022 -0400 Make VS Code doc headings consistent with other doc headings commit 8b10446d7c79d8a194909054fd686697b4e21adc Author: Ezra Hale <[email protected]> Date: Mon Aug 15 13:40:47 2022 -0400 updates from Catherine commit 779a7220ec5fa851c19599f5fa5209765c2cee8c Author: Ezra Hale <[email protected]> Date: Mon Aug 15 11:19:53 2022 -0400 updated some grammar issues etc... commit 11a7256f09e4dad30f5b35d9ce93ce7393b2253b Author: Junior Martinez <[email protected]> Date: Mon Aug 15 11:05:28 2022 -0400 restore wiseconnect commit hash to the expected one commit 5e3d4ab62e0ba18b0011becfa179b2d26e4cd563 Author: DOMAINA\elsherh <[email protected]> Date: Sat Aug 13 17:26:13 2022 -0400 added documentation for Debugging and Flashing the MATTER Examples on vscode. >> jira : MATTER-21 commit cfb41fc1a54d3a1b180a67ef74c02dc02345d52a Author: Shayna Kaushal <[email protected]> Date: Thu Aug 11 15:53:12 2022 -0400 rs9116 firmware path ... and 12 more commits
- Loading branch information
1 parent
c38c312
commit c46c036
Showing
29 changed files
with
461 additions
and
596 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Building in VS Code | ||
|
||
This section covers building the binaries required for [ Flashing ](FLASH.md) and | ||
[ Debugging ](DEBUG.md) the target Matter Accessory Devices. | ||
|
||
<a name="linMac"></a> | ||
|
||
## Linux/Mac | ||
|
||
### Step 1: | ||
|
||
Use the shortcut (Ctrl + Shift + P) to trigger the command pallet. | ||
|
||
### Step 2: | ||
|
||
Search for "run build task" and select the "Run Build Task" option. | ||
|
||
### Step 3: | ||
|
||
A new drop down menu will appear, select "Build efr32 example". | ||
|
||
### Step 4: | ||
|
||
On the next menu select an EFR32 example to build. | ||
|
||
### Step 5: | ||
|
||
Select the appropriate target board. | ||
|
||
![](../../images/build_efr32_example.gif) | ||
|
||
## Windows | ||
|
||
Building for Windows requires one extra step prior to running the build example | ||
task. | ||
|
||
### Step 1: | ||
|
||
Press (Ctrl + Shift + P) to trigger the command pallet. | ||
|
||
### Step 2: | ||
|
||
Search for "run build task" and select "Run build task" from the drop | ||
down menu. | ||
|
||
### Step 3: | ||
|
||
On the next menu, select "Windows setup" from the options. | ||
|
||
### Step 4: | ||
|
||
The next menu contains two options, "setup" and | ||
"cleanup". Select _setup_ in order to initiate the setup process or _cleanup_ to | ||
clean up the environment after building the examples. This step installs crucial | ||
packages that are required to build the examples such as openssl. if openssl | ||
is not detected, an installation will be initiated in a new window. Follow the installation prompts in order for the setup to be successful. | ||
|
||
### Step 5: | ||
|
||
This step is identical to the steps for building on Linux/Mac, Refer to | ||
that [ section ](#linMac). | ||
|
||
## ![](../../images/win_run_setup.gif) | ||
|
||
|
||
----- | ||
|
||
[Table of Contents](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Debugging in VS Code | ||
|
||
This section covers remote Debugging (GDB jlink) of Matter Examples in VS Code. | ||
|
||
## Requirements | ||
|
||
1. C/C++ Extension Pack (_vscode extension_) - language support | ||
2. Cortex-Debug (_vscode extension_) - GDB debugger support | ||
3. ARM GCC Toolchain | ||
(https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads) - | ||
required arm-none-eabi tools | ||
4. J-Link Software Tools - required J-Link GDB Server for J-Link based debuggers | ||
(https://www.segger.com/downloads/jlink) | ||
|
||
## Settings | ||
|
||
Before starting a debug session please ensure the following: | ||
|
||
<ol> | ||
<div style="text-align: justify"> | ||
<li> A path to "arm-none-eabi-gdb.exe" is provided in the "Settings.Json" file under the "cortex-debug.gdbPath.windows" property.</li> | ||
<li> A path to the GDB jlink server executable is provided in the launch.Json file for the property "serverpath". Find this property under the configuration name "Debug efr32 example app"</li> | ||
</ol> | ||
|
||
## Debugging | ||
|
||
<ol> | ||
|
||
### Step 1: | ||
|
||
Use the shortcut (Ctrl + Shift + P) to trigger the command pallet. | ||
|
||
### Step 2: | ||
|
||
A drop down menu will appear along with a prompt. Please | ||
select the "Debug efr32 example app" and Start Debugging, or press F5 on | ||
your keyboard. | ||
|
||
### Step 3: | ||
|
||
Select the example you want to debug. | ||
|
||
### Step 4: | ||
|
||
Select the desired target device, from the drop down menu. | ||
|
||
![](../../images/debug_session.gif) | ||
|
||
## </ol> | ||
|
||
----- | ||
|
||
[Table of Contents](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Flashing EFR32 Examples in VS Code | ||
|
||
This section covers flashing efr32 examples to target devices. | ||
|
||
## Requirements | ||
|
||
1. Simplicity Commander - The Standalone Utility to flash the target devices can | ||
be found in the following links: | ||
[installer for windows](https://www.silabs.com/documents/public/software/SimplicityCommander-Windows.zip), | ||
[installer for MAC](https://www.silabs.com/documents/public/software/SimplicityCommander-Mac.zip), | ||
[installer for Linux](https://www.silabs.com/documents/public/software/SimplicityCommander-Linux.zip). | ||
please ensure the proper directories are added to the PATH. | ||
2. Python - Ensure that Python is installed and the proper directories are | ||
added to the PATH. | ||
|
||
## Flashing | ||
|
||
<ol> | ||
|
||
### Step 1: | ||
|
||
Use the shortcut (Ctrl + Shift + P) to trigger the command pallet. | ||
|
||
### Step 2: | ||
|
||
Search for "run build task" and select "Run build task" from the drop | ||
down menu. | ||
|
||
### Step 3: | ||
|
||
Select "Flash efr32 example" from the options. | ||
|
||
### Step 4: | ||
|
||
On the next down menu, please choose the proper example to flash to your | ||
target device. The example must have an "out" directory that contains a | ||
binary file with the ".out" extension. | ||
|
||
### Step 4: | ||
|
||
The final prompt will ask the user to choose the target device. Please select the target device. | ||
|
||
## ![](../../images/flash_efr32_example.gif) | ||
|
||
</ol> | ||
|
||
----- | ||
|
||
[Table of Contents](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Logs in VS Code | ||
|
||
TODO | ||
|
||
--- | ||
|
||
[Table of Contents](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Setup VS Code environment | ||
|
||
## Requirements | ||
|
||
1. Install Visual Studio Code for your operating system of choice here: | ||
https://code.visualstudio.com/Download | ||
2. Install [Git](https://git-scm.com/) if you haven't already | ||
3. *Windows Only* Enable git to use LF instead of CLRF by default: `git config | ||
--global core.autocrlf false` | ||
4. Git clone the Silicon Labs Matter repository here: | ||
https://github.com/SiliconLabs/matter | ||
5. Launch Visual Studio Code, and open the cloned folder | ||
6. When prompted to "install recommended extensions" please select "Install" | ||
* Recommended Extensions can be found [here](../../../../.vscode/extensions.json) | ||
7. Ensure the following extensions are installed: | ||
1. C/C++ Extension Pack - language support for C/C++ | ||
2. Python - language support for Python | ||
3. Cortex-Debug - GDB debugger support | ||
8. ARM GCC Toolchain | ||
(https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads) - | ||
required arm-none-eabi tools | ||
9. J-Link Software Tools - required J-Link GDB Server for J-Link based debuggers | ||
(https://www.segger.com/downloads/jlink) | ||
10. Python - (https://www.python.org/downloads/) | ||
|
||
## Bootstrapping your source tree (one time) | ||
|
||
1. Under the "Terminal" menu (or using shortcut Ctrl+shift+p), select "Run | ||
Task..." | ||
2. Select the "Bootstrap" task | ||
|
||
----- | ||
|
||
[Table of Contents](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Tasks in VS Code | ||
|
||
VS Code offers a great way for developers to customize their development | ||
environment through the use of "tasks". The following key tasks have been | ||
provided to facilitate the development experience. | ||
|
||
1. [Build](BUILD.md) | ||
2. [Flash](FLASH.md) | ||
3. [Debug](DEBUG.md) <br><br> | ||
|
||
----- | ||
|
||
[Table of Contents](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.