task abnormal with FreeRTOS_v10_0_1

cancel
Showing results for 
Search instead for 
Did you mean: 

task abnormal with FreeRTOS_v10_0_1

Jump to solution
232 Views
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!

Tags (1)
1 Solution
106 Views
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.
-------------------------------------------------------------------------------

View solution in original post

2 Replies
107 Views
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.
-------------------------------------------------------------------------------

View solution in original post

106 Views
zhaoyanling
Contributor III

Hello Jimmenez,

Thank you very much for your kind help!

0 Kudos