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!