Debugging issue with LPC11C24 and MCUXpresso

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

Debugging issue with LPC11C24 and MCUXpresso

跳至解决方案
821 次查看
ruslan1
Contributor II

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

Untitled.png

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.

0 项奖励
1 解答
806 次查看
_Leo_
NXP TechSupport
NXP TechSupport

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!

在原帖中查看解决方案

0 项奖励
2 回复数
768 次查看
ruslan1
Contributor II

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.

807 次查看
_Leo_
NXP TechSupport
NXP TechSupport

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!

0 项奖励