Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Microsd card not working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Microsd card not working

by Sleevedog on Tue Jun 30, 2020 11:09 pm

Hi, I recently ordered a micro sd card holder(id. 254), and it doesn't appear to be working on my board. I have tried and tested everything I know could be wrong on it. The solder connections are good, there's continuity to each of the pins in the teensy and the pin on the teensy to the microcontroller, there's no continuity from the chip select pin to gnd, and the card is formatted to fat 32(I've tried two different cards). The red light on the sd holder turns on when I try to write to it, but the code always fails. I am not sure where to go from here any help would be greatly appreciated.

Sleevedog
 
Posts: 7
Joined: Tue Jun 30, 2020 10:22 pm

Re: Microsd card not working

by adafruit_support_bill on Wed Jul 01, 2020 5:40 am

What is the serial output when you run the cardinfo sketch from the SD library?

adafruit_support_bill
 
Posts: 78730
Joined: Sat Feb 07, 2009 10:11 am

Re: Microsd card not working

by Sleevedog on Wed Jul 01, 2020 11:01 am

adafruit_support_bill wrote:What is the serial output when you run the cardinfo sketch from the SD library?

I am using Arduino for my code.
\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 board lights up when it tries to get the info but it doesn't work.
Also, I did change the chip select to the correct pin.
Last edited by Sleevedog on Wed Jul 01, 2020 11:04 am, edited 1 time in total.

Sleevedog
 
Posts: 7
Joined: Tue Jun 30, 2020 10:22 pm

Re: Microsd card not working

by adafruit_support_bill on Wed Jul 01, 2020 11:03 am

Please post some photos showing your soldering and connections.

adafruit_support_bill
 
Posts: 78730
Joined: Sat Feb 07, 2009 10:11 am

Re: Microsd card not working

by Sleevedog on Wed Jul 01, 2020 11:13 am

adafruit_support_bill wrote:Please post some photos showing your soldering and connections.

The one joint has a little to much but the others are nearly perfect. The sd card is the first row of solder connections.
Attachments
AC8383DA-A3E9-432E-99B2-BA8F8214CF5E.jpeg
AC8383DA-A3E9-432E-99B2-BA8F8214CF5E.jpeg (187.04 KiB) Viewed 31 times

Sleevedog
 
Posts: 7
Joined: Tue Jun 30, 2020 10:22 pm

Re: Microsd card not working

by adafruit_support_bill on Wed Jul 01, 2020 12:03 pm

The soldering we can see looks good. But we need to see the soldering on the SD breakout too - as well as the wires connecting the card to your processor board.

adafruit_support_bill
 
Posts: 78730
Joined: Sat Feb 07, 2009 10:11 am

Re: Microsd card not working

by Sleevedog on Wed Jul 01, 2020 12:34 pm

Here’s a picture of the soldering on top of the board. I am not sure what you mean by wires. I am using the sd board on a pcb not a breadboard.
Attachments
71571CF2-8D7D-454F-A489-766E0F38B913.jpeg
71571CF2-8D7D-454F-A489-766E0F38B913.jpeg (285.87 KiB) Viewed 28 times

Sleevedog
 
Posts: 7
Joined: Tue Jun 30, 2020 10:22 pm

Re: Microsd card not working

by adafruit_support_bill on Wed Jul 01, 2020 12:46 pm

What is the board you have soldered it to? Please post some details & a pinout for that board.

adafruit_support_bill
 
Posts: 78730
Joined: Sat Feb 07, 2009 10:11 am

Re: Microsd card not working

by Sleevedog on Wed Jul 01, 2020 1:39 pm

I bought the board designs off bps.space patron. It is his blip board. I don't think I can give to much detail into how the board works since I don't own the design, just the right to use it. It has worked for numerous other people, though. The board works; it's only the sd holder that is not working. If you could ask more specific questions, I could probably answer those. So sorry for not being able to give a better answer.

Sleevedog
 
Posts: 7
Joined: Tue Jun 30, 2020 10:22 pm

Re: Microsd card not working

by adafruit_support_bill on Wed Jul 01, 2020 2:15 pm

Clearly there is a communication problem. But since we can't see how the processor is connected to the SD card breakout, it is difficult to speculate what the problem might be.

The breakout itself is a very simple board. The only active circuitry is a voltage regulator and a level shifter chip. The actual SPI interface is on the SD card itself.

Almost all of the issues we see are due to poor or incorrect connections. A few are due to bad or sometimes just slow cards.

One thing you can try is to change this line:
Code: Select all | TOGGLE FULL SIZE
while (!card.init(SPI_HALF_SPEED, chipSelect)) {

to:
Code: Select all | TOGGLE FULL SIZE
while (!card.init(SPI_QUARTER_SPEED, chipSelect)) {

adafruit_support_bill
 
Posts: 78730
Joined: Sat Feb 07, 2009 10:11 am

Re: Microsd card not working

by Sleevedog on Wed Jul 01, 2020 3:28 pm

I tried slowing it down, but that didn't work. I did, however, check the video he made on it, and he does show how he connects the sd, so here it is.
The microcontroller is the teensy 3.2
sd cs to pin 0
CLK to pin 13
di to pin 11
do to pin 12
cd isn't connected to anything
I hope this is what you were looking for. Here's a link to the video; you can find the sd portion timestamp in the description.
https://www.youtube.com/watch?v=23gJY8a8rHw

Sleevedog
 
Posts: 7
Joined: Tue Jun 30, 2020 10:22 pm

Re: Microsd card not working

by adafruit_support_bill on Wed Jul 01, 2020 3:55 pm

Skimming through the video, it looks like there are other devices on the SPI bus as well. If any of them are misbehaving it would interfere with reading from the SD.

adafruit_support_bill
 
Posts: 78730
Joined: Sat Feb 07, 2009 10:11 am

Re: Microsd card not working

by Sleevedog on Wed Jul 01, 2020 4:25 pm

Thank you! Thank you! Thank you! I have been trying for two months to find why it wasn't working. The flash chip had a bridge I didn't know about, and that stopped the sd from working. It works now. Thank you so much for your help.

Sleevedog
 
Posts: 7
Joined: Tue Jun 30, 2020 10:22 pm

Re: Microsd card not working

by adafruit_support_bill on Wed Jul 01, 2020 4:29 pm

Good to hear you found it. Thanks for the follow-up.

adafruit_support_bill
 
Posts: 78730
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.