I was able to get the sdcard_fatfs_twrk65f180m example working with the eMMC device.
(C:\Freescale\SDK_2.0\boards\twrk65f180m\driver_examples\sdcard_fatfs)
It does require a few changes:
I had to add SDHC_D4 - SDHC_D7 multiplexing and did not use the card detect. (eMMC is not normally removed)
Debug was on a different port.
const TCHAR driverNumberBuffer[3U] = {MMCDISK + '0', ':', '/'}; // this was SDDISK
#define _VOLUMES 5 // this was 3
#define MMC_DISK_ENABLE // this was added
I couldn't set the max speed 52 MHz because my system clock is set to 32.768 MHz
I was able to get the sdcard_fatfs_twrk65f180m example working with the eMMC device.
(C:\Freescale\SDK_2.0\boards\twrk65f180m\driver_examples\sdcard_fatfs)
It does require a few changes:
I had to add SDHC_D4 - SDHC_D7 multiplexing and did not use the card detect. (eMMC is not normally removed)
Debug was on a different port.
const TCHAR driverNumberBuffer[3U] = {MMCDISK + '0', ':', '/'}; // this was SDDISK
#define _VOLUMES 5 // this was 3
#define MMC_DISK_ENABLE // this was added
I couldn't set the max speed 52 MHz because my system clock is set to 32.768 MHz
There is a code snippet. It would seem that there might be an example that goes with it:
C:\Freescale\SDK_2.0\docs\Kinetis SDK v.2.0 API Reference Manual\group__SDHC.html
Hi Calvin,
at the moment there is no such example for eMMC under KSDK 2.0.
I will keep you informed in case of any update.
Have a nice day.
Iva
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------