SD write block on LPC540xx

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SD write block on LPC540xx

546件の閲覧回数
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 返信

477件の閲覧回数
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 件の賞賛