MPC5748g-freertos-sdhc

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5748g-freertos-sdhc

ソリューションへジャンプ
1,108件の閲覧回数
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,079件の閲覧回数
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,080件の閲覧回数
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,073件の閲覧回数
Krishnaja
Contributor II

.

0 件の賞賛
1,081件の閲覧回数
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,048件の閲覧回数
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 件の賞賛