- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
I'm trying to use this code for implement SD-card on PSoC 5LP
GitHub - honet/PSOC5DMASDSPI: SPI mode SD-Card interface for PSoC5LP with DMA. (fatfs porting)
I'm in trouble this code stop at 128
I know the disk_initialize() return driver status
http://elm-chan.org/fsw/ff/doc/dinit.html
if you know why I have a error of 3 in initialize please tell me
I'll get back to you if I have any problem
Thank you!
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How include the function of disk_initialize() to main.c ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi koMi_4274846,
Can you try going into Debug mode and checking if the SD Card is getting initialized properly? Is the SPI functions in disk_initialize() returning success?
Also, can you try formatting the SD Card into FAT32 and then try the example?
PSoC 5LP also has an emFile component that can be used directly. Please refer to the component datasheet for more information regarding this. You could also refer to the emFile code example.
Thanks and Regards,
Rakshith M B
Rakshith M B