FRDM-K64F SDHC init problem

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

FRDM-K64F SDHC init problem

跳至解决方案
567 次查看
rothkarl
Contributor III

Hello everyone!

I am developing a FAT stack for SDHC cards for my MSC thesis, and I have faced with some problems at the very beginnings.

I am trying to initialize my SDHC card from my fimrware but at this point I have stucked:

   

     -First of all, in my configuration I am using SDHC peripheral

     -After power up I issue a CMD0 SW reset command to the SDHC card, but I cannot get back the so called R1 response data

     -Following up the mandatory routine I issue a CMD8 command, to check voltage range support of the card, and it responds back with

     the same pattern, in case I sent valid paramters. This signs that the communication at phy layer should be ok.

     -The problem arises when I am issuing ACMD41 command, with 0 Voltage level argument, but I cannot get back the OCR register content of the card. Instead the response register of the           micro  contains the previous respond. The problem is, that I have not figured out yet, that how could I determine that the micro have not received valid response, however every flag signs      that a command successfully executed, and no error flags signs other.

In that case I send invalid parameters as CMD8 argument, that the previous content of the response register remains the same. This terminology means that no response were received (as Phy specification also says: In that case CMD8 args are invalid, that SD card not responds). But the problem is, that I have experienced the same when issuing ACMD41 command, and other commands, I simply cannot get valid answers, and from the sw point of view I am unable to determine that the response fields containing valid data or some previous data.

I am looking for the help of professionals who have deeper lever experience in this case.

Thank you very much in advance!

标签 (1)
0 项奖励
1 解答
391 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Roth,

you may find useful this post https://community.freescale.com/docs/DOC-105852

Regards,

Carlos

在原帖中查看解决方案

0 项奖励
1 回复
392 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Roth,

you may find useful this post https://community.freescale.com/docs/DOC-105852

Regards,

Carlos

0 项奖励