Search code examples
cbatch-filestm32cubeide

STM32CubeIDE - build from windows batch file


I would like to be able to build project releases from a batch file rather than the GUI as in my opinion it makes the whole process more controlled.

I'm struggling to find examples of this online. Has anyone else done it?


Solution

  • Im on Linux but it should be similar on Windows.

    I went to my project right, clicked the project name in Project Explorer, hovered over Show In, and clicked System Explorer.

    I then entered the directory Release which there should be a Makefile on Linux, in the release directory, I run make.

    ~/STM32CubeIDE/workspace_1.7.0/TEST/Release$ make

    This will generate a .bin file and an .elf file, which can be used to program the chip with STM32CubeProgramer.