Skip to content
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
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,22 @@ west build -b frdm_k64f/mk64f12 --sysbuild cannectivity/app/ -- -DSB_CONF_FILE=
After building, MCUboot and the CANnectivity firmware can be flashed to the board by running the
`west flash` command.

Subsequent CANnectivity firmware updates can be applied via USB DFU. In order to do so, the board
must first be booted into USB DFU mode. If your board has a dedicated DFU button (identified by the
`mcuboot-button0` devicetree alias) press and hold it for 5 seconds or press and hold the button
while powering up the board. If your board has a DFU LED (identified by the `mcuboot-led0`
devicetree alias), the LED will flash while the DFU button is being held and change to constant on
once DFU mode is activated. Refer to your board documentation for further details.

Once in DFU mode, the CANnectivity firmware can be updated using
Subsequent CANnectivity firmware updates can be applied via USB DFU using
[dfu-util](https://dfu-util.sourceforge.net/):

```shell
dfu-util -a 1 -D build/app/zephyr/zephyr.signed.bin.dfu
dfu-util -D build/app/zephyr/zephyr.signed.bin.dfu
```

The `dfu-util` command will automatically switch the firmware into DFU mode and reboot into the new
firmware once completed.

If your board has a dedicated DFU button (identified by the `mcuboot-button0` devicetree alias), it
can also be used to force the firmware into DFU mode by pressing and holding it for 5 seconds. If
your board has a DFU LED (identified by the `mcuboot-led0` devicetree alias), the LED will flash
while the DFU button is being held and change to constant on once DFU mode is activated. Refer to
your board documentation for further details.

## CANnectivity as a Zephyr Module

The CANnectivity firmware repository is a [Zephyr
Expand Down
21 changes: 11 additions & 10 deletions doc/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,20 @@ To build CANnectivity with MCUboot integration for USB DFU use :external+zephyr:
After building, MCUboot and the CANnectivity firmware can be flashed to the board by running the
``west flash`` command.

Subsequent CANnectivity firmware updates can be applied via USB DFU. In order to do so, the board
must first be booted into USB DFU mode. If your board has a dedicated DFU button (identified by the
``mcuboot-button0`` devicetree alias) press and hold it for 5 seconds or press and hold the button
while powering up the board. If your board has a DFU LED (identified by the ``mcuboot-led0``
devicetree alias), the LED will flash while the DFU button is being held and change to constant on
once DFU mode is activated. Refer to your board documentation for further details.

Once in DFU mode, the CANnectivity firmware can be updated using
`dfu-util`_:
Subsequent CANnectivity firmware updates can be applied via USB DFU using `dfu-util`_:

.. code-block:: console

dfu-util -a 1 -D build/app/zephyr/zephyr.signed.bin.dfu
dfu-util -D build/app/zephyr/zephyr.signed.bin.dfu

The ``dfu-util`` command will automatically switch the firmware into DFU mode and reboot into the
new firmware once completed.

If your board has a dedicated DFU button (identified by the ``mcuboot-button0`` devicetree alias),
it can also be used to force the firmware into DFU mode by pressing and holding it for 5 seconds. If
your board has a DFU LED (identified by the ``mcuboot-led0`` devicetree alias), the LED will flash
while the DFU button is being held and change to constant on once DFU mode is activated. Refer to
your board documentation for further details.

.. _MCUboot:
https://www.trustedfirmware.org/projects/mcuboot/
Expand Down
Loading