S32DS MPC5777C Debugging Issue with value

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32DS MPC5777C Debugging Issue with value

785件の閲覧回数
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 返信

760件の閲覧回数
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 件の賞賛
返信