S32K144 FreeRTOS CAN

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

S32K144 FreeRTOS CAN

2,361 次查看
乔国栋
Contributor II

Hello, I use S32K144 series chip, SDK is 3.0.0. There is a problem in the process of using.

I created two CAN tasks, running them alone is fine, but running them both at the same time will cause an exception.

I have located the following functions that appear to be the install callback function. What's the reason, please? How to solve

0 项奖励
回复
5 回复数

2,336 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

can you share your code? You wrote 2 CAN tasks are created but from pictures only single is seen.
You mean when install callback function is executed the code goes to DefaultISR? 
This function just save pointer to callback function into drive's state variable. Callback function will be called from CAN interrupt.

BR, Petr

0 项奖励
回复

2,330 次查看
乔国栋
Contributor II

There are two CAN initializers one FCBUSS and one ACDC, and my single step does jump to DefaultISR at the end of installing the callback.

0 项奖励
回复

2,359 次查看
乔国栋
Contributor II

d1c562696b9ddc339f70cf1b35392f9.png

d9b3a4306fbb9f0f0a380d22843e27f.png

3d74b7c5fd8c3d1204b4e33c7ab15e0.png

1802235f01868f542c845796f23b6a1.png

 

06c63ca62ad92f14a88eb0404cc3639.png

0 项奖励
回复

2,356 次查看
乔国栋
Contributor II

49047b18fb85c979cd0350186cf8716.png

This function jumps directly to the exception

0 项奖励
回复

2,358 次查看
乔国栋
Contributor II

What I know is the priority of the interrupt, but I CAN't find the enabled interrupt in the installation callback function, so I set the priority of all the interrupts about CAN, but this exception still occurs, when I just use a CAN task this problem does not occur

0 项奖励
回复