LPSPI driver blocks when using FreeRTOS

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

LPSPI driver blocks when using FreeRTOS

跳至解决方案
2,162 次查看
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 解答
2,144 次查看
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 回复数
2,136 次查看
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 项奖励
回复
2,145 次查看
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 项奖励
回复