Test the SD card is working properly with some electronic gadgets.
Check for the pin connections first for SD card connector as per the standard. Atleast post the circuit will let you know...
Some libraries are able to deal with just one tipe of formatting (FAT16, FAT32) or are limited in size.
Check at the SD card program if there exists any of these restrictions.
You connected the wrong way: MOSI of the master have to be connected to MISO of device, and vice-versa.
You connected the wrong way: MOSI of the master have to be connected to MISO of device, and vice-versa.
Its not happening
it has function f_mount which should return FR_OK. But its replying FR_NOT_READY
See, i am using the library given on the url http://elm-chan.org/fsw/ff/00index_e.html
it has function f_mount which should return FR_OK. But its replying FR_NOT_READY.
void main(void)
{
R_MAIN_UserInit();
/* Start user code. Do not edit comment generated here */
res = f_mount( &fs[0],"0:file1.txt",1);
res = f_open(&fsrc, "0:file1.txt", FA_CREATE_ALWAYS | FA_WRITE);
// LED04 = ~LED04;
for (i=0;i<2000;i++)
{
res = f_write(&fsrc, buffer, 9, &bw); /* Write data to the file */
// LED04 = ~LED04; /* Do something so we can see it */
}
f_close(&fsrc);
f_mount(0, 0,0);
while (1U)
{
;
}
/* End user code. Do not edit comment generated here */
}
res = f_mount( &fs[0],"0:file1.txt",1);
I am using Catalex micro SD card adapter which uses micro sd card. below images are for your reference
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?