Hi~:
I use microsd card on nrf21540, the sd card mounted success and write file success, but after some time ,I found write error.
And this issue can be reappeared. Can you give me some suggession.Thanks!
I use the ncs V1.9.
Hi~:
I use microsd card on nrf21540, the sd card mounted success and write file success, but after some time ,I found write error.
And this issue can be reappeared. Can you give me some suggession.Thanks!
I use the ncs V1.9.
Hi,
Are you using a nRF21540 DK, or a custom board with this chip? I assume that the SD card is connected to the nRF52840 and not nRF21540?
How is the SD card connected to the chip?
Can you post your prj.conf and overlay files?
Can you check if setting the log level of the SDMMC library to DBG reveals more details about the failure?
Best regards,
Jørgen
Is the SD card mounted in an external SD card socket? If so, what kind of socket? Is the socket soldered to the board, or connected through jumper wires/breadboard?
Do the error occur at a specific file/point in application, or at a specific time, or does it happen at random?
Have you tested if the latest nRF Connect SDK v2.1.0 release have the same issue?
I test with the nRF Connect SDK v2.1.0,but the demo fat-fs can not work.this is my overlay,is there any error.
Build no error but a warning "No SOURCES given to Zephyr library: drivers__disk".
I have see this issue https://devzone.nordicsemi.com/f/nordic-q-a/84784/sample-fat_fs/354126,
Can you check if the suggestions in this ticket will resolve your issue?
Can you check if the suggestions in this ticket will resolve your issue?
yeah, it works.but i got an error:"fs: file sync error(-5)" ,like this
Can you check the connections, and have a look at the SPI signals with a scope/logic analyzer, to see if there are noise or signal issues that can explain the behavior?
The -5 error is a IO error, so it could be related to the communication between the SD card and the chip.
#define EIO 5 /**< I/O error */
I can not find any I/O Error,this is my example.I found the function fs_sync() delay about 10s and return -5,and the sd card have some data,but not all.5857.sample.zip
I also see this issue. SD card reads/writes from USB device just fine, but when I fs_sync or fs_close the file there's a 10 second delay then error -5
SD card on SPI bus 3
Hi Jorgen,
I am facing the same issue in NCS 1.9
I am able read and write data on SD card successfully.
the issue is that when i am trying to download the data to sd card and its work upto 5 to 6 % of total data. after that I am getting error in fs_open function .and the error is -5;
The total size of data is 2MB.
The same code work properly in NCS 1.5.0.so every thing in term of hardware and SPI connection.