microSD/SPI issue initializing card

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

microSD/SPI issue initializing card

跳至解决方案
1,908 次查看
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 项奖励
回复
1 解答
1,575 次查看
richardsabourin
Contributor II

SOLVED: Bad solder joints.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,575 次查看
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

1,575 次查看
richardsabourin
Contributor II

Mark,

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

R,

0 项奖励
回复
1,576 次查看
richardsabourin
Contributor II

SOLVED: Bad solder joints.

0 项奖励
回复