How to get that particular line of code in MCU (NXP controller), which is executed before Reset

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

How to get that particular line of code in MCU (NXP controller), which is executed before Reset

577 次查看
Vincent5
Contributor I

During my debugging of code, facing one issue regarding Reset. In debug mode, whenever I am putting breakpoint, after getting hit and clicking on Run (Command), getting Software Reset. This is not occurring, when I am not putting any breakpoint in the code, software runs normally. Also after breakpoint got hit, if I execute software via Step command, then also I am not getting Reset. As the code Size is very Huge, exactly not getting, where is the problem. I want to know which line of code getting executed, before reset function is called ? Is any one knows the answer, they can help me. Using below environments:

Microcontroller: NXP

Debugger: J-Link

Debugging Software: Ozone Debugger

标记 (1)
0 项奖励
回复
1 回复

525 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

You didn't mention your chip part number and I don't have Ozone Debugger. Generally speaking of MCU, if we check NXP demo code under MCUXPresso IDE, code executes initialization code (for example HW, RAM, stack... etc) before main.

 

0 项奖励
回复