2. FW Update Example Tutorial¶
This example explains the firmware update process for both ABAB and ACAB silicon revisions. Use this example as a reference for integrating TROPIC01 firmware updates into your application. You will learn:
- How to read the current firmware versions.
- How to update the firmware using
lt_do_mutable_fw_update().
TROPIC01 Firmware
For more information about the firmware itself, refer to the TROPIC01 Firmware section.
Firmware Update Precautions
Use a stable power source and avoid disconnecting the TROPIC01 (devkit) or rebooting your host device (computer or microcontroller) during the update. Interrupting the firmware update can brick the device.
Build and Run¶
Building and running the example
Go to the example's project directory:
cd examples/stm32/<your_board>/fw_update/
Create a build/ directory and switch to it:
mkdir build/
cd build/
Open your STM32's serial port using your preferred serial monitor with configuration 8-N-1 and baudrate set to 115200. By default, the serial port is mapped to /dev/ttyACM0. For example, using GTKTerm:
gtkterm -p /dev/ttyACM0 -s 115200
Warning
Make sure only one serial monitor has the STM32's serial port open, otherwise your output may appear mangled.
And finally, build and run the example:
cmake ..
make
make flash
TBA
TBA
After this, you should see a colored output in your serial monitor.