cancel
Showing results for 
Search instead for 
Did you mean: 

How to store the touchgfx image to SD card?

Junde
Senior II

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!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Junde
Senior II

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

 

 

View solution in original post

1 REPLY 1
Junde
Senior II

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