A question about uSDHC module on mpc5748G

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

A question about uSDHC module on mpc5748G

502 Views
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 Kudos
Reply
1 Reply

487 Views
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 Kudos
Reply