Hello,
I’m currently trying to collect CAN data on a micro SD card with the M2 UTD (Version 3 or earlier).
Unfortunately I can’t get any SD card to work using the library (https://github.com/macchina/M2_SD_HSMCI).
I’m using the DataLogger_dif example with a custom version of the library.
I wrote my own logging class to see advanced debug outputs (printf) on serial output.
I have read through all other threads regarding M2 and sdcards but haven’t found any solution.
I have tried 3 different MicroSD cards (all formatted to FAT 32):
- 1gb SanDisk SD
- 4gb SanDisk SDHC
- 16gb Samsung SDHC
Additionally I have ordered a Lexar 16gb SDHC that will arrive on thursday.
Both 4gb and 16gb show the following output:
16:18:33.770 -> DEBUG_MESSAGE: sd_mci_op_cond: ACMD41 Timeout on busy, resp32 0x00ff8000
16:18:33.770 -> MS: Cannot initialize the SD card: MS: Card is unusable, try another one
16:18:33.770 -> FS: Can’t open 0:/data to write, error code 12
16:18:33.863 -> FS: Attempt to write string to a non-open file.
16:18:33.863 -> FS: Attempt to close a non-open file.
1gb only shows outpu:
16:19:59.629 -> MS: Cannot initialize the SD card: MS: Card is unusable, try another one
16:19:59.676 -> FS: Can’t open 0:/data to write, error code 12
16:19:59.723 -> FS: Attempt to write string to a non-open file.
16:19:59.769 -> FS: Attempt to close a non-open file.
Are there any known problems with SD cards and M2 UTD (as seen here: Supported MicroSD card for M2)?
Does anyone have more ideas?
Thank you