.bin / .hex File Generation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-05 12:53 AM
Hi :)
I have just downloaded STM32CubeIDE and am trying to get a simple BlinkLED going on STM32F401CB.
I go through the steps, and first off Build does not work out of the box - it is necessary to first change "Builder type" to "Internal builder" in the Project Properties (Windows environment).
Now, I want to generate .hex / .bin files - so I go to C/C++ Build -> Settings -> MCU Post build outputs and tick "Convert to binary file (-O binary)" and "Convert to Intel Hex file (-O ihex)" (for all configurations) - but the .bin (or .binary) / .hex (or .ihex) files just don't seem to be generated... I also don't see any "-O binary" or "-O ihex" anywhere in the output during build.
Is this because "Internal builder" is selected? If so, then any tips on getting the External builder working (I get the error "The system cannot find the path specified") with the External Builder)?
Thank you!
- Labels:
-
STM32CubeIDE
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-26 1:43 AM
Did you end up solving this by any chance? no binary generation is a showstopper for my scenario, and I have encountered the same problem you did...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-26 2:51 AM
I got busy with other things and proceeded with a different IDE/compiler which I already had working - I had an idea that the problem might perhaps be that I installed STM32CubeIDE under a folder which has spaces in the name (although the workspace / project path did not have any spaces in it) - will have to test when I get a gap...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-26 3:08 AM
hmm, I also installed it in a folder with space (C:\Program Files\ST\...). Will check too.
Really, this default install folder in C:\ST looks rather unprofessional. There's a designated place for apps in Windows... and if it causes little things to *silently* fail that's even worse.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-26 3:47 AM
Yip that's what I did as well (C:\Program Files...).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-26 4:53 AM
Check if some ../bin folder of your toolchain contains an objcopy executable.
You an convert the output manually, or add it as post-build step to your project.
In case you don't know, it is a command line tool to convert between object/binary file formats.
All gcc-based toolchains used to have it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-28 2:21 AM
OK, so I found out this problem with missing generation of binaries is related to the spaces in the installation folder path, but in a roundabout way:
As some other users have reported, I found that the 'external builder' setting doesn't work and must be changed to 'internal builder' (Project Properties-->C/C++ Build -->Builder Settings tab). It turns out that this is a problem only with spaces in the installation folder. I just reinstalled the IDE at the default folder (under C:\ST) and now the default 'External Builder' works - and that external builder also generates the binary output that was missing!
So, to summarize:
- 'External Builder' is broken when there are spaces in the installation folder, e.g. as in "C:\Program Files\ST".
- 'Internal Builder' does work with spaces in the installation folder, but the generation of binary output is broken when using this builder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-28 2:37 AM
Thank-you tinkerer42! :D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-16 7:38 AM
if output compiler error duplicate function Check On source.mk it any list double file
goto project properties
delete any list folder , this work for me
