Skip to main content
ekocakaya
Associate
November 3, 2014
Question

Stm32F407 Discovery - 7'' Tft - SDCard Problem

  • November 3, 2014
  • 3 replies
  • 924 views
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
This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
November 3, 2014
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 VenmoUp vote any posts that you find helpful, it shows what's working..
ekocakaya
ekocakayaAuthor
Associate
November 3, 2014
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

Tesla DeLorean
Guru
November 3, 2014
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 VenmoUp vote any posts that you find helpful, it shows what's working..