AnsweredAssumed Answered

Some breakpoints don't work in debugger on S32 with MPC5748G

Question asked by Kaveh Vaghefi on Feb 12, 2020
Latest reply on Feb 14, 2020 by Jiri Kral

I have some code inside an if condition and I'm trying to set a breakpoint inside that if condition:


thisFxn(int a)



  if (a > 4) {

    //do things




If I set a breakpoint on `CallFxn`, it doesn't stop at all (even though I'm certain it's running through here).  If I set a conditional breakpoint in the `if` line and give it the condition `a > 4`, it always stops.  If I hit continue from there, the debugger actually stops at the breakpoint on `CallFxn` too.


I've verified in the GDB console that both breakpoints are set up correctly and pointed at the correct memory locations.  Similarly, setting breakpoints on those memory locations exhibit the same behavior.  Has anyone run into issues like this?


I'm using S32 2.1 for Power with a PE Micro Multilink debugger.  I see the same issue through the OpenSDA debugging interface on the eval board for this chip as well.