Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Syntax for adding a tool option value in headless build
Syntax for adding a tool option value in headless build [message #1858618] Wed, 12 April 2023 08:01
Chris Idema is currently offline Chris IdemaFriend
Messages: 1
Registered: April 2023
Junior Member
What is the correct syntax for adding a tool option value in headless build?
The documentation is limited:
Append to a tool option value:         -Ta         {toolid} {optionid=value}

I couldn't find any meaningful examples and I don't know how to debug the CLI. Headless build works, but the options seem to be ignored.

I want to set the following optionid:
com.st.stm32cube.ide.mcu.gnu.managedbuild.option.converthex.371515941=true


When manually checking this option in the IDE the project file adds the following fields:
under "com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug.2132964004" it adds "com.st.stm32cube.ide.mcu.gnu.managedbuild.option.converthex.371515941=true"
Though the number keeps changing every time.
I assume the first one is the toolid and the second one the optionid.
When building with this option it produces a hex file. I want this behavior without editing the project file and through headless build.

I tried the following. The build works, but no hex file is produced.

cd <my project path>
C:\ST\STM32CubeIDE_1.11.0\STM32CubeIDE\stm32cubeidec.exe --launcher.suppressErrors -nosplash -data "<workspace_path>" -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import . -cleanBuild <project_name>/Debug -Ta com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug.2132964004 com.st.stm32cube.ide.mcu.gnu.managedbuild.option.converthex.371515941=true


STM32CubeIDE v1.11.0 uses Eclipse version: 10.6.2.202205170638

[Updated on: Thu, 13 April 2023 07:18]

Report message to a moderator

Previous Topic:build log print in an external file
Next Topic:Multiple "could not be resolved" problems
Goto Forum:
  


Current Time: Mon Jan 20 03:43:15 GMT 2025

Powered by FUDForum. Page generated in 0.03630 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top