Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lboue authored Mar 2, 2024
1 parent 0835e9b commit 6f53706
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions silabs_examples/onoff-plug-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Silicon Labs platform.

OR use GN/Ninja directly

$ cd ~/connectedhomeip/examples/onoff-plug-app/efr32
$ cd ~/connectedhomeip/silabs_examples/onoff-plug-app
$ git submodule update --init
$ source third_party/connectedhomeip/scripts/activate.sh
$ export EFR32_BOARD=BRD4161A
Expand All @@ -106,12 +106,12 @@ Silicon Labs platform.

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

$ cd ~/connectedhomeip/examples/onoff-plug-app/efr32
$ cd ~/connectedhomeip/silabs_examples/onoff-plug-app
$ rm -rf out/

* Build the example as Sleepy End Device (SED)

$ ./scripts/examples/gn_efr32_example.sh ./examples/onoff-plug-app/efr32/ ./out/onoff-plug-app_SED BRD4161A --sed
$ ./scripts/examples/gn_silabs_example.sh ./silabs_examples/onoff-plug-app/ ./out/onoff-plug-app_SED BRD4161A --sed

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

Expand All @@ -120,15 +120,15 @@ Silicon Labs platform.
For more build options, help is provided when running the build script without
arguments

./scripts/examples/gn_efr32_example.sh
./scripts/examples/gn_silabs_example.sh

<a name="flashing"></a>

## Flashing the Application

- On the command line:

$ cd ~/connectedhomeip/examples/onoff-plug-app/efr32
$ cd ~/connectedhomeip/silabs_examples/onoff-plug-app
$ python3 out/debug/matter-efr32-onoff-plug-example.flash.py

- Or with the Ozone debugger, just load the .out file.
Expand Down Expand Up @@ -327,19 +327,19 @@ passed to the build scripts.

`matter_progress_logging, matter_detail_logging, matter_automation_logging`

$ ./scripts/examples/gn_efr32_example.sh ./examples/onoff-plug-app/efr32 ./out/onoff-plug-app BRD4164A "matter_detail_logging=false matter_automation_logging=false matter_progress_logging=false"
$ ./scripts/examples/gn_silabs_example.sh ./silabs_examples/onoff-plug-app ./out/onoff-plug-app BRD4164A "matter_detail_logging=false matter_automation_logging=false matter_progress_logging=false"

### Debug build / release build

`is_debug`

$ ./scripts/examples/gn_efr32_example.sh ./examples/onoff-plug-app/efr32 ./out/onoff-plug-app BRD4164A "is_debug=false"
$ ./scripts/examples/gn_silabs_example.sh ./silabs_examples/onoff-plug-app ./out/onoff-plug-app BRD4164A "is_debug=false"

### Disabling LCD

`show_qr_code`

$ ./scripts/examples/gn_efr32_example.sh ./examples/onoff-plug-app/efr32 ./out/onoff-plug-app BRD4164A "show_qr_code=false"
$ ./scripts/examples/gn_silabs_example.sh ./silabs_examples/onoff-plug-app ./out/onoff-plug-app BRD4164A "show_qr_code=false"

### KVS maximum entry count

Expand All @@ -348,4 +348,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_efr32_example.sh ./examples/onoff-plug-app/efr32 ./out/onoff-plug-app BRD4164A kvs_max_entries=50
$ ./scripts/examples/gn_silabs_example.sh ./silabs_examples/onoff-plug-app ./out/onoff-plug-app BRD4164A kvs_max_entries=50

0 comments on commit 6f53706

Please sign in to comment.