I’m using the SdCardLogHandlerRK library but so far without success to have it logged data in the SD card.
This is what I have tried so far
- Adding the library in my code and the logging functions as per the example. The log is properly displayed in the serial console but nothing in the SD card. I got error mkdir failure.
- I changed SPI_FULL to SPI_HALF_SPEED, no success.
- I have created the folder logs in the SD card and reinserted it. When I open the folder logs, I see many folders and files in garbled text. The files and folder can’t be opened. I formatted the SD card, did again the same, but same result garbled text and empty files.
- I thought there was an issue with my code, so just used the example as it is (https://github.com/rickkas7/SdCardLogHandlerRK/blob/master/examples/1-simple/SdCardLogExample.cpp) , but the same result.
I checked a million of times the connection and I don’t think there is an issue with it. I just connected as in the example. The only difference is that I’m using an Electron instead of a Photon.
Module -> Electron
3v3 -> 3v3
CS -> A2
MOSI -> A5
CLK -> A3
MISO -> A4
GND -> GND
Now I’m clueless therefore turning to the community.
Thanks all in advance!