microSD/SPI issue initializing card

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

microSD/SPI issue initializing card

Jump to solution
972 Views
richardsabourin
Contributor II

Hi all,

I have experience with Kinetis and SPI, but this is my first time bringing up an SD card interface. Starting with a TWR-K20D72M tower board, I have wired a microSD card (proto board from MicroElectronika) to SPI0 through the TWRPI connector J8.

The init sequence is well known, and I'm 95% sure the signals are getting to the card, but the MISO line seems to not be driven properly by the card. It's just some sort of reflection. A couple of scope shots of CMD0 are attached. The clock speed is ~ 180 KHz.

I've seen a couple old postings of this issue in other forums, but no solution. Anybody seen this before, and know what it means? Any advice appreciated!

tek00002.png

tek00003.png

0 Kudos
1 Solution
639 Views
richardsabourin
Contributor II

SOLVED: Bad solder joints.

View solution in original post

0 Kudos
3 Replies
639 Views
mjbcswitzerland
Specialist V

Richard

I am a little late but I was wondering whether the power supply was missing at the SD card.

Also I was going to send a reference application that uses the same SD card interface on the TWR board as reference to check that it was HW.

In case you still need something I have the following:

http://www.uTasker.com/freescale/TWR_K20D72M_USB-MSD-SD_card_SPI0.srec

which can be loaded to the board using the CW flash utility.

It performs USB-MSD when a PC is connected to the application USB port so the SD card appears as an external hard-drive. If the serial card is connected in the tower kit at the same time the UART can be used to access a DOS-like interface (115k - in menu 8 o fthe command line interface) where a local FAT works with the SD card and also allows viewing SD card sectors and doing analysis on files entries for SFN and LFNs, etc.

Regards

Mark

The FAT used is documented here: http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF

The USB stack used is documented here: http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF

639 Views
richardsabourin
Contributor II

Mark,

Thanks for your response, I will check out that application.

R,

0 Kudos
640 Views
richardsabourin
Contributor II

SOLVED: Bad solder joints.

0 Kudos