Images and fonts dump from elf file
Hi all,
we have successully used an external SPI memory to store images.
We have defined an external Flash section in our linker file
ExtFlashSection :
{
*(ExtFlashSection ExtFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >SPI_FLASH
and then extract the images from elf file with this command:
arm-none-eabi-objcopy.exe --dump-section ExtFlashSection=images.bin Test.elf
All works perfectly.
Now we want to store the fonts into the external memory. From the TouchGfx guide we see that we have to add the font section into linker file and thats ok.
ExtFlashSection :
{
*(ExtFlashSection ExtFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >SPI_FLASH
FontFlashSection :
{
*(FontFlashSection FontFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >SPI_FLASH
Now:
should we extract two separate bin files (one for the images and one for the fonts)? And in that case should we merge the bin togheter?
arm-none-eabi-objcopy.exe --dump-section ExtFlashSection=images.bin Test.elf
arm-none-eabi-objcopy.exe --dump-section FontFlashSection=font.bin Test.elf
Do you have any hints?
Thank you in advance for your help.
Best regards

