Release bin file does not work while the debug bin file works. Why?
I have a bootloader that can copy a program bin file from the USB memory to the internal flash memory of STM32F429 and start the program. The bootloader doesn’t care about the content of the bin file and just does the copying dutifully. The strange thing is that if the bin file is built with the debug configuration it works as expected, but if the bin file is built with the release configuration it doesn’t work. When I check the post build step both the release and debug configuration use the same command:
arm-none-eabi-objcopy -O binary ${ProjName}.elf _${ProjName}.bin
I’m baffled why one works and the other one doesn’t work. Should more options be added for the command for the release configuration?
Any help is very much appreciated.