• AVR Freaks

Hot!MPLAB 5.00 Can't change values in variable view.

Author
jswanson
Super Member
  • Total Posts : 367
  • Reward points : 0
  • Joined: 2003/11/07 12:44:05
  • Status: offline
2018/08/07 02:25:14 (permalink)
4.75 (4)

MPLAB 5.00 Can't change values in variable view.

Hi,
I'm debugging a PIC16F1847 using RealICE and AC244063 header.  I am not able to change any values in the variables watch panel.  If I try, the value immediately changes back to its previous value when I hit enter.  I am able to change the values in the File Registers panel, but this is slow as all the registers have to be refreshed every time.
 
Anybody else having similar problems?
 
It is an assembler project BTW.
 
Jeremy.
#1

17 Replies Related Threads

    GeorgePauley
    Moderator
    • Total Posts : 1256
    • Reward points : 0
    • Joined: 2009/12/01 13:59:30
    • Location: Chandler AZ
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2018/08/07 09:11:55 (permalink)
    +1 (5)
    Yes, this issue is known and being investigated.
    #2
    jswanson
    Super Member
    • Total Posts : 367
    • Reward points : 0
    • Joined: 2003/11/07 12:44:05
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2018/08/07 09:13:03 (permalink)
    +1 (3)
    Thanks George.
    #3
    GeorgePauley
    Moderator
    • Total Posts : 1256
    • Reward points : 0
    • Joined: 2009/12/01 13:59:30
    • Location: Chandler AZ
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2018/08/07 12:16:57 (permalink)
    +1 (5)
    Just saw the problem report status in an email.  It looks like it's fixed in MPLAB X 5.05.
    #4
    cintet
    Super Member
    • Total Posts : 78
    • Reward points : 0
    • Joined: 2007/12/10 09:44:08
    • Location: 0
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2018/08/07 15:05:27 (permalink)
    0
    I'm facing the same issue... mad: mad Downgrading...
    #5
    ag70
    Junior Member
    • Total Posts : 50
    • Reward points : 0
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2018/08/07 15:23:13 (permalink)
    -1 (3)
    Try press Enter just after value modify. Sometimes works.
    Sometimes not every column representing the register value accept change of the value.
    If you try modify any SFR with separate bits pre-defined, rather modify bits than direct register value.

    my config today: Dell Optiflex i7 4-core, win7 prof x64, 12GB RAM, SSD, Mplab X 4.10 (or 4.20 but only if necessary) + ICD4, PIC18F27K42, assembly only
    #6
    qɥb
    Monolothic Member
    • Total Posts : 3332
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2018/08/07 15:27:51 (permalink)
    -1 (5)
    George has already posted that it is a known problem in 5.00, and fixed in 5.05.

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #7
    ag70
    Junior Member
    • Total Posts : 50
    • Reward points : 0
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2018/08/07 18:07:43 (permalink)
    0 (2)
    Green eye, thank you for this flashy notice :)
    This happends in earlier X too.
    My info can be helpful for somebody. And yours? ;)

    my config today: Dell Optiflex i7 4-core, win7 prof x64, 12GB RAM, SSD, Mplab X 4.10 (or 4.20 but only if necessary) + ICD4, PIC18F27K42, assembly only
    #8
    Brian_Stu
    Senior Member
    • Total Posts : 35
    • Reward points : 0
    • Joined: 2017/03/24 08:38:46
    • Location: UK
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2020/05/25 05:19:20 (permalink)
    0
    Ok it's an old thread - sorry but this seems very related.
    I'm having similar problems with MPLAB X IDE v5.35
    Running on Ubuntu 19.10 using pic12F628A (because I have some!)
    I am able to change unsigned char variables BUT NOT array variables.
    I have an unsigned char array "frm[4]". I added "frm" to the variables window and clicked the drop down to show all 4 elements, but it won't allow me to change any of the element values.
    Am I missing something? In my mind the array elements are just like separate variables so surely I should be able to modify them in during debug.
     
    I could of course use 4 separate char variables to achieve the same result but this would make coding difficult in a "for" loop where I use "i" to index each element.
     
    #9
    RISC
    Super Member
    • Total Posts : 5731
    • Reward points : 0
    • Status: online
    Re: MPLAB 5.00 Can't change values in variable view. 2020/05/25 06:00:10 (permalink)
    +1 (1)
    Hi,
    How did you declare your array variables ?  global ? local ?
    Regards
    #10
    Brian_Stu
    Senior Member
    • Total Posts : 35
    • Reward points : 0
    • Joined: 2017/03/24 08:38:46
    • Location: UK
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2020/05/25 06:24:26 (permalink)
    +1 (1)
    Declared globally.
    The issue is about changing the variables in the debug window not within the code.
    The code functions correctly, I'm just trying to modify the contents of the array during debug to perform timing checks over some part to see if I can speed that part of the code up, but to do so I need to set the array element values to a specific value - I can of course change my code temporarily to preload the array with the values.... but this should work in the debug window!
    #11
    Brian_Stu
    Senior Member
    • Total Posts : 35
    • Reward points : 0
    • Joined: 2017/03/24 08:38:46
    • Location: UK
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2020/05/25 06:28:57 (permalink)
    +1 (1)
    The array is also within scope at the debug breakpoint.
    #12
    Brian_Stu
    Senior Member
    • Total Posts : 35
    • Reward points : 0
    • Joined: 2017/03/24 08:38:46
    • Location: UK
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2020/05/25 06:53:22 (permalink)
    +1 (1)
    Trying to change any of the values (bottom right corner) doesn't work for any of frm[1] - frm[4] variables.
    I can change the T1count variable which was declared in the same code section, all are unsigned char.
     
    Yes I did press return after entering the new values - otherwise T1count wouldn't have changed.
     
    Hope the screenshot helps to clarify things. The code snippet is irrelevant but is where I'm debugging.
    My code works fine, I'm just trying to time things when my digits overflow from 0999 to 1000 and so need to change frm[0-2] to 9's.
     
    Many thanks

    Attachment(s)

    Attachments are not available: Download requirements not met
    #13
    Brian_Stu
    Senior Member
    • Total Posts : 35
    • Reward points : 0
    • Joined: 2017/03/24 08:38:46
    • Location: UK
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2020/05/26 03:47:32 (permalink)
    +1 (1)
    Noticed this morning that the latest version of MPLAB X IDE is 5.40, I've been using 5.35.
    Updated to 5.40 and still have the same problem.
     
    Should I start this as a new thread rather than tagging it onto an old one???
    Brian
    #14
    ric
    Super Member
    • Total Posts : 27595
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2020/05/26 04:06:58 (permalink)
    0
    Yes, this would appear to be a different issue to what this topic started with.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #15
    Brian_Stu
    Senior Member
    • Total Posts : 35
    • Reward points : 0
    • Joined: 2017/03/24 08:38:46
    • Location: UK
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2020/05/26 06:52:24 (permalink)
    +1 (1)
    Tried to create as a new post but don't seem to have permission?
    #16
    ric
    Super Member
    • Total Posts : 27595
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2020/05/26 13:08:23 (permalink)
    -1 (1)
    Probably one of the firewall triggers in your post.
    Expressions which trigger the firewall
     
    That's just bugs in the forum you have to work around.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #17
    Brian_Stu
    Senior Member
    • Total Posts : 35
    • Reward points : 0
    • Joined: 2017/03/24 08:38:46
    • Location: UK
    • Status: offline
    Re: MPLAB 5.00 Can't change values in variable view. 2020/05/26 13:46:13 (permalink)
    0
    Thanks ric there must have been something the firewall didn't like in my post
    Created as new post
    https://www.microchip.com/forums/m1141472.aspx
    #18
    Jump to:
    © 2020 APG vNext Commercial Version 4.5