MPC5748g-freertos-sdhc

cancel
Showing results for 
Search instead for 
Did you mean: 

MPC5748g-freertos-sdhc

Jump to solution
523 Views
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 Kudos
1 Solution
494 Views
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

View solution in original post

0 Kudos
4 Replies
495 Views
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 Kudos
488 Views
Krishnaja
Contributor II

.

0 Kudos
496 Views
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.

Tags (1)
0 Kudos
463 Views
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 Kudos