4.3.8 STMicroelectronics STM32
[Platforms module]

The STMicroelectronics STM32 module is described through the following subsections:

Building [link] 

You can build a MutekH application for a supported STM32 board with this command:

make CONF=examples/hello/config BUILD=stm32-nucleof103rb

The default output is in ELF format. A binary file can be built as follow:

make CONF=examples/hello/config BUILD=stm32-nucleof103rb:binary

If your board is not supported or if your application comes with custom device declarations for the board, you may want to target the chip directly:

make CONF=examples/hello/config BUILD=stm32-f103rb

Programming with Openocd [link] 

openocd -f interface/ftdi/dp_busblaster.cfg -f target/stm32f1x.cfg \
-c init -c targets -c halt \
-c "flash write_image erase hello-stm32-f1.out" \
-c reset run -c shutdown

Programming with JLink [link] 

( echo 'device STM32F103RB' ; echo 'loadbin hello-stm32-f1.bin 0' ; echo 'r' ; echo 'exit' ) | JLinkExe
Valid XHTML 1.0 StrictGenerated by diaxen on Thu Aug 4 15:44:05 2022 using MkDoc