I noticed that the KSDK 2.0 has support for the eMMC. Are there any examples?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

I noticed that the KSDK 2.0 has support for the eMMC. Are there any examples?

跳至解决方案
1,866 次查看
calvinday
Contributor III

I am using a K66 device.

标签 (1)
0 项奖励
回复
1 解答
1,558 次查看
calvinday
Contributor III

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

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,559 次查看
calvinday
Contributor III

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

0 项奖励
回复
1,558 次查看
calvinday
Contributor III

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

0 项奖励
回复
1,558 次查看
ivadorazinova
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复