S32K146+LPSPI+FREERTOS run time

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K146+LPSPI+FREERTOS run time

808件の閲覧回数
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 返答(返信)

728件の閲覧回数
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 

728件の閲覧回数
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 件の賞賛