5746R IRQHandler issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

5746R IRQHandler issue

1,122 Views
supra0309
Contributor I

Hi :

I'm using 5746R to do CAN receiving interrupt. I set a breakpoint at red block. After debug the project, I send CAN data to MCU before click resume button, and then it can stop at here after click resume button first time.

But when it finish receiving and the job in second image and jump out of this function, the code just run away and never come back again to this interrupt although there's another CAN data sent to MCU.

I found some msg in third image, but I don't know what does it mean, please tell me how to fix it, thanks.

supra0309_2-1627003637864.png

supra0309_3-1627004230935.png

supra0309_4-1627004599874.png

 

Best Regards,

Xantia

0 Kudos
6 Replies

1,111 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

try to step through the code to see on which line it goes away.
Try if increasing stack size helps.

BR, Petr

0 Kudos

992 Views
supra0309
Contributor I

Hi,

How to increase stack size, I don't know where can I operate it, thanks.

BR,

Xantia

0 Kudos

977 Views
PetrS
NXP TechSupport
NXP TechSupport

within linker file.

BR, Petr

0 Kudos

1,070 Views
supra0309
Contributor I

Hi:

Continued from last question. I set a breakpoint at red block(image1). After debug the project, I send CAN data to MCU before click resume button, and then it can stop at here after click resume button first time.

After click resume button next time, the system process my code(image2), it's should send data to my PC from MCU and it actually work(image3), and I reset CAN receive SDK function at blue block. At this moment, it can still go back to the breakpoint set at red block when I click resume button again.

But when I use skip all breakpoints function, system jump out of receiving function, and the code just run away and never come back again to this interrupt although there's another CAN data sent to MCU.

I'm sure the CAN data can be rewritten when another data sent to MCU(image4&5). And I can check where is code going when I click suspend. It seems like system is still working(image6&7). How should I fix it, thanks. 

supra0309_0-1627611662637.png

supra0309_1-1627611828953.png

supra0309_4-1627612604386.png

supra0309_2-1627612435037.png

supra0309_3-1627612463447.png

supra0309_5-1627612890849.pngsupra0309_6-1627612914248.png

 

 

 

0 Kudos

1,056 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

so if understand well CAN message reception and breakpoints works normally, once you click on Resume, code is running until new message comes and it stops on breakpoint. If you select "skip all breakpoint" function and again click resume the code does not stop on breakpoint even if new message comes, but in this case receiving still works, you see new data. 
This means skip all breakpoints function works properly, no breakpoint is hit, but still placed. Disable this function and code will stop on new receive message again.

BR, Petr  

0 Kudos

1,039 Views
supra0309
Contributor I

Hi,

Sorry, I didn't describe it completely. I use skip all breakpoints function, system jump out of receiving function. And then when I "disable skip function", the code just run away and never come back again to this interrupt although there's another CAN data sent to MCU or whatever function I click. It just keep the CAN data received before I "enable skip function".

How should I fix it, thanks. 

supra0309_0-1627952563537.png

supra0309_1-1627952587102.png

BR, Xantia

0 Kudos