2021-11-15 07:11 AM
Is there any scripting support to STM32CubeIDE to load a project build the project and download the project using debugger to Microcontroller STM32H745XI
2021-11-15 09:10 AM
Try headless-build.bat
2021-11-16 03:19 AM
after building with STM32CubeIDE in headless build mode, you can use STM32CubeProgrammer to program the binary to the STM32 board.
2021-11-16 03:33 AM
example of headless build command:
C:\ST\stm32cubeide_1.7.0\STM32CubeIDE\\stm32cubeidec -nosplash --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import c:\path\to\cubeIDE_project -cleanBuild project_name_in_workspace -data c:\path\to\cubeIdeWorkspace
-import tells where the .cproject / .project files are
-data tells where you want to put the eclipse workspace
-cleanBuild project_name is the name of the project once imported in the workspace
you can use also -clean or -build
it's also possible to specify the build configuration : -build project_name/Debug
or -build project_name/Release
2021-11-16 05:03 AM
After Completion of build with STM32CubeIDE in headless build mode,
Is there an automated scrit that we can use STM32CubeProgrammer to program the binary to the STM32 board ?.
2021-11-16 05:04 AM
After Completion of build with STM32CubeIDE in headless build mode,
Is there an automated scrit that we can use STM32CubeProgrammer to program the binary to the STM32 board ?.
2021-11-16 05:39 AM
Use STM32Programmer_CLI tool with "-d" (download) command:
"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=SWD -d C:\path\to\firmware.elf 0x08000000
Notes:
2021-11-19 06:35 AM
Thanks for the Download Command using STM32 Programmer .
Additional to this command is there any scripting command to set the STM controller in execution mode or start executing application or Self reset the controller etc .
2021-11-19 06:43 AM
STM32_Programmer_CLI.exe --help