2019-08-13 10:26 AM
My project compiles with no errors and no warnings. Debug configuration generates a .bin, but Release configuration will only generate a .elf, that STLink will not use under Windows. I have tried selecting C/C++ Build ->Settings ->Tool Settings ->MCU Post Build Outputs for .bin etc., but this doesn't work.
2019-08-13 06:19 PM
Did a quick test by using STM32CubeIDE v1.0.2 over Win10 and was not able to replicate this issue:
08:45:39 **** Build of configuration Release for project 01_F746-DISCO ****
make -j8 all
...
Finished building target: 01_F746-DISCO.elf
arm-none-eabi-size 01_F746-DISCO.elf
arm-none-eabi-objdump -h -S 01_F746-DISCO.elf > "01_F746-DISCO.list"
arm-none-eabi-objcopy -O binary 01_F746-DISCO.elf "01_F746-DISCO.bin"
text data bss dec hex filename
11612 120 1720 13452 348c 01_F746-DISCO.elf
Finished building: default.size.stdout
Finished building: 01_F746-DISCO.bin
Finished building: 01_F746-DISCO.list
08:45:50 Build Finished. 0 errors, 0 warnings. (took 10s.543ms)
I think you used the right setting for Debug configuration, but curious if you did the same for Release configuration?
Meanwhile, STM32CubeProgrammer (successor of ST-LINK Utility) supports ELF file.
2019-08-14 10:46 AM
I can see no difference between the settings for Debug and Release configurations, but I am new to all of this and I may not know what to look for. Please let me know what settings I need to create a Release configuration that STLink will accept. I am using Internal Build instead of external make.
2019-08-14 11:03 AM
Enabling the binary/hex check boxes in Project > Settings works fine for me:
hth
Frank
2019-08-15 10:22 AM
I had set the binary/hex checkboxes for my Release configuration and I have updated STM32CubeIDE Version 1.0.2, , but I am still not generating .hex or .bin executables. Also, looking at the internally-generated makefile, there appears to be no command to build .hex or .bin; only .elf.....?
2019-08-15 10:23 AM
I had set the binary/hex checkboxes for my Release configuration and I have updated STM32CubeIDE Version 1.0.2, , but I am still not generating .hex or .bin executables. Also, looking at the internally-generated makefile, there appears to be no command to build .hex or .bin; only .elf.....?
2019-08-15 10:57 PM
Could you help let us now which OS you are using now?
2019-08-16 06:00 AM
I am using Windows 10.