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.
Best Regards,
Xantia
Hi,
try to step through the code to see on which line it goes away.
Try if increasing stack size helps.
BR, Petr
Hi,
How to increase stack size, I don't know where can I operate it, thanks.
BR,
Xantia
within linker file.
BR, Petr
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.
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
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.
BR, Xantia