Our website is under construction. Please stay tuned!

dwm_fw_update_start

This call is available only on the ethernet gateway. It starts the firmware update process. It should be called at the beginning before any call to dwm_fw_update_xfer. If accepted, the request returns command status: “ok” followed by the first data request. The data request should always be handled by the dwm_fw_update_xfer. The update is not started if refused.

The reasons for refused firmware update are:

  • not permitted - invalid hardware version is given, or the module is not in the bootloader mode (the bootloader mode is always entered for a short period after the reset; the time for which the module stays in the bootloader mode can be configured by dwm_boot_cfg_set)

  • internal error

  • busy - firmware update is already in progress.

SPI/UART example

TLV request

type

Length

hardware version

firmware version

firmware checksum

size

0x3E

0x10

0x2A 0x00 0xCA 0xDE

0x01 0x00 0x01 0x01

0xea 0xF5 0x67 0x6D

0xC4 0x26 0x00 0x00

Type 0x3E (62 dec) means command dwm_fw_update_start

TLV response

type

Length

Value

type

length

Value

0x40

0x01

0x00

0x7E

0x08

offset

size

0x00 0x00 0x00 0x00

0x00 0x10 0x00 0x00

Type 0x40 means status code
Type 0x7E (126) means data request