task abnormal with FreeRTOS_v10_0_1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

task abnormal with FreeRTOS_v10_0_1

跳至解决方案
2,162 次查看
zhaoyanling
Contributor III

Hello expert,

I debug the example:

I used S32K144 EVM board , and the SDK version is S32SDK_S32K1xx_RTM_3.0.0.

And I use the FreeRTOS_v10_0_1 which comes with the SDK

I use the CAN0 and CAN2but after I initialize the CAN driver( CAN_Init() function) the APP_TASK can not work, the prvCheckTasksWaitingTermination() is executed for ever.  If I disable CAN_Init() function, APP_TASK can work normally.

What may be the reason?

I attach my project.

Could you give me some suggestion?

Thank you very much!

标记 (1)
1 解答
2,036 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello,


First, I would like to apologize for the late response. I imported your project and I noticed a couple of things that got my attention.

The following warnings.

pastedImage_3.png

Your callbacks only receive three parameters.

pastedImage_6.png

However, the type flexcan_callback_t receives 4 parameters, you are missing the buffIdx.

pastedImage_2.png

Also, in your function CAN_INIT, you are initializing two times the same instance.

pastedImage_6.png

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
2,037 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello,


First, I would like to apologize for the late response. I imported your project and I noticed a couple of things that got my attention.

The following warnings.

pastedImage_3.png

Your callbacks only receive three parameters.

pastedImage_6.png

However, the type flexcan_callback_t receives 4 parameters, you are missing the buffIdx.

pastedImage_2.png

Also, in your function CAN_INIT, you are initializing two times the same instance.

pastedImage_6.png

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

2,036 次查看
zhaoyanling
Contributor III

Hello Jimmenez,

Thank you very much for your kind help!

0 项奖励
回复