hex (or bin) file to elf using Cube Programmer
Hi all.
With build project I can obtain .bin, .hex and .elf file.
I need to manipulate the file to add a CRC in determinate position. SO I use .bin (easiest), then convert in .hex and .elf file using:
arm-none-eabi-objcopy -I binary -O ihex --change-section-address .data=0x08000000 crc_FlashTest.bin crc_FlashTest.hex
arm-none-eabi-objcopy -I ihex -O elf32-little FlashTest.hex FlashTestX.elf
The elf file doesn't work: on CUBE programmer (latest version) I got "crc_FlashTestX.elf is an invalid ELF file"
Change elf option on conversion doesn't solve (elf32-littlearm elf32-littlearm-fdpic elf32-bigarm elf32-bigarm-fdpic elf32-little elf32-big). Still the same file.
Hex file is correct. Even Iif I try to convert bin (hex) file without my manipulation the conevrtion doesn't match and doesn't work.
Have someone a suggestion?
Thanks!
