How to pass argument -O ihex toSTM32CubeIDE trough bash
Dear
I am building IOC file with help of a make release file which I execute under bash.
The (default) STM32CubeIDE project has Debug as the Active configuration and also has the "-O ihex" enabled under the MCU Post build outputs settings.
I want to also pass the "Convert to Intel HEx file (-O ihex)" setting as input to STM32CubeIDE when I execute below under bash
C:/ST/STM32CubeIDE_1.14.1/STM32CubeIDE/stm32cubeidec.exe -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -cleanBuild ${BLD_TYPE} -importAll ./ -data ${TMPDIR} > BuildResult.Log
Please suggest how this shall be achieved.
I assume the number / id / optionid 1613718931 will differ for different projects,
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.converthex.1613718931" name="Convert to Intel Hex file (-O ihex)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.converthex" useByScannerDiscovery="false" value="true" valueType="boolean"/>
I am unaware what to use with -T option
Invalid Arguments: [-cleanBuild, all, -importAll, ./, -T, 1613718931=true]
Error: Index 6 out of bounds for length 6
Please suggest a solution that if possible is independent of the optionid number
More info added:
If above is not possible how do I execute below, without having to bother about the location of arm-none-eabi-objcopy executable
arm-none-eabi-objcopy -O ihex $(EXECUTABLES) "Project_HEX_File.hex"
Thanks!
Rajeev
