Hello, i'm trying to interface an SD card with my teensy 4.0 board. Ive made a pub and was trying to upgrade my project by designing a pcb with more SMD components. I included a spring loaded SMD SD card mount but the SD card is not being detected, I followed schematics online but I still think my wiring could be wrong.
As far as I know, the SPI pins don't need to be pulled high, the unused data lines (DATA1 & 2) can be pulled high to stop leaking current and CDN is not used at all)
Hi,
Can you post a full circuit diagram and images of your PCB pattern.
You should be able to export images.
Did you breadboard your changes before going to PCB.
I'm not sure but you need some other component to interface an SD with your controller.
Look a an SD card module.
Here is a schematic I have found, it looks like you need an array of pull_up resistors.
This pcb is a second variation of my project, which was to make it smaller and compact with SMD components, so I didn't get to test it on a breadboard especially as the pins of the SD mount are so small.
And also the power of the SD card comes straight form the teensy regulated at 3.3v 100mA
@TomGeorge I've managed to pull CS high, and I get this message :
Initializing SD card...Wiring is correct and a card is present.
Card type: SD2
Could not find FAT16/FAT32 partition.
Make sure you've formatted the card
Ive tried pulling MISO, MOSI and SCK high but it seems to freeze the program so i'm not sure what could be stopping the teensy from reading the card
At least it can detect the card
@TomGeorge
I've checked and the SD card is formatted as FAT 32, I have CS pulled high but not MOSI MISO and SCK, as they didn't work before, but if I pull the pins high, but from the teensy through a 10k resistor should that work?
That suggests to me that you have the correct electrical connections in place as the library is able to correctly interact with the registers on the card.
I wonder if it's a card formatting issue. There's a sticky at the top of the Storage section of the forums that gives useful information on how to format SD cards and what tools to use to do it.
You don't says which Micro-SD card you are using but sometimes the library can get picky. If you have Micro-SD cards of another brand to hand, you could try one of them just in case.
The card has worked before with a breakout SD module I had and it can still be read by my laptop so i'm hoping it just can access the necessary info from the card due to my wiring.