Skip to content

Commit

Permalink
[doc][cmake] update series 1 references to series 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lmnotran committed Aug 27, 2024
1 parent f1a97b4 commit 9e2aca5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 23 deletions.
11 changes: 0 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,3 @@ elseif(OT_FTD OR OT_MTD)
endif()
message("-- OT_EXTERNAL_MBEDTLS = ${OT_EXTERNAL_MBEDTLS}")
message("===================================================================")


# efr32mg12 Sub-GHz support
set(EFR32MG12_915MHZ_PHY_SOURCES
${PROJECT_SOURCE_DIR}/src/efr32mg12/phy/PHY_IEEE802154_915MHZ_OQPSK_EFR32XG12.c
${PROJECT_SOURCE_DIR}/src/efr32mg12/phy/PHY_IEEE802154_915MHZ_2GFSK_EFR32XG12.c
)
string(COMPARE EQUAL "${PLATFORM_LOWERCASE}" "efr32mg12" _cmp)
if (_cmp AND TARGET ${OT_PLATFORM_LIB})
target_sources(${OT_PLATFORM_LIB} PUBLIC ${EFR32MG12_915MHZ_PHY_SOURCES})
endif()
2 changes: 1 addition & 1 deletion examples/example_vendor_slc_extension/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#

# Target board
board: brd4161a
board: brd4186c

# SLCP locations
# NOTE: These paths are relative to the extension's root dir
Expand Down
6 changes: 3 additions & 3 deletions examples/sleepy-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ For setting up the build environment refer to [OpenThread on EFR32](../../src/RE

## 1. Build

In this `README`, all example commands will be targeting the `brd4161a` board on the `efr32mg12` platform. The same commands should work for the other boards
In this `README`, all example commands will be targeting the `brd4186c` board on the `efr32mg24` platform. The same commands should work for the other boards

```bash
$ cd <path-to-ot-efr32>
$ board="brd4161a"
$ board="brd4186c"
$ ./script/build $board
```

The build script will convert the resulting executables into S-Record format and append a `.s37` file extension.

```bash
$ ls build/$board/bin/sleepy*
build/brd4161a/bin/sleepy-demo-ftd build/brd4161a/bin/sleepy-demo-ftd.s37 build/brd4161a/bin/sleepy-demo-mtd build/brd4161a/bin/sleepy-demo-mtd.s37
build/brd4186c/bin/sleepy-demo-ftd build/brd4186c/bin/sleepy-demo-ftd.s37 build/brd4186c/bin/sleepy-demo-mtd build/brd4186c/bin/sleepy-demo-mtd.s37
```

In Silicon Labs Simplicity Studio flash one device with the `sleepy-demo-mtd.s37` image and the other device with the `sleepy-demo-ftd.s37` image.
Expand Down
16 changes: 8 additions & 8 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ Before building example apps, make sure to initialize all submodules. Afterward,

**Example**

The example below demonstrates how to build for `efr32mg12` on `brd4161a`, but the same command maybe used for other platforms and boards.
The example below demonstrates how to build for `efr32mg24` on `brd4186c`, but the same command maybe used for other platforms and boards.

```bash
$ cd <path-to-ot-efr32>
$ git submodule update --init --recursive .
$ board="brd4161a"
$ board="brd4186c"
$ ./script/build $board
...
-- Configuring done
Expand Down Expand Up @@ -175,12 +175,12 @@ Compiled binaries also may be flashed onto the specified EFR32 dev board using [

[j-link-commander]: https://www.segger.com/products/debug-probes/j-link/tools/j-link-commander/

**Example:** Flashing `ot-cli-ftd` to a `brd4161a` device
**Example:** Flashing `ot-cli-ftd` to a `brd4186c` device

```bash
$ cd <path-to-ot-efr32>
$ source ./script/efr32-definitions
$ board="brd4161a"
$ board="brd4186c"
$ cd <path-to-ot-efr32>/build/$board/bin
$ arm-none-eabi-objcopy -O ihex ot-cli-ftd ot-cli-ftd.hex
$ <path-to-JLinkGDBServer>/JLinkExe -device $(efr32_get_jlink_device $board) -speed 4000 -if SWD -autoconnect 1 -SelectEmuBySN <SerialNo>
Expand Down Expand Up @@ -313,11 +313,11 @@ A debug session may be started with [J-LinkGDBServer][jlinkgdbserver].

[jlinkgdbserver]: https://www.segger.com/jlink-gdb-server.html

**Example:** Debugging `ot-cli-ftd` on a `brd4161a` device
**Example:** Debugging `ot-cli-ftd` on a `brd4186c` device

```bash
$ source <path-to-ot-efr32>/script/efr32-definitions
$ board="brd4161a"
$ board="brd4186c"
$ cd <path-to-JLinkGDBServer>
$ sudo ./JLinkGDBServer -if swd -singlerun -device $(efr32_get_jlink_device $board)
$ cd <path-to-ot-efr32>/build/$board/bin
Expand All @@ -334,11 +334,11 @@ $ (gdb) c

The above example demonstrates basic OpenThread capabilities. Enable more features/roles (e.g. commissioner, joiner, DHCPv6 Server/Client, etc.) by assigning compile-options before compiling.

**Example** Building efr32mg12 for board `brd4161a` with some more features/roles enabled
**Example** Building efr32mg24 for board `brd4186c` with some more features/roles enabled

```bash
$ cd <path-to-ot-efr32>
$ ./script/build brd4161a -DOT_COMMISSIONER=ON -DOT_JOINER=ON -DOT_DHCP6_CLIENT=ON -DOT_DHCP6_SERVER=ON
$ ./script/build brd4186c -DOT_COMMISSIONER=ON -DOT_JOINER=ON -DOT_DHCP6_CLIENT=ON -DOT_DHCP6_SERVER=ON
```

<a name="verification"/>
Expand Down

0 comments on commit 9e2aca5

Please sign in to comment.