I am trying to generate a bootable image for the RT1064, following this article, but elftosb crashes
I am compiling the SDK GPIO driver example to execute from RAM, and need to build a bootable image to store into QSPI flash, so the ROM bootloader can copy it into RAM to execute after a reset.
When I try to use elftosb to generate the intermediate bin file, I get a segmentation fault, and am left with an empty output.bin
$elftosb -f imx -V -c imx-itcm-unsigned.bd -o output.bin igpio_led_output.srec
Section: 0x0
Segmentation fault (core dumped)
Note:
- I am using elftosb obtained from the flashloader download at Flashloader_RT1064_1.0_GA/Tools/bd_file/imx10xx/elftosb
- I am using the bd file obtained from the flashloader download at Flashloader_RT1064_1.0_GA/Tools/bd_file/imx10xx/imx-itcm-unsigned.bd
- I created the srec file from the elf file using arm-none-eabi-objcopy -O srec debug/igpio_led_output.elf debug/igpio_led_output.srec
I'm using GCC ARM toolchain on a linux host system, so I can't use Jay Heng's GUI.
I have seen this issue, which hasn't been answered, that looks very similar.
I have also seen this issue, which seems identical, but I'm already using the Linux version of elftosb and my problem was not fixed when I downloaded the elftosb version provided by @jeremyzhou