cancel
Showing results for 
Search instead for 
Did you mean: 

image binary to sd card

S_bgh99
Associate III

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);

1 REPLY 1
Alexandre RENOUX
Principal

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