• AVR Freaks

Hot!MPLAB 5.45 Debugging Watch Values Not Correct

Starting Member
  • Total Posts : 31
  • Reward points : 0
  • Joined: 2010/05/04 08:51:34
  • Location: 0
  • Status: offline
2021/01/21 13:21:51 (permalink)
5 (1)

MPLAB 5.45 Debugging Watch Values Not Correct

I am connected to the PIC-IoT out of the box AC164164 - onboard debugger and pic PIC24FJ128GA705.  I'm using the example code from MCC for this board.  When I put breakpoints in one of the functions (see pic attached), and hover my mouse over a variable, the pop up values point to the wrong register and the resulting number is incorrect.  In the pic attached I'm hovering the mouse over variable 'block' which is actually at 0x1794 with value of 1, however the program reports block at 0x179E with value of 0.  Watch values are also incorrect though not seen in the screen shot.
I tested this in another program with different functions same result.  Anyone know what's going on here?  Something in the project setup maybe?
post edited by rnorman3 - 2021/01/21 13:25:12

Attached Image(s)


1 Reply Related Threads

    Super Member
    • Total Posts : 128
    • Reward points : 0
    • Joined: 2010/10/25 16:51:05
    • Location: 0
    • Status: offline
    Re: MPLAB 5.45 Debugging Watch Values Not Correct 2021/01/21 18:44:48 (permalink)
    +1 (1)
    FWIW, I have this kind of problem with MPLAB constantly.  It may not be you. I just think it's not very robust.  I often find myself tracking down values in a Target Memory View instead of relying on the debugger.
    Jump to:
    © 2021 APG vNext Commercial Version 4.5