HSMCI on at91sam9g25

Discussions about all user software around SAM Series.

Moderator: nferre

eballetbo
Posts: 6
Joined: Thu May 24, 2007 3:23 pm

HSMCI on at91sam9g25

Thu Aug 30, 2012 1:09 pm

Hi all,

I'm trying to enable HSMCI support for an at91sam9x5ek board with an at91sam9g25. I followed the
instructions in README.atmel_mci. In U-boot, if I use the command mmc rescan, the system hang. Seems the system is trying to send command (0) and then freeze.

Code: Select all

U-Boot 2012.07-00250-g5f50310-dirty (Aug 30 2012 - 12:49:20)                                                                                                                     
                                                                                                                                                                                 
CPU: AT91SAM9G25
Crystal frequency:       12 MHz
CPU clock        :      400 MHz
Master clock     :  133.333 MHz
DRAM:  128 MiB                                                                                                                                                                   
WARNING: Caches not enabled
NAND:  No NAND device found!!!
0 MiB                                                                                                                                                                            
MMC:   mci: 0                                                                                                                                                                    
No Valid Environment Area found 
No Valid Redundant Environment Area found
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   macb0
Hit any key to stop autoboot:  0
U-Boot> mmc rescan
mci: setting clock 260416 Hz, block size 512
mci: setting clock 260416 Hz, block size 512
mci: setting clock 260416 Hz, block size 512
CMD_SEND:0
                ARG                      0x00000000
                FLAG                     0
gen_atmel_mci: CMDR 00001000 ( 0) ARGR 00000000 (SR: 00000000) DEBUG
Looks like the system is waiting for the CMDRDY bit:

Code: Select all

drivers/mmc/gen_atmel_mci.c: 196
/* Wait for the command to complete */
while (!((status = readl(&mci->sr)) & MMCI_BIT(CMDRDY)));
I'll re-read the datasheet, but meanwhile, has someone any idea about what can be the problem ?

Thanks in advance,
Enric

Return to “Software”

Who is online

Users browsing this forum: No registered users and 2 guests