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
I have attached the code for reference. PFA
Please tell he how to resolve it.
Krishnaja.
Solved! Go to Solution.
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
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
.
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.
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