STM32 firmware command line tools (please adjust 0x200000
):
STM32_Programmer_CLI.exe -c port=SWD --upload 0x8000000 0x200000 firmware.bin # extract from board
STM32_Programmer_CLI.exe -c port=SWD -w firmware.bin 0x08000000 -rst # flash to board
STM32 firmware command line tools (please adjust 0x200000
):
STM32_Programmer_CLI.exe -c port=SWD --upload 0x8000000 0x200000 firmware.bin # extract from board
STM32_Programmer_CLI.exe -c port=SWD -w firmware.bin 0x08000000 -rst # flash to board
Flashing an updated
demo2.elf
firmware to a NUCLEO-G071RB board:NOTE: The extracted
firmware.bin
and the updateddemo2.elf
(from an IDE build) are in different format. Theopenocd
, while usable, is not as flexible, so I find it best to useSTM32_Programmer_CLI.exe
. For example, we can extract the firmware using eitheropenocd
orSTM32_Programmer_CLI
command:Furthermore, you can flush to the board using:
But, YOU CANNOT flush
demo2.elf
usingopenocd
. Hence, this is why I preferSTM32_Programmer_CLI
because it can flush to the board both binary formats.