2024-09-26 03:12 PM - edited 2024-09-26 03:20 PM
Using STM32CubeIDE v1.16.1, I am unable to generate .hex or .bin outputs using the Internal Builder and selecting the checkboxes found at `Properties -> C/C++ Build -> Settings -> MCU/MPU Post build outputs`:
The files are not present in the build output folder, and there is no output in the STM32CubeIDE console after "arm-none-eabi-gcc -o <project name>.elf ...."
However, if I select the external builder, the files get generated and placed in the build output folder, and the console has output showing the files getting generated.
I found this forum post from 2019 that seems to indicate spaces in the paths to the GCC tools may be causing the issue: .bin / .hex File Generation - STMicroelectronics Community I do not have spaces in the paths to the GCC tools, but there are spaces in the paths to my project files that I can't get rid of (company configured OneDrive folder name has spaces in it).
I can use the external builder for the time being, but if spaces in the paths are causing the internal builder to fail generating the additional output files, it would be very helpful if the internal builder were fixed to either handle spaces in path names or display some kind of error/status that generating those files failed, as opposed to failing silently like it currently appears to do.
2024-09-29 11:15 AM
This is a long known issue. Too hard to fix, apparently. Not because of spaces. You can run the needed actions as post-build actions in the project settings.
> there are spaces in the paths to my project files that I can't get rid of (company configured OneDrive folder
This can be used to get rid of spaces in any path.