- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello. I am coding a project send a file from commper to micro sdcard use emfile compoment of Psoc5lp. I set up speed SPI of Emfile is 12MHZ. Then, I wirte 1M data buffer to sdcard , it takes 2.5 minutes to complete.It is very slow, This is my code:
#define ONEMBYTE 1048576 // 1M BYTE
#define PHANNGUYEN ONEMBYTE/62 // wirte 62byte for a time
#define PHANDU (ONEMBYTE - (PHANNGUYEN*62))
pFile = FS_FOpen("hehe.txt","w+");
if(pFile!=0){
for(ii = 0; ii < PHANNGUYEN; ii++)
{
FS_Write(pFile, buff, 62);
}
FS_Write(pFile,buff, PHANDU);
}
Nobody help me, set up speed high wirte data to sdcard use Emfile?Thank so much!
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
EmFile component uses library from Segger. The time required for write, depend upon the library and it is provided by a third-party. You can try porting any other third-party library and implement the SD Card interface.
Thanks,
Hima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank all. I am going to try your library!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Did you manage to port the library to a PSoC device? What you like to share it if possible with an example?
Thanks in advance,
Kris