About FatFs of PSOC5DMASDSPI

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
koMi_4274846
Level 1
Level 1
First question asked First reply posted First like received

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)

pastedImage_4.png

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!

0 Likes
2 Replies
koMi_4274846
Level 1
Level 1
First question asked First reply posted First like received

How include the function of disk_initialize() to main.c ???

0 Likes

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

Thanks and Regards,
Rakshith M B
0 Likes