Skip to main content
S_bgh99
Associate II
September 16, 2020
Question

image binary to sd card

  • September 16, 2020
  • 1 reply
  • 830 views

hi, i have a little problem. i'm using stm32f4 and i want to run touchgfx. i generate code and i copy image to an array then i wrote array in binary format... all thing is good but when array size increase . i have below error.

Not enough information to list load addresses in the image map.

char mypath[]="image_bg.bin";

res2=f_open(&myfile,mypath,FA_WRITE|FA_CREATE_ALWAYS);

res3=f_write(&myfile,image_bg,sizeof(image_bg),&bytewritten);

f_close(&myfile);

This topic has been closed for replies.

1 reply

Alexandre RENOUX
Visitor II
September 17, 2020

Hello,

What are you trying to do exactly ? Why are you using a binary image ?

You could use a dynamic bitmap to load the image from sd card to RAM and use it at will.

Have a look at

https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/dynamic-bitmaps/

https://support.touchgfx.com/docs/development/ui-development/scenarios/loading-images-at-runtime

/Alexandre