IDE Debugger Problems with uint8_t for the dsPIC33CK256mp508
Product Version: MPLAB X IDE v5.05
Java: 1.8.0_144; Java HotSpot(TM) 64-Bit Server VM 25.144-b01
Runtime: Java(TM) SE Runtime Environment 1.8.0_144-b01
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (mplab)
User directory: C:\Users\dalkmora\AppData\Roaming\mplab_ide\dev\v5.05
Cache directory: C:\Users\dalkmora\AppData\Local\mplab_ide\Cache\dev\v5.05\var
I am using the dsPIC33CK256mp508_PIM on the Explorer 16/32 development board.
int main ( void )
for (i=0;i<100;i++) test_array = i;
one = test_array;
three = test_array;
while(1); // no need to go farther
Took two screenshots. Moved the code to the top of the main() ran the loop, added a couple of variables. one should be 1, three should be 3.
In test_array_wrong.png it shows where one part of IDE gets it right, but when expanded it is wrong.
Since I was pretty sure the code was right I added two variables one and three.
They should be 1 and 3 respectively even though the IDE says test_array is 0 not 1, and test_array is 2 not 3.
one is correct, but three is not correct.
The variables one and three are in one_three.png
Look at the addresses. There are no odd addresses. The IDE is thinking the addresses jump by 2.
I am pretty sure you are having problems displaying bytes on odd addresses in the IDE.