S32K146+LPSPI+FREERTOS run time

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

S32K146+LPSPI+FREERTOS run time

807 Views
carolineliu_wiw
Contributor II

Hi, everyone!

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:

pastedImage_1.png

Here is in c/c++ project:

pastedImage_2.png

Thanks!

2 Replies

727 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello carolineliu_wiw@163.com‌,

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:

pastedImage_1.png

Let me know if this helps you.

Best Regards,

Alexis Andalon 

727 Views
carolineliu_wiw
Contributor II

Hi,Alexis Andalon!

Thanks for your reply!  You are right. when i disable the optimization in C project, the run time becomes 10.6%, same as in C/C++ project. 

Liu

0 Kudos