AnsweredAssumed Answered

SD write block on LPC540xx

Question asked by Giuseppe Samà on Apr 25, 2019
Latest reply on Apr 29, 2019 by Felipe García

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?