This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48 HDK Cmd0 not responding

Other Parts Discussed in Thread: HALCOGEN, RM48L950

hi

I have tried sending CMD0 command through SPI2 with following initialization process

1.After power on 30 msec of delay

2.initializing spi CS = High

3.sending 80 clock pulses using spiReceiveData generated by Halcogen

4.CS =  Low, Delay of 16 cycles

5.Transmitting Command using spiTransmitData(spiREG2, ptr, 6, (uint16 *)scrbuf);

       uint16scrbuf[6] = {0x40, 0x00, 0x00, 0x00, 0x00, 0x95};

the Problem is SD is not responding to CMD0. In RxBuff while debugging i saw the response as 0xFF but as per the document it should wait for CMD0 response as 0x01 and then send other commands like CMD8 etc.

 

  • Hi,

    Are you not seeing 80 clock pulses on SPICLK?

    I am not sure how we can help.

    I would refer to the SD datasheet to understand what 0XFF means.

    Regards,

    Abhishek

  • I am able to see 80 clock pulses.

    I refered SD datasheet of sandisk which i am using it says 0th bit(Idle State) 1st bit(Erase Reset) 2nd(Illegal Command) 3rd(CRC Error) 4th(Erase Seq Error) 5th(Address Error) 6th(Parameter Error) and 7th bit (is always zero) but then if i am receving 0xFF is violating the MSB bit.

    Could you please check SPI Initialization for RM48L950. I have attached the document 6874.spi.c