Skip to content

Commit

Permalink
Pull request project-chip#1111: [DOC][Cherry-pick CSA]Silabs examples…
Browse files Browse the repository at this point in the history
… readme contained old paths.

Merge in WMN_TOOLS/matter from cp/doc_example_csa to RC_2.2.0-1.2

Squashed commit of the following:

commit 964079f7a18b4336a611e8fcb92bfa683e4c02ea
Author: Junior Martinez <[email protected]>
Date:   Mon Aug 28 11:04:05 2023 -0400

    Silabs examples readme contained old paths. update them (project-chip#28900)
  • Loading branch information
jmartinez-silabs committed Aug 30, 2023
1 parent 48a3388 commit c017696
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 76 deletions.
29 changes: 13 additions & 16 deletions examples/light-switch-app/silabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Silicon Labs platform.
* Build the example application:

cd ~/connectedhomeip
./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs/efr32/ ./out/light-switch-app BRD4187C
./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs/ ./out/light-switch-app BRD4187C

- To delete generated executable, libraries and object files use:

Expand All @@ -115,7 +115,7 @@ Silicon Labs platform.

OR use GN/Ninja directly

$ cd ~/connectedhomeip/examples/light-switch-app/silabs/efr32
$ cd ~/connectedhomeip/examples/light-switch-app/silabs
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
$ export SILABS_BOARD=BRD4187C
Expand All @@ -124,28 +124,28 @@ Silicon Labs platform.

- To delete generated executable, libraries and object files use:

$ cd ~/connectedhomeip/examples/light-switch-app/silabs/efr32
$ cd ~/connectedhomeip/examples/light-switch-app/silabs
$ rm -rf out/

* Build the example with Matter shell

./scripts/examples/gn_silabs_example.sh examples/light-switch-app/silabs/efr32/ out/light-switch-app BRD4187C chip_build_libshell=true
./scripts/examples/gn_silabs_example.sh examples/light-switch-app/silabs/ out/light-switch-app BRD4187C chip_build_libshell=true

* Build the example as Intermittently Connected Device (ICD)

$ ./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs/efr32/ ./out/light-switch-app_ICD BRD4187C --icd
$ ./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs/ ./out/light-switch-app_ICD BRD4187C --icd

or use gn as previously mentioned but adding the following arguments:

$ gn gen out/debug '--args=SILABS_BOARD="BRD4187C" enable_sleepy_device=true chip_openthread_ftd=false chip_build_libshell=true'

* Build the example with pigweed RCP

$ ./scripts/examples/gn_silabs_example.sh examples/light-switch-app/silabs/efr32/ out/light-switch-app_rpc BRD4187C 'import("//with_pw_rpc.gni")'
$ ./scripts/examples/gn_silabs_example.sh examples/light-switch-app/silabs/ out/light-switch-app_rpc BRD4187C 'import("//with_pw_rpc.gni")'

or use GN/Ninja Directly

$ cd ~/connectedhomeip/examples/light-switch-app/silabs/efr32
$ cd ~/connectedhomeip/examples/light-switch-app/silabs
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
$ export SILABS_BOARD=BRD4187C
Expand All @@ -161,7 +161,7 @@ arguments

- On the command line:

$ cd ~/connectedhomeip/examples/light-switch-app/silabs/efr32
$ cd ~/connectedhomeip/examples/light-switch-app/silabs
$ python3 out/debug/matter-silabs-light-switch-example.flash.py

- Or with the Ozone debugger, just load the .out file.
Expand All @@ -173,7 +173,6 @@ Releases page on

- On the command line:


$ commander flash bootloader_binaries/bootloader-storage-internal-single-512k-BRD4187C-gsdk4.1.s37

## Viewing Logging Output
Expand Down Expand Up @@ -216,12 +215,10 @@ combination with JLinkRTTClient as follows:

$ JLinkExe -device EFR32MG12PXXXF1024 -if JTAG -speed 4000 -autoconnect 1


For MG21 use:

$ JLinkExe -device EFR32MG21AXXXF1024 -if SWD -speed 4000 -autoconnect 1


For MG24 use:

$ JLinkExe -device EFR32MG24AXXXF1536 -if SWD -speed 4000 -autoconnect 1
Expand Down Expand Up @@ -402,7 +399,7 @@ To track memory usage you can set `enable_heap_monitoring = true` either in the
BUILD.gn file or pass it as a build argument to gn. This will print on the RTT
console the RAM usage of each individual task and the number of Memory
allocation and Free. While this is not extensive monitoring you're welcome to
modify `examples/platform/silabs/efr32/MemMonitoring.cpp` to add your own memory
modify `examples/platform/silabs/MemMonitoring.cpp` to add your own memory
tracking code inside the `trackAlloc` and `trackFree` function

## OTA Software Update
Expand All @@ -421,19 +418,19 @@ features can easily be toggled on or off. Here is a short list of options :

chip_progress_logging, chip_detail_logging, chip_automation_logging

$ ./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs/efr32 ./out/light-switch-app BRD4164A "chip_detail_logging=false chip_automation_logging=false chip_progress_logging=false"
$ ./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs ./out/light-switch-app BRD4164A "chip_detail_logging=false chip_automation_logging=false chip_progress_logging=false"

### Debug build / release build

is_debug

$ ./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs/efr32 ./out/light-switch-app BRD4164A "is_debug=false"
$ ./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs ./out/light-switch-app BRD4164A "is_debug=false"

### Disabling LCD

show_qr_code

$ ./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs/efr32 ./out/light-switch-app BRD4164A "show_qr_code=false"
$ ./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs ./out/light-switch-app BRD4164A "show_qr_code=false"

### KVS maximum entry count

Expand All @@ -442,4 +439,4 @@ kvs_max_entries
Set the maximum Kvs entries that can be stored in NVM (Default 75)
Thresholds: 30 <= kvs_max_entries <= 255

$ ./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs/efr32 ./out/light-switch-app BRD4164A kvs_max_entries=50
$ ./scripts/examples/gn_silabs_example.sh ./examples/light-switch-app/silabs ./out/light-switch-app BRD4164A kvs_max_entries=50
24 changes: 12 additions & 12 deletions examples/lighting-app/silabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Silicon Labs platform.
* Build the example application:

cd ~/connectedhomeip
./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs/efr32/ ./out/lighting-app BRD4187C
./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs/ ./out/lighting-app BRD4187C

- To delete generated executable, libraries and object files use:

Expand All @@ -111,7 +111,7 @@ Silicon Labs platform.

OR use GN/Ninja directly

$ cd ~/connectedhomeip/examples/lighting-app/silabs/efr32
$ cd ~/connectedhomeip/examples/lighting-app/silabs
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
$ export SILABS_BOARD=BRD4187C
Expand All @@ -120,24 +120,24 @@ Silicon Labs platform.

- To delete generated executable, libraries and object files use:

$ cd ~/connectedhomeip/examples/lighting-app/silabs/efr32
$ cd ~/connectedhomeip/examples/lighting-app/silabs
$ rm -rf out/

* Build the example as Intermittently Connected Device (ICD)

$ ./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs/efr32/ ./out/lighting-app_ICD BRD4187C --icd
$ ./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs/ ./out/lighting-app_ICD BRD4187C --icd

or use gn as previously mentioned but adding the following arguments:

$ gn gen out/debug '--args=SILABS_BOARD="BRD4187C" enable_sleepy_device=true chip_openthread_ftd=false'

* Build the example with pigweed RPC

$ ./scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs/efr32/ out/lighting_app_rpc BRD4187C 'import("//with_pw_rpc.gni")'
$ ./scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs/ out/lighting_app_rpc BRD4187C 'import("//with_pw_rpc.gni")'

or use GN/Ninja Directly

$ cd ~/connectedhomeip/examples/lighting-app/silabs/efr32
$ cd ~/connectedhomeip/examples/lighting-app/silabs
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
$ export SILABS_BOARD=BRD4187C
Expand All @@ -155,7 +155,7 @@ arguments

- On the command line:

$ cd ~/connectedhomeip/examples/lighting-app/silabs/efr32
$ cd ~/connectedhomeip/examples/lighting-app/silabs
$ python3 out/debug/matter-silabs-lighting-example.flash.py

- Or with the Ozone debugger, just load the .out file.
Expand Down Expand Up @@ -341,7 +341,7 @@ To track memory usage you can set `enable_heap_monitoring = true` either in the
BUILD.gn file or pass it as a build argument to gn. This will print on the RTT
console the RAM usage of each individual task and the number of Memory
allocation and Free. While this is not extensive monitoring you're welcome to
modify `examples/platform/silabs/efr32/MemMonitoring.cpp` to add your own memory
modify `examples/platform/silabs/MemMonitoring.cpp` to add your own memory
tracking code inside the `trackAlloc` and `trackFree` function

## OTA Software Update
Expand Down Expand Up @@ -369,19 +369,19 @@ passed to the build scripts.

`chip_progress_logging, chip_detail_logging, chip_automation_logging`

$ ./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs/efr32 ./out/lighting-app BRD4164A "chip_detail_logging=false chip_automation_logging=false chip_progress_logging=false"
$ ./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs ./out/lighting-app BRD4164A "chip_detail_logging=false chip_automation_logging=false chip_progress_logging=false"

### Debug build / release build

`is_debug`

$ ./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs/efr32 ./out/lighting-app BRD4164A "is_debug=false"
$ ./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs ./out/lighting-app BRD4164A "is_debug=false"

### Disabling LCD

`show_qr_code`

$ ./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs/efr32 ./out/lighting-app BRD4164A "show_qr_code=false"
$ ./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs ./out/lighting-app BRD4164A "show_qr_code=false"

### KVS maximum entry count

Expand All @@ -390,4 +390,4 @@ passed to the build scripts.
Set the maximum Kvs entries that can be stored in NVM (Default 75)
Thresholds: 30 <= kvs_max_entries <= 255

$ ./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs/efr32 ./out/lighting-app BRD4164A kvs_max_entries=50
$ ./scripts/examples/gn_silabs_example.sh ./examples/lighting-app/silabs ./out/lighting-app BRD4164A kvs_max_entries=50
24 changes: 12 additions & 12 deletions examples/lock-app/silabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Mac OS X

```
cd ~/connectedhomeip
./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs/efr32/ ./out/lock_app BRD4187C
./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs/ ./out/lock_app BRD4187C
```

- To delete generated executable, libraries and object files use:
Expand All @@ -115,7 +115,7 @@ Mac OS X
OR use GN/Ninja directly

```
$ cd ~/connectedhomeip/examples/silabs/lock-app/efr32
$ cd ~/connectedhomeip/examples/lock-app/silabs/
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
$ export SILABS_BOARD=BRD4187C
Expand All @@ -126,14 +126,14 @@ Mac OS X
- To delete generated executable, libraries and object files use:

```
$ cd ~/connectedhomeip/examples/lock-app/silabs/efr32
$ cd ~/connectedhomeip/examples/lock-app/silabs
$ rm -rf out/
```

* Build the example as Intermittently Connected Device (ICD)

```
$ ./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs/efr32/ ./out/lock-app_ICD BRD4187C --icd
$ ./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs/ ./out/lock-app_ICD BRD4187C --icd
```

or use gn as previously mentioned but adding the following arguments:
Expand All @@ -145,13 +145,13 @@ Mac OS X
* Build the example with pigweed RCP

```
$ ./scripts/examples/gn_silabs_example.sh examples/lock-app/silabs/efr32/ out/lock_app_rpc BRD4187C 'import("//with_pw_rpc.gni")'
$ ./scripts/examples/gn_silabs_example.sh examples/lock-app/silabs/ out/lock_app_rpc BRD4187C 'import("//with_pw_rpc.gni")'
```

or use GN/Ninja Directly

```
$ cd ~/connectedhomeip/examples/lock-app/silabs/efr32
$ cd ~/connectedhomeip/examples/lock-app/silabs
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
$ export SILABS_BOARD=BRD4187C
Expand All @@ -171,7 +171,7 @@ arguments
- On the command line:

```
$ cd ~/connectedhomeip/examples/lock-app/silabs/efr32
$ cd ~/connectedhomeip/examples/lock-app/silabs
$ python3 out/debug/matter-silabs-lock-example.flash.py
```

Expand Down Expand Up @@ -373,7 +373,7 @@ To track memory usage you can set `enable_heap_monitoring = true` either in the
BUILD.gn file or pass it as a build argument to gn. This will print on the RTT
console the RAM usage of each individual task and the number of Memory
allocation and Free. While this is not extensive monitoring you're welcome to
modify `examples/platform/silabs/efr32/MemMonitoring.cpp` to add your own memory
modify `examples/platform/silabs/MemMonitoring.cpp` to add your own memory
tracking code inside the `trackAlloc` and `trackFree` function

## OTA Software Update
Expand All @@ -393,23 +393,23 @@ features can easily be toggled on or off. Here is a short list of options :
`chip_progress_logging, chip_detail_logging, chip_automation_logging`

```
$ ./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs/efr32 ./out/lock-app BRD4164A "chip_detail_logging=false chip_automation_logging=false chip_progress_logging=false"
$ ./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs ./out/lock-app BRD4164A "chip_detail_logging=false chip_automation_logging=false chip_progress_logging=false"
```

### Debug build / release build

`is_debug`

```
$ ./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs/efr32 ./out/lock-app BRD4164A "is_debug=false"
$ ./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs ./out/lock-app BRD4164A "is_debug=false"
```

### Disabling LCD

`show_qr_code`

```
$ ./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs/efr32 ./out/lock-app BRD4164A "show_qr_code=false"
$ ./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs ./out/lock-app BRD4164A "show_qr_code=false"
```

### KVS maximum entry count
Expand All @@ -420,5 +420,5 @@ features can easily be toggled on or off. Here is a short list of options :
Set the maximum Kvs entries that can be stored in NVM (Default 75)
Thresholds: 30 <= kvs_max_entries <= 255

$ ./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs/efr32 ./out/lock-app BRD4164A kvs_max_entries=50
$ ./scripts/examples/gn_silabs_example.sh ./examples/lock-app/silabs ./out/lock-app BRD4164A kvs_max_entries=50
```
Loading

0 comments on commit c017696

Please sign in to comment.