I 'm using S32K146. My LPSPI communication is under FreeRTOS operating system. When I download my project to the chip, the Run Time in FreeRTOS Task List shows that my lpspi Task is 0%. But I put it in the c / c ++ project, the Run Time became 10.6%, the code of two project files are the same, but why is there such a big difference in Run Time?
Can anyone help?
IDE: S32 Design Studio for ARM v3.0.0
Here is in c Project:
Here is in c/c++ project:
I think this could be due to the optimizations in your C project, could you try disabling it? You can do this in the project properties:
Let me know if this helps you.