Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: (SD Card) Need help on debug output
PostPosted: Fri Oct 19, 2007 5:48 am 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi,

I am using kernel 2.6.23.1 from kernel.org and using AT91SAM9261EK board.

I have compiled with SPI disabled and AT91_MMC enabled (static build -- Not as a module).

My SD card (Kingston 1GB card) could not be detected.

Below is the extracted MCI related debug output. Can anyone help to advise on the possible causes of the SD card not being detected successfully ?

Thanks in advance.

====== debug output on console

Probe MCI devices
AT91 MMC: 4 wire bus mode not supported - using 1 wire
mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
MMC: Setting controller bus width to 1
Added MCI driver
mmc0: clock 0Hz busmode 1 powermode 1 cs 0 Vdd 21 width 0 timing 0
MMC: Setting controller bus width to 1
mmc0: clock 375000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
clkdiv = 132. mcck = 374183
MMC: Setting controller bus width to 1
mmc0: clock 375000Hz busmode 1 powermode 2 cs 1 Vdd 21 width 0 timing 0
clkdiv = 132. mcck = 374183
MMC: Setting controller bus width to 1
mmc0: starting CMD0 arg 00000000 flags 00000040
Sending command 0 as 00000800, arg = 00000000, blocks = 0, length = 0 (MR = 00008384)
MCI irq: status = 0000C0E5, C07F0001, 00000001
Command ready
Completed command
Status = 0000C0E5 [00000000 00000000 00000000 00000000]
mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
mmc0: clock 375000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0 timing 0
clkdiv = 132. mcck = 374183
MMC: Setting controller bus width to 1
mmc0: starting CMD8 arg 000001aa flags 00000075
Sending command 8 as 00001848, arg = 000001AA, blocks = 0, length = 0 (MR = 00008384)
MCI irq: status = 0010C0E4, C07F0001, 00100000
MMC: Response timeout
Completed command
Status = 0010C0E5 [00000000 00000000 00000000 00000000]
Error detected and set to 1 (cmd = 8, retries = 0)
mmc0: req done (CMD8): 1: 00000000 00000000 00000000 00000000
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
mmc0: starting CMD55 arg 00000000 flags 00000075
Sending command 55 as 00001877, arg = 00000000, blocks = 0, length = 0 (MR = 00008384)
MCI irq: status = 0002C0E4, C07F0001, 00020000
MMC: Response direction error
Completed command
Status = 0006C0E4 [FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF]
Error detected and set to 2 (cmd = 55, retries = 0)
mmc0: req done (CMD55): 2: ffffffff ffffffff ffffffff ffffffff
mmc0: starting CMD55 arg 00000000 flags 00000075
Sending command 55 as 00001877, arg = 00000000, blocks = 0, length = 0 (MR = 00008384)
MCI irq: status = 0002C0E4, C07F0001, 00020000
MMC: Response direction error
Completed command
Status = 0006C0E5 [FFFFFFFF 00000000 00000000 00000000]
Error detected and set to 2 (cmd = 55, retries = 0)
mmc0: req done (CMD55): 2: ffffffff 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 00000075
Sending command 55 as 00001877, arg = 00000000, blocks = 0, length = 0 (MR = 00008384)
MCI irq: status = 0002C0E4, C07F0001, 00020000
MMC: Response direction error
Completed command
Status = 0002C0E4 [FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF]
Error detected and set to 4 (cmd = 55, retries = 0)
mmc0: req done (CMD55): 4: ffffffff ffffffff ffffffff ffffffff
mmc0: starting CMD55 arg 00000000 flags 00000075
Sending command 55 as 00001877, arg = 00000000, blocks = 0, length = 0 (MR = 00008384)
MCI irq: status = 0002C0E4, C07F0001, 00020000
MMC: Response direction error
Completed command
Status = 0002C0E4 [FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF]
Error detected and set to 4 (cmd = 55, retries = 0)
mmc0: req done (CMD55): 4: ffffffff ffffffff ffffffff ffffffff
mmc0: starting CMD1 arg 00000000 flags 00000061
Sending command 1 as 00001841, arg = 00000000, blocks = 0, length = 0 (MR = 00008384)
MCI irq: status = 0002C0E4, C07F0001, 00020000
MMC: Response direction error
Completed command
Status = 0002C0E4 [FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF]
Error detected and set to 4 (cmd = 1, retries = 0)
mmc0: req done (CMD1): 4: ffffffff ffffffff ffffffff ffffffff
mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
MMC: Setting controller bus width to 1
================================


Top
 Profile  
 
 Post subject: Problem solved
PostPosted: Sun Oct 21, 2007 2:03 pm 
Offline

Joined: Wed Jul 04, 2007 8:01 am
Posts: 37
Hi,

As far as the AT91_MCI modules is concerned, I have solved the problem.

By changing the parameter from MMC_BUSMODE_OPENDRAIN to MMC_BUSMODE_PUSHPULL, things worked !

Anyone know the real reason behind this ? Is it a requirement on the hardware to have some pull-up resistors on CMD or data lines (I have a pull-up on the SCK line) ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 23, 2007 9:32 am 
Offline

Joined: Thu Aug 09, 2007 10:48 am
Posts: 106
Location: Artec Design LLC, Tallinn, Estonia
Our boards have pullup on MCCDA and so far it has worked for me. I havent asked the HW team if the pullup there is needed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: