IMX6Q EMMC Write Protection PROBLEM

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

IMX6Q EMMC Write Protection PROBLEM

1,609 次查看
wangwangwang
Contributor I

Dear community.

    We have a problem about the EMMC Write Protection for specific segments。

    We coded the program according to the JESD84-B45(emmc 4.5).This process is shown in the following diagram.But we found that the return value of the CMD31(SEND_WR_PROTECT_TYPE) was always not correct, and after executing this code,we could still write this block, so we thought the block was unlocked. And we found that the register was set correctly(US_PERM_WP_DIS and US_PWR_WP_EN), and the CMD28(SET_WR_PROT) was transferred correctly whose response was also OK.

    So would you know the reason why we were failed?Or can you offer us some suggests or some code examples?

    Thanks very much!.

Best.

wangwang.wang

pastedImage_1.png

标签 (1)
0 项奖励
回复
3 回复数

1,244 次查看
igorpadykov
NXP Employee
NXP Employee

Hi wangwang 

cmd31 marked as "reserved" in Table 67-5. Commands for MMC/SD/SDIO Cards

i.MX6DQ Reference Manual

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf

In general one can try to narrow down if this is caused by emmc or i.mx by

testing emmc on another processor or trying brand new card.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,244 次查看
wangwangwang
Contributor I

But the function of CMD31 is  to verify whether Write Protection is successful.Even if we didn't use CMD31, we could still write this block.

0 项奖励
回复

1,244 次查看
igorpadykov
NXP Employee
NXP Employee

you can try to narrow down if this is caused by emmc or i.mx by

testing emmc on another processor or trying brand new card.

0 项奖励
回复