MPC5748g-freertos-sdhc

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

MPC5748g-freertos-sdhc

跳至解决方案
1,152 次查看
Krishnaja
Contributor II

Hi,

I tried to create as task sdhc(to write and read a file on sd card) on free rtos. We I run the code it is stuck in the thread. PFA

Krishnaja_0-1618461255722.png

I have attached the code for reference. PFA

Please tell he how to resolve it.

 

Krishnaja.

0 项奖励
1 解答
1,123 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

so you added sdhc stack into freertos_mpc5748g demo example. Seems you got devassert due to calling clock init again in vSDHCTask task. I think Platform_Init() can be commented out and DbgConsole_Init() with SDHC_fatfs_initialize() should be called in main after pin init.

BTW, there is sdhc_freertos demo directly within S32DS, so you can refer to it.

BR, Petr

在原帖中查看解决方案

0 项奖励
4 回复数
1,124 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

so you added sdhc stack into freertos_mpc5748g demo example. Seems you got devassert due to calling clock init again in vSDHCTask task. I think Platform_Init() can be commented out and DbgConsole_Init() with SDHC_fatfs_initialize() should be called in main after pin init.

BTW, there is sdhc_freertos demo directly within S32DS, so you can refer to it.

BR, Petr

0 项奖励
1,117 次查看
Krishnaja
Contributor II

.

0 项奖励
1,125 次查看
Krishnaja
Contributor II

any update?

Note: I have also changed the following.

PH8 pin tied low, e.g. setting with setting with OBE: Disabled, PUS: Pull-down, PUE: Enabled, Initial Value: Low and formatted the sd card.

标记 (1)
0 项奖励
1,092 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

did you try the "sdhc_freertos_mpc5748g" demo example on your board?
Is this functional? if yes you can refer to it.

BR, Petr

0 项奖励