MPLABX 5.35 & 5.40 Unable to change array element value in variable debug window
I recently added this to an old thread and was advised to create it as a new thread.
I'm having problems with MPLAB X IDE v5.35 (upgraded today to 5.40 - same problem).
Running on Ubuntu 19.10 using pic16F628A (because I have some!).
I am able to change unsigned char variables BUT NOT array variables.
I have an unsigned char array "frm". 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.
My project is simple, (all in one source file 434 lines of code) and the variables are declared before any code just after the config #pragma statements.
The issue is about changing the variables in the debug window not within the code (the program and pic work fine).
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!
The array is within scope at the debug breakpoint.
Trying to change any of the values (bottom right corner of screen shot) doesn't work for any of frm - frm 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.
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.
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.
I tried this morning to create a cut down version of the code with just the arrays to test on it's own === this worked OK
So I'm now even more confused!!!
The File register addresses for this cut down version were 0x70 upward.
The arrays in my original code are in File register addresses (General Purpose Addresses) 0x20-0x27.I can change the values in the File registers view (Window/Target Memory Views/File Registers).
The function is located within an interrupt routine (if that makes any difference).
I can provide the full code if required (434 lines).
Is this something peculiar related to the General Purpose Addresses (20h-6Fh) and/or the pic16F628A?
I've attached a screenshot of the debug window at a breakpoint where I'm updating the array (which works in code), I just can't modify it in the debug window.
Any help would be really appreciated
post edited by Brian_Stu - 2020/05/27 00:48:47