LPSPI driver blocks when using FreeRTOS

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

LPSPI driver blocks when using FreeRTOS

ソリューションへジャンプ
1,694件の閲覧回数
louis_pelletier
Contributor I

Hello,

 

I'm trying to use FreeRTOS in my application which involves the S32K146 with MC33664 and MC33771C.

 

I was able to add it to my project and run it with the CAN bus enabled and it works fine. But when I try to add the LPSPI module (Both Master and Slave) for the MC33664 it blocks the execution flow. I tried re-organize interrupt priorities but with no success.

 

Do you have any tips on how to use the LPSPI driver from the DSK with FreeRTOS?

 

Best regards,

ラベル(1)
0 件の賞賛
返信
1 解決策
1,676件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

usually increasing size of heap and stack of the task would help, as mentioned e.g. in https://community.nxp.com/t5/S32K/S32K146-FREERTOS-LSPI-but-SPI-dones-t-work/m-p/1032623

BR, Petr

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,668件の閲覧回数
louis_pelletier
Contributor I

Hello PetrS,

 

My apologies, I didn't find this post in my research. It did fix my problem, thank you.

 

I also had to assign a priority to the interrupt of the LPSPI Master and Slave driver for it to work.

 

Best regards,

0 件の賞賛
返信
1,677件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

usually increasing size of heap and stack of the task would help, as mentioned e.g. in https://community.nxp.com/t5/S32K/S32K146-FREERTOS-LSPI-but-SPI-dones-t-work/m-p/1032623

BR, Petr

0 件の賞賛
返信