Skip to main content
Junde
Senior III
May 24, 2024
Solved

How to store the touchgfx image to SD card?

  • May 24, 2024
  • 1 reply
  • 1064 views

Hi all,

I have touchgfx project which has many pictures, so I must store them in the SD card.

I follow the touchGFX document and I meet some issue.

The document said:

We can extract the binary data for the bitmaps from the .elf file with a simple objcopy command:

 

$ arm-none-eabi-objcopy.exe --dump-section ExtFlashSection=images.bin TouchGFX/build/bin/target.elf
$ ls -l images.bin
-rw-r--r-- 1 christef Administrators 147136 Feb 20 11:56 images.bin

 

However, I didn't find the ELF file in the path TouchGFX/build/bin/target.elf; And the MDK IDE can't generate the ELF(replaced by AXF file);

When I try to use the AXF file, the command above is returned error(I also try to rename the AXF to ELF):

Junde_0-1716516821889.png

How to split the AXF? Or is there some tools can split the hex file by address?

Thanks for your help, have a luck day!

 

Best answer by Junde

Now I can extract the ExtFlashSection by following cmd:

 

python hex2bin.py -r 70000000:7006DE97 myImage.hex > myImage.bin # work well
python hex2bin.py -r 70000000: myImage.hex > myImage.bin # work well

 

 

1 reply

Junde
JundeAuthorBest answer
Senior III
May 24, 2024

Now I can extract the ExtFlashSection by following cmd:

 

python hex2bin.py -r 70000000:7006DE97 myImage.hex > myImage.bin # work well
python hex2bin.py -r 70000000: myImage.hex > myImage.bin # work well