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,
Solved! Go to Solution.
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
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,
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