Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: firmware: use --sysbuild for nrf9160dk fw_update builds #434

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/_partials-common/build-fw-nrf91.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ values={[

```console
cd ~/golioth-ncs-workspace/zephyr
west build -p auto -b nrf9160dk_nrf9160_ns samples/basic/minimal
west build -p auto -b nrf9160dk/nrf9160/ns samples/basic/minimal
```

</TabItem>
<TabItem value="macos">

```console
cd ~/golioth-ncs-workspace/zephyr
west build -p auto -b nrf9160dk_nrf9160_ns samples/basic/minimal
west build -p auto -b nrf9160dk/nrf9160/ns samples/basic/minimal
```

</TabItem>
<TabItem value="windows">

```console
cd %HOMEPATH%\golioth-ncs-workspace\zephyr
west build -p auto -b nrf9160dk_nrf9160_ns samples\basic\minimal
west build -p auto -b nrf9160dk/nrf9160/ns samples\basic\minimal
```

</TabItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,13 @@ Console](https://console.golioth.io).
### 2. Initial build and flash

```console
west build -b nrf9160dk/nrf9160/ns examples/zephyr/fw_update
west build -b nrf9160dk/nrf9160/ns --sysbuild examples/zephyr/fw_update
west flash
```

By default this will build and run version `v1.2.3` firmware on the Nordic
nRF9160 development kit.

:::tip Building for other devices

The Nordic version of Zephyr (NCS) uses a slightly different build command from
upstream Zephyr. For non-Nordic boards the build command should also use the
`--sysbuild` flag:

```console
# Example build command for NXP i.MX RT1024 Evaluation Kit
west build -b mimxrt1024_evk --sysbuild examples/zephyr/fw_update
west flash
```

:::

### 3. Rebuild firmware with new version number
Expand All @@ -83,7 +71,7 @@ CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION="1.2.4"
Then build the application a second time.

```console
west build -b nrf9160dk_nrf9160_ns examples/zephyr/fw_update
west build -b nrf9160dk/nrf9160/ns --sysbuild examples/zephyr/fw_update
```

:::note
Expand Down
Loading