LPSPI driver blocks when using FreeRTOS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPSPI driver blocks when using FreeRTOS

Jump to solution
894 Views
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,

Labels (1)
0 Kudos
1 Solution
876 Views
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

View solution in original post

0 Kudos
2 Replies
868 Views
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 Kudos
877 Views
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 Kudos