STM32CubeProgrammer + Atollic TrueSTUDIO for STM32

Posted by Mattias Norlander on Feb 20, 2018 2:29:27 PM

ST recently released STM32CubeProgrammer, a software tool allowing users to flash STM32 devices through the SWD/JTAG debug interface and via the UAR/USB bootloader interface. STM32CubeProgrammer can be integrated with Atollic TrueSTUDIO. This is how and why!

The first question is perhaps why would I want to use STM32CubeProgrammer when Atollic TrueSTUDIO already support flash loading my binary to target memory? Below are some use cases when users may benefit from integrating STM32CubeProgrammer:

  • STM32CubeProgrammer is more up-to-date on STM32 device support
  • Flash operation are in some cases faster with STM32CubeProgrammer
  • STM32CubeProgrammer allows set/clear of option bytes
  • STM32CubeProgrammer can also handle flash load via UART/USB (bootloader)

STM32CubeProgrammer can be run as a GUI-application (requiring Oracle JVM) or as a command-line application. The latter approach is used with Atollic TrueSTUDIO. STM32CubeProgrammer is setup as an external tool and the external tools configuration is made part of a launch group which also will launch your ST-Link GDB-server debug session.

The approach is detailed in the following document: Integrate STM32CubeProgrammer with Atollic TrueSTUDIO.

This approach should also work in other Eclipse/CDT based tools with minor modifications. 

Topics: STM32, STM32Cube, flash load