11
General Discussion / Re: MicroSD fails to initialize
« Last post by Rydez on July 23, 2022, 09:59:43 AM »Started doing some deeper debugging within the SD library. I've found that the card fails here: https://github.com/arduino-libraries/SD/blob/a61e84b97b7742024ea2c8545a2b797aa6d551f4/src/utility/Sd2Card.cpp#L305. Timeout is reached while attempting to go into idle state. The timeout is set to 2,000 ms. I tried waiting 100,000 ms, but it didn't work. The status_ variable in Sd2Card is 0x20 before running card.init(), and 0xFF after.