Hey guys, I've got an Adafruit microSD breakout board that I'm using with a Nano 33 BLE to read and write from a 2GB card. When I couldn't get any communication from the card in my program, I tried running the CardInfo example from the SD library and got the card dead/not present output:
Initializing SD card...initialization failed. Things to check: * is a card inserted? * is your wiring correct? * did you change the chipSelect pin to match your shield or module?
The only thing I changed in the example code was the chipSelect pin from 4 to 10. All my libraries are up to date, and there are no compilation errors. The program uploads and runs fine, it just never recognizes the card.
I know the issue isn't with the card or the board, because both work perfectly with an original ATMega
Nano wired the same way.
I don't think the issue is with the extra components (level shifter, regulator) on the Adafruit breakout because I also tried a Sparkfun Transflash breakout and that didn't work either.
I've tried using both PlatformIO in VS Code, and the Arduino IDE, including the latest stable and hourly builds.
I've tried two different computers, one running Win10 and the other Ubuntu 19.10.
I know these newer Nanos have had some compatibility issues, but just about all the other problems I've seen on google and forums have manifested with failed compiles that give error codes to go off of.
The only hint that I have of what's going wrong here is when I select the Nano 33 board in the Arduino IDE, the syntax highlighting on the SPI include statement disappears.
Anybody got any ideas?