cancel
Showing results for 
Search instead for 
Did you mean: 

STEMWIN SHOW IMAGE FROM SD CARD

giovani
Associate II
Posted on October 09, 2015 at 14:36

Hello!

I am working in a project that uses a STM32F407 and 7'' TFT LCD with SSD1963 controller, after hard work to put the LCD running and some corrections on the board, now we are trying to display a image from a SD Card, but it not running yet, I'll post the code attached if anyone can help us.

Thanks,
3 REPLIES 3
qwer.asdf
Senior
Posted on October 09, 2015 at 16:18

char _acBuffer[0x6000];

That's declared inside of a function.

Are you sure you do have that much stack?

If you are not sure, move that variable to the global scope of the file,

and declaring it as static wouldn't hurt.

Alternatively, you can leave it inside the function but declare it as static:

static char _acBuffer[0x6000];
giovani
Associate II
Posted on October 09, 2015 at 19:00

Thanks declared as global, all works fine also for JPEG, except for the fact when I tried to load a png image doesn't work, I get the error message undefined symbol GUI_PNG_DrawEx.

                hFile = fopen (''logo.png'',''r'');

                if (hFile !=NULL){

                    if (!GUI_PNG_DrawEx(_GetData, hFile, 0, 0)) {

                   

                    }

                fclose(hFile);

                }

giovani
Associate II
Posted on October 14, 2015 at 14:17

Hello!

Now we can show pictures that are in SD CARD but the refresh rate is too slow, I want to know if using a external SRAM will increase perfomance, because I think loading the next screen picture in the SRAM then transfer all screen mounted in SRAM for LCD screen will increase performance of our application.

We are planning to use IS61WV102416BLL-10TLI SRAM, connected to FSMC bus with the SSD1963.

what do you think about this solution?

Thanks,

Giovani