SD card writing issue with Sparkfun redboard Qwiic and Qwiic Openlog

Hello, I’m a new technician in an university and need to test the hardware kits returned from students recently. When I do the test, I find a SD card doesn’t work with the command ‘append’(to create a new .txt file). Testing with code 'Example10_checkstatus’in library ‘SparkFun_Qwiic_OpenLog’, serial port shows the message below when the working SD card is inserted.

OpenLog Status Example
Status byte: 0x1D
SD card is good
Root directory open
Log file open and ready for recording
Done!

However serial port shows the message below when the non-working SD card is inserted.

OpenLog Status Example
Status byte: 0xFF
OpenLog failed to respond. Freezing.

With the same hardware and testing code in Sparkfun redboard Qwiic, one SD card worked normally at beginning and now doesn’t work neither, but all the SD cards work normally when connected to PC. Did anyone have similar problem and find the solution?

Thank you!

Try re-installing the drivers https://learn.sparkfun.com/tutorials/ho … 1615791300 and see if that helps it see the card(s) at the other end

Cards might be corrupt? Try reformatting them on a PC.

Hi TS-Russell / YellowDog

My apologies for the late update.

There is no problem with driver and SD card. It turns out the initialization file (Config.txt) created on the SD by Openlog firmware causing this issue ( the weird thing is that the problem still exists even I format the SD card with all kinds of methods). The simple solution for me now is to just replace the config.txt file with other good SD card one, and then it comes back to normal even it’s formatted later. I think it might be a bug of Openlog firmware .

Still thank you for your reply!