FATFS file system not working

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

cross mob
AbPa_4654881
Level 3
Level 3
10 replies posted 10 questions asked 10 likes given

Hi All,

I am Using cy8ckit-059 kit. I want to read/write data from a file present in the SD card. for that I am using FATfs file system.

I am trying one example from here 

https://github.com/hackingchips/PSoC_FatFs/tree/master/Examples/PSoC5LP_FatFs

But I am getting this error

error: (FR_NOT_READY) sdcard not ready.

has anyone used FATfs library for ( micro SD card ~8gb) ? or is there any working example available with Fatfs file system 

Please suggest me to resolve this error.

Thanks

 

 

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Abhi-san,

I tried with a 8GB micro-sd card and got

==================

PSoC FatFs. PSoC 5LP FatFs Test/Demo.
Hacking Chips. 12/2015.

(A) - Show 'root' directory listing.
(B) - Create directories, create files.
(?) - Show menu.
Select test :>a
error: (FR_NOT_READY) sdcard not ready.

==================

Then I tried with a 4GB micro-sd card and got

==================

Select test :>A
Volume label: USB4G

SPOTLI~1 <DIR>
FSEVEN~1 <DIR>
TEMPOR~1 <DIR>
HELLO.C 87
_HELL~1.C 4096

Total sectors: 7764032
Free sectors: 7758592
Drive space: 3882016
Free space: 3879296

==================

So, I would think that the program (or hardware?) is not supporting a 8GB micro-sd card.

Please try with one which is 4GB or smaller.

Best Regards,

9-Jan-2021

Motoo Tanaka

View solution in original post

0 Likes
7 Replies