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'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
Hello
I hope you are well.
I suggest you use nxpimage instead of elftosb. You can find it on the SPSDK: Secure Provisioning SDK (SPSDK) | NXP Semiconductors
User Guide - nxpimage — SPSDK documentation
Please check how the image is placed on RAM, it is important to make the image start with an offset of 0x3000 when using internal SRAM.
Best regards,
Omar