S32K358 uSDHC async mode

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

S32K358 uSDHC async mode

974 次查看
Fanta
Contributor I

Hi,

I am trying to use async data transfer mode of uSDHC, are there any detailed instructions? It seems the example project 'Usdhc_Ip_Example_S32K358' only shows how to use polling mode.

Fanta_0-1745495484116.png

For example, in the code above, is it ok to simply change the last parameter to 'True' to use the async mode? However, as far as I know, there should be an interrupt to inform CPU the transfer has ended. 

So how should I configure the async mode correctly?

Best wishes

0 项奖励
回复
2 回复数

925 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

as far as I know module interrupt are enabled by driver and in case of Async mode you should configure user callback as well in Usdhc component and this callback will be called upon that event happen.
However I am not aware of the demo for this.

BR, Petr

0 项奖励
回复

725 次查看
Fanta
Contributor I
Hi PetrS,
I read the RTD driver code again, and I think I found the answer. In 301 line of Usdhc_Ip.c, there is an ISR for uSDHC, in which the transfer complete flag is set. Users don't need to implement it in callback function, but need to set the ISR in IntCtrl_Ip as the example project shows. The RTD driver is good enough however I think the user manual of RTD can be more detailed.
I write this discovery here in case anyone else wants to know.

Best wishes
0 项奖励
回复