SD Card not response

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Sef
Posts: 6
Joined: Mon Feb 20, 2012 10:40 am
Has thanked: 2 times
Been thanked: 1 time
Contact:

SD Card not response

Post by Sef »

My project
test.fcf
(40.91 KiB) Downloaded 294 times


MCU : 18F4550
Micro SD: Sandisk 512MB FAT16

My sd card design like this
sd card.png
(17.03 KiB) Downloaded 2742 times
, except code protect and WP pins and mcu and sd card supply 3.3v

Init_FAT() return 254 0xFE - No Response Error.

mesurements with digital ossiloscope, logik analyzer seems be ok. My ossiloscope, LA is Owon MSO7102T

What is wrong?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SD Card not response

Post by Benj »

Hello,

Hm, have you had the card working with another system eg E-blocks or are you trying it for the first time.

I would suggest that you maybe try some other cards or try and reduce the SPI clock speed for the FAT component. There are already a few topics on the forum regarding how to do this depending on which version of Flowcode your using.

I am currently working on the FAT component in my spare time to try and improve the functionality and allow the newer uSD and SDHC type cards to work. This may be some time until completion but I will let everyone know once I am done.

Let me know how you get on.

User avatar
Nico595
Posts: 84
Joined: Mon Jan 23, 2012 6:46 pm
Location: France
Has thanked: 12 times
Been thanked: 10 times
Contact:

Re: SD Card not response

Post by Nico595 »

Hi,

Can you verifie if SDO and SDI is not inverted.

DI SDcard -> SPI MOSI
DO SDcard -> SPI MISO

If your UC power is 5V you must used Buffer between UC and SDcard

Image
Source: http://fx.damasgate.com/accessing-flash-memory-cards/


Even with others SDcard hardware there is no problem but you must used SDcard no SDHC and < 2GO.


Nicolas.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SD Card not response

Post by Benj »

Beta SD FAT component for v5 topic has been moved here http://www.matrixmultimedia.com/mmforum ... 46&t=10989

Post Reply