cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy the font and image section to binary file?

JJ.Lin
Associate III

I am trying using NAND flash to storage the setions, but don`t know how to dump these sections to a binary file, https://support.touchgfx.com/docs/development/scenarios/using-non-memory-mapped-flash shows command "arm-none-eabi-objcopy.exe --dump-section ExtFlashSection=images.bin TouchGFX/build/bin/target.elf" to generate it, so if I want to dump images alone with fonts, how to write the cmd and config on STM32CubeIDE?

1 REPLY 1
JJ.Lin
Associate III

So do you have the idea? The start address of my SDRAM after FMC configuration is 0xC0000000, so if I configure the "post build" as

arm-none-eabi-objcopy.exe -O binary --only-section=ExtFlashSection "${BuildArtifactFileBaseName}.elf" images.bin;
arm-none-eabi-objcopy.exe -O binary --remove-section=ExtFlashSection "${BuildArtifactFileBaseName}.elf" ${BuildArtifactFileBaseName}.bin;

and then the "{project}.bin" would be over 1GB on my disk. Does anyone konw how to write the link script file to generate the binary file so that I can upgrade the nand flash via UART?