CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Assigning variables in to RAM locations

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
David Gerrey
Guest







Assigning variables in to RAM locations
PostPosted: Thu May 08, 2003 11:43 am     Reply with quote

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

View user's profile Send private message AIM Address

Re: Assigning variables in to RAM locations
PostPosted: Thu May 08, 2003 3:03 pm     Reply with quote

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
PostPosted: Fri May 09, 2003 7:38 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group