S32DS MPC5777C Debugging Issue with value

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

S32DS MPC5777C Debugging Issue with value

813 次查看
sindoh
Contributor I

image.pngSubject: Debugging Issue with `get_di` Function and Switch State Not Changing

Content:

I have a persistent issue in my debugging process. The instruction pointer for debugging is already set, and it does not disappear randomly. When I trace through the program, the value of the `switch_state` does not change before and after the `get_di` function call. This raises a doubt whether the pin is actually connected to the switch (the daughter board has already been checked and confirmed).

I am unable to identify why the breakpoint is not being hit. I have tried changing the switch's position, which didn’t yield any response. Could someone advise on potential reasons for a breakpoint not being hit in such a scenario?image.png

0 项奖励
回复
1 回复

788 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I am unable to identify why the breakpoint is not being hit.

Well, it is because your SW does not reach address where you have the breakpoint. Or your breakpoint is not set correectly. For example BP is set for writes, and you only read from such address.

I have tried changing the switch's position, which didn’t yield any response. Could someone advise on potential reasons for a breakpoint not being hit in such a scenario?

No idea what is "switch", nor what kind of debugger you are using.

Simply switch the code view to assembly and step debug it, to see why you BP is not called. If the BP is in interrupt, it might be issue of that.

Is your code even working with address where the BP is set?

Best regards,

Peter

0 项奖励
回复