4.3.7 STMicroelectronics STM32
[Platforms module]

The STMicroelectronics STM32 module is described through the following subsections:


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  

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  

( echo 'device STM32F103RB' ; echo 'loadbin hello-stm32-f1.bin 0' ; echo 'r' ; echo 'exit' ) | JLinkExe

Valid XHTML 1.0 StrictGenerated by diaxen on Wed Oct 17 21:18:37 2018 using MkDoc