2.8
Flashing DFU firmware file on STM board on Linux
2.8.1
STM32f042k6
This section details how to load the DFU firmware file onto STM32f042k6 MCU on
Linux. First, install the required software tool from Terminal using the command:
After installing the dfu-util software tool, use the following procedure to conduct the
firmware upgrade and load the upgraded firmware file using dfu-util onto the board's
MCU on Linux software platform.
Switch the device to DFU Mode using the command "bootloader" sent through the
CDC interface. Restart the device.
Use the following command to drop the DFU firmware file onto the STM board:
sudo dfu-util -vvv -a 0 -e -t 2048 -s :force:mass-
erase:leave -D STM32F042K6_Firmware.dfu
After uploading the file, it is necessary to reset the device.
2.8.2
STM32f103c8
An ST-Link debugger needs to be put in place to lower the firmware. Firmware is
loaded via the bootloader using the following command:
sudo dfu-util -a 0 -D stm32f103c8_firmware.bin
2.9
Flashing Firmware File on STM Board using STM32CubeProgrammer
STM32CubeProgrammer is an all-in-one multi-OS software tool for programming
STM32 products. It provides an easy-to-use and efficient environment for reading,
writing and verifying device memory through both the debug interface (JTAG and
SWD) and the bootloader interface (UART, USB DFU, I 2 C, SPI, CAN).
CEC Client Installation
sudo apt-get install dfu-util
17