2021-12-21 03:49 PM
2021-12-22 02:23 AM
Hi @Community member,
AFAIK CubeMX offer a CLI
refer to STM32CubeMX for STM32 configuration and initialization C code generation - User manual
Section
3.3.2 Running STM32CubeMX in command-line mode
Post redirect to STM32CubeMX topic for further support if needed
Olivier
2021-12-22 03:51 PM
Olivier,
Below is the batch file I am invoking from Jenkins to automate the CubeMX build. Following that is the CubeMX script file. When I run the batch file from the command file it works fine. Although I do get a progress bar during the "project generate" phase. Because I use the -q qualifier, I would not expect this progress bar. But when running from Jenkins I get the following:
Everything seems to be working fine until "project generate". I terminate after a few minutes. Could it be that CubeMX is trying to display the progress bar?
Batch file:
java -jar "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe" -q "C:\JenkinsBuilds\workspace\ICELL8_Firmware\ICELL8_FirmwareScript.txt"
"C:\Program Files\IAR Systems\Embedded Workbench 9.0\common\bin\iarBuild.exe" "C:\JenkinsBuilds\workspace\ICELL8_Firmware\EWARM\ICELL8_Firmware.ewp" -make "Release" -log info
Script file:
config load "C:\JenkinsBuilds\workspace\ICELL8_Firmware\ICELL8_Firmware.ioc"
project generate ./
exit
2022-01-05 10:39 AM
Olivier,
Below is the batch file I am invoking from Jenkins to automate the CubeMX build. Following that is the CubeMX script file. When I run the batch file from the command file it works fine. Although I do get a progress bar during the "project generate" phase. Because I use the -q qualifier, I would not expect this progress bar. But when running from Jenkins I get the following:
Everything seems to be working fine until "project generate". I terminate after a few minutes. Could it be that CubeMX is trying to display the progress bar?
Batch file:
java -jar "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe" -q "C:\JenkinsBuilds\workspace\ICELL8_Firmware\ICELL8_FirmwareScript.txt"
"C:\Program Files\IAR Systems\Embedded Workbench 9.0\common\bin\iarBuild.exe" "C:\JenkinsBuilds\workspace\ICELL8_Firmware\EWARM\ICELL8_Firmware.ewp" -make "Release" -log info
Script file:
config load "C:\JenkinsBuilds\workspace\ICELL8_Firmware\ICELL8_Firmware.ioc"
project generate ./
exit