A question about uSDHC module on mpc5748G

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

A question about uSDHC module on mpc5748G

323件の閲覧回数
shingozhou
Contributor III

Hi,

I have a question about SDHC module.

The MCU is connected to an external SD I/O card instead of an SD card or MMC card, in order to initialize the uSDHC module and conmunicate between the MCU and SD I/O card, which of the following two options should I choose?

 1. use the function uSDHC_Init() defined in the file "usdhc_impl.c".

 2. directly use a few simple library fucntions defined in the file "usdhc_driver.h", such as uSDHC_DRV_Init(), uSDHC_DRV_InstallCallback(), uSDHC_DRV_SetBusClock(), uSDHC_DRV_SetDataBusWidth().

 PS: precontion:S32_SDK_S32PA_RTM_3.0.0.

BR,shingo

0 件の賞賛
1 返信

308件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

There are two example codes in SDK v3.0.3:
sdhc_fatfs_mpc5748g - this is a simple FATFS application created to access SD card via uSDHC interface

sdhc_freertos_mpc5748g - this is a SDHC/FATFS example application on FreeRTOS

No further example exists although it seems driver supports SDIO as well so apparently this card type is supported too so I guess you could use first option.

davidtosenovjan_0-1669887130003.png

 

0 件の賞賛