This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

multiple block of read and write data in SD card ( MCB2300 board with LPC2368)

Hi All,

Can anybody implemented the read and write of multiple block of data to and from SD card in MCB2300 board with LPC2368?

The source code in NXP site has single read and write block data.

For Multiple block of data we made the following changes:
User data length = 1024,
SD block length = 512.
1.Set the Block length with 512. (if we try to set Block Length > 512 i.e.1024, then BLOCK_LEN_ERROR in SD card status register)
2.Issue the CMD25, WRITE_MULTIPLE_BLOCK to SD Card.
3.configure the MCI DATA LENGTH register with 1024 and set the block_size in MCI DATA CONTROL register with 9(2 pow 9 = 512).
4. enable the interrupts.

Now waiting for DataBlockEnd flag to be set in ISR?
Now when the DataBlockEnd is set then only 512 bytes of data was transferred, for remaining 512 we haven't get the interrupt?

What changes we have to made for multiple read and write of data?

Parents Reply Children