S32K144 FreeRTOS CAN

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

S32K144 FreeRTOS CAN

2,374件の閲覧回数
乔国栋
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,349件の閲覧回数
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,343件の閲覧回数
乔国栋
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,372件の閲覧回数
乔国栋
Contributor II

d1c562696b9ddc339f70cf1b35392f9.png

d9b3a4306fbb9f0f0a380d22843e27f.png

3d74b7c5fd8c3d1204b4e33c7ab15e0.png

1802235f01868f542c845796f23b6a1.png

 

06c63ca62ad92f14a88eb0404cc3639.png

0 件の賞賛
返信

2,369件の閲覧回数
乔国栋
Contributor II

49047b18fb85c979cd0350186cf8716.png

This function jumps directly to the exception

0 件の賞賛
返信

2,371件の閲覧回数
乔国栋
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 件の賞賛
返信