sdhcDemo

This example (located in the sdhcDemo directory) evaluates the throughput performance of the SD Host Controller (SDHC) by reading and writing a specific amount of data to and from the SD card.


*** Starting SDHC Demo ***

Initialize ..Respose: 0x40ff8000
Respose: 0xc0ff8000
Done
**************START SPEED TEST*******************
**SD CLOCK SPEED = 50000
**CARD SPEED = 25000 kHz
**CARD SIZE = 29508 Mbyte Total BLOCK = 60432384
**SD BUS WIDTH = 4
**BLOCK SIZE = 512 BUFFER OF BLOCK = 256
**TEST SIZE = 128 kbyte
*************************************************

!!!!Warning it will crash the SD card data!!!!

      ###Push Any Key to Continue###

Tested Block 0/60432384   Write s=16388 KByte/s   Read s=20535 KByte/s 
Note: Running this design setting would overwrite the data within the SD card causing the File System to be corrupted. You are required to re-format the SD card again after running this demo.

The SD Host Controller (SDHC) example supports both PIO and ADMA accesses. To enable ADMA mode, uncomment the #define DMA_MODE 1 preprocessor directive in the userDef.h file. Otherwise, comment it out to use the PIO mode.

To enable debug messages, set the DEBUG_PRINTF_EN directive to 1. This is beneficial for debugging during the development stage.