5. Emmc_copy
5.1. Function description:
This demo shows copying files on EMMC via SDIOn.
5.2. Test result:
If the terminal displays the desired print and the file is successfully copied as filename cp.txt, the execution is considered successful, otherwise it fails.
5.3. IO connection:
PAD |
PAD |
|---|---|
pad_sdion_sdclk |
emmc_clk |
pad_sdion_sdcmd |
emmc_cmd |
pad_sdion_sddat0 |
emmc_dat0 |
pad_sdion_sddat1 |
emmc_dat1 |
pad_sdion_sddat2 |
emmc_dat2 |
pad_sdion_sddat3 |
emmc_dat3 |
pad_sdion_sddat4 |
emmc_dat4 |
pad_sdion_sddat5 |
emmc_dat5 |
pad_sdion_sddat6 |
emmc_dat6 |
pad_sdion_sddat7 |
emmc_dat7 |
Note
The ‘n’ in “sdion” indicate the peripheral number.
An EMMC in FAT32 format should be prepared first.
There is a file named fatfs.txt on EMMC.