How does the CCS compiler assign RAM locations for the variables? The reason I ask is because I have run into a weird situation....
I am running an emulation of an 18F6720 on an MPLAB ICE 2000. I am using MPLAB's IDE v6.2 and CCS compiler version 3.156. When I do a simple assignment of value to a variable (ie - day = 0x06), and I watch for the value to change in the watch window as I step through, the value doesn't change. What I have noticed is that the variable address in the watch window and the address it uses in the assembly are different.
For example I have a variable called day that I assign a value to in my initial setup. In the watch window it says the address is 110, but in the disassembled code it goes to address E5. When I look at adress E5 the value is there, but not in the slot where the program thinks the variable day is (110). This causes problems because when I refer to that variable I don't get the value I assigned to it.
Please help.
___________________________
This message was ported from CCS's old forum
Original Post ID: 14266
Douglas Kennedy
Joined: 07 Sep 2003 Posts: 755 Location: Florida
Re: Assigning variables in to RAM locations
Posted: Thu May 08, 2003 3:03 pm
debugging from 3.154...3.156 doesn't appear to work.
3.152 seems ok.
___________________________
This message was ported from CCS's old forum
Original Post ID: 14271
David Gerrey Guest
Re: Assigning variables in to RAM locations
Posted: Fri May 09, 2003 7:38 am
I have been in contact with the CCS support and it seems to be a MPLAB issue. MPLAB is not reading the COD or SYM files correctly.
___________________________
This message was ported from CCS's old forum
Original Post ID: 14290
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum