I have an application that should run on out board. I have some strange issue that I can't debug the application. I use LPC-LInk2 that connected to the board, the application compiled in Debug mode. I can set a breakpoint and IDE stops on it without problem. But when I press F6 to step over it just jumps to some wrong address
and so it fails with message:
Failed to execute MI command:
-exec-next 1
Error message from debugger back end:
Cannot find bounds of current function
and I can't continue to debug the application. If I put a breakpoint on the next line it stops but pressing F6 again fails.
I've checked the forum but cant' find any solution for that.
Solved! Go to Solution.
Hi,
Thank you so much for your interest in our products and for using our community.
Your micro is resetting, you must have moved something and it is difficult to deduce the cause. I recommend you try again an example of those that are available to see if the same thing continues to happen.
Hope it helps you.
Have a nice day!
So as said above, the cause for this strange behavior was MCU resetting. After searching in the code I've found that watchdog resets the MCU if I stop on a breakpoint. Unfortunately the only sign of a reset was jumping to an incorrect address. After changing from LPC-Link 2 to Segger J-link I get a message that my MCU is reset, and only after that I discovered the watchdog issue.
Hi,
Thank you so much for your interest in our products and for using our community.
Your micro is resetting, you must have moved something and it is difficult to deduce the cause. I recommend you try again an example of those that are available to see if the same thing continues to happen.
Hope it helps you.
Have a nice day!