Last active
March 3, 2025 14:38
-
-
Save GaryLee/25101eccd50be9997e08cf21c39567bc to your computer and use it in GitHub Desktop.
Build STM32CubeIDE project from command line.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
@REM By check the headless-build.bat which come along with STM32CubeIDE. | |
@REM we can invoke the build process without invoking the GUI. | |
@REM Set PATH for STM32CubeIDE. | |
SET "CUBEIDE_PATH=C:\ST\STM32CubeIDE_1.14.0\STM32CubeIDE" | |
SET OLD_PATH=%PATH% | |
SET PATH=%CUBEIDE_PATH%;%PATH% | |
@REM Use stm32cubeidec.exe to build the project in specified workspace. | |
SET "WORKSPACE=Your workspace path here" | |
SET "PROJECT=Your project name here" | |
SET HEADLESS=--launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild | |
stm32cubeidec.exe %HEADLESS% -build %PROJECT% -data "%WORKSPACE%" | |
SET PATH=%OLD_PATH% | |
ECHO ON |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very helpful. Thank you.
How can I get it to only build the debug configuration and not the release