Hi are there any known issues with getting the micro sd breakout board working with an Arduino zero board ?
When using the same breakout and same connections on Uno all works just fine, so SD card is formatted ok and wiring i am using is good.
but when i switch to ZERO board, i get the "initialization failed, is card plugged in , check wiring " etc.
I tried changing spi clock from half to quarter with no difference. I tried moving CS from 10 to 4, still nothing.
And as mentioned same card, same board, same connections with Uno work fine.
All other apps i have been working with on Zero work ok, even ones that use SPI connections for other devices.
any suggestions ?
Ken
Micro SD breakout with Arduino Zero ?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Micro SD breakout with Arduino Zero ?
How are you attaching to breakout to the Zero? Are you using the ICSP pins?
- smartrf
- Posts: 19
- Joined: Sat Sep 28, 2013 6:25 pm
Re: Micro SD breakout with Arduino Zero ?
Hi actually i am just following other SD card examples and connecting to pins 13,12,11 and then 10 as CS.
I have been trying to find good instructions and examples for the arduino zero, but they are not easy to find.
I did try some experiments to insure the level shifter and connections are working by driving SCK 13 and CS 10
to allow me to insure the led on the sd breakout board can be controlled and that the level shifter is properly handling
the SCK signal etc and all is fine when driving the IO directly i can control the led on the breakout board.
So i guess the issue is how the ZERO controls the SPI signals and on what pins these actually come out on.
Next I will attach a scope or logic analyzer to see what is actually happening on the various pins as i run the sketch.
just did not have time yet to set things up.
I have been trying to find good instructions and examples for the arduino zero, but they are not easy to find.
I did try some experiments to insure the level shifter and connections are working by driving SCK 13 and CS 10
to allow me to insure the led on the sd breakout board can be controlled and that the level shifter is properly handling
the SCK signal etc and all is fine when driving the IO directly i can control the led on the breakout board.
So i guess the issue is how the ZERO controls the SPI signals and on what pins these actually come out on.
Next I will attach a scope or logic analyzer to see what is actually happening on the various pins as i run the sketch.
just did not have time yet to set things up.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Micro SD breakout with Arduino Zero ?
See here:
https://www.arduino.cc/en/Main/ArduinoBoardZero
Scroll down to the Input and Output section. The Zero only brings SPI out to the SPI header. 11, 12, and 13 are just plain vanilla GPIO.
https://www.arduino.cc/en/Main/ArduinoBoardZero
Scroll down to the Input and Output section. The Zero only brings SPI out to the SPI header. 11, 12, and 13 are just plain vanilla GPIO.
- smartrf
- Posts: 19
- Joined: Sat Sep 28, 2013 6:25 pm
Re: Micro SD breakout with Arduino Zero ?
Hi
thank you very much ... i missed that statement regarding SPI only supported on SPI header or ICSP.
I connected SPI signals to that 6 pin header and all works just fine with Arduino Zero.
I see that the pins 13,12,11,10 have the ability to be connected by mux setting to Sercom 1 and thus probably could
be used as SPI interface with the proper special driver or code in a sketch.
but for now, it works fine, ill look into configuring an alternative mux settings to allow access to other
configurations in the future.
Thanks for pointing out the standard SPI driver only drives signals on the SPI header, of the ZERO...
Ken
thank you very much ... i missed that statement regarding SPI only supported on SPI header or ICSP.
I connected SPI signals to that 6 pin header and all works just fine with Arduino Zero.
I see that the pins 13,12,11,10 have the ability to be connected by mux setting to Sercom 1 and thus probably could
be used as SPI interface with the proper special driver or code in a sketch.
but for now, it works fine, ill look into configuring an alternative mux settings to allow access to other
configurations in the future.
Thanks for pointing out the standard SPI driver only drives signals on the SPI header, of the ZERO...
Ken
Please be positive and constructive with your questions and comments.