cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32F407 Discovery - 7'' Tft - SDCard Problem

ekocakaya
Associate
Posted on November 03, 2014 at 17:49

Hello Friends,

have a speed problem,

I am using stm32f407 discovery kit and 7'' tft, with baseboard, I want to make picture galery show bitmap file read from sdcard and show it to TFT but problem is reading and showing the picture so slow , showing a full picture take almost 2-3 seconds,

how can handle this? I am trying to integrate chan fatfs system to my codes but neeed your advice ,

Thanks

#stm32 #sdcard #tft
3 REPLIES 3
Posted on November 03, 2014 at 18:20

Is the delay coming from the SD Card reading, or transferring the image data to the display buffer on the controller.

The SD card performance will be improved by reading large blocks, reading a byte at a time from the media will be slow, so buffer.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
ekocakaya
Associate
Posted on November 03, 2014 at 18:37

Thank u clive1

I think delay is from reading sdcard, I dont know how to read big blocks, 

Can anybody give an code example about reading big block from sdcard

Posted on November 03, 2014 at 18:53

static BYTE Buffer[8192];
UINT BytesRead;
res = f_read(&fil, Buffer, sizeof(Buffer), &BytesRead);

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..