SD write block on LPC540xx

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

SD write block on LPC540xx

1,115 次查看
giuseppe_sama
Contributor I

Good morning,

I read without problems an SD card on LPC540 trought "SD/MMC and SDIO interface".

Now I am writing a single block to SD (CMD24) and I transfer all the block (512 bytes) trought FIFO (32 bit depth and 32 bit width) without problems. But at end of transmission (latest 32 FIFO word transmitted), I receive the DCRC bit (Data CRC error) in RINTSTS register.

In effect, I transmitted 512 bytes without CRC16, but I don't know the register for save the CRC16. I need to calculate it for the block and transmit it? I need to transmit 512+2 bytes?

Thanks.

0 项奖励
回复
1 回复

1,046 次查看
FelipeGarcia
NXP Employee
NXP Employee

Hi Giuseppe,

 

You do not need to calculate the CRC, the module should add it by itself. Just so I can have more information, what happens if you read the same data you have written to the SD card? Is the data corrupted?

 

Please let me know your findings.

 

Best regards,

Felipe

0 项奖励
回复