We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
Hi,
yes we at Keil have implemented it in our Flash File System which is part of our RealTime Library.
Just for information you can see in Complete User's Guide the results of read and write speeds.
For example we achieved write speed of 3946.3 KBs and read speed of 5330.6 KBs for MCB2300 with SD4 interface running at 24MHz.
Thanks milorad, I have one more doubt regarding SD/MMC card interface. Can we use SDIO(SD Input/Output) card in this interface.
I think you can not use SDIO on this interface.