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

using the debugger with BYTE CONST ROM LUTs

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



Joined: 01 Apr 2004
Posts: 43
Location: Boston

View user's profile Send private message Visit poster's website

using the debugger with BYTE CONST ROM LUTs
PostPosted: Thu Apr 01, 2004 10:40 am     Reply with quote

i am using the following chunk of code..


byte const ARRAY[2] = {10, 20};
....
my_var = ARRAY[my_index];


i notice two things...

1. when you place the debuggers cursor over the ARRAY[my_index] when debugging, the array has the right length and structure, but the values are garbage. i can probably understand this since the array is just a compiler LUT.

2. if you try to step through the above assignment, the debugger hangs even thought the ROM looks correct. if you step over the section of code that contains the above assignment, all works fine.

has anybody had similar experiences? the ROM LUT seems to work fine, the values are returned correctly. I just wish i could step over the line..
_________________
Jon
valemike
Guest







which debugger?
PostPosted: Thu Apr 01, 2004 10:52 am     Reply with quote

Are you talking about the PCW environment? Or are you using the CCS compiler with Microchip's MPLAB IDE?

I've had experiences with the MPLAB IDE by Microchip where the debugger does not interpret CCS's floating point correctly, so what I do is just do a printf() to Hyperterminal.

Basically, I usually don't trust the MPLAB IDE debugger with floating point numbers. As for bytes, i haven't had a problem.
jventerprises



Joined: 01 Apr 2004
Posts: 43
Location: Boston

View user's profile Send private message Visit poster's website

byte const
PostPosted: Thu Apr 01, 2004 12:37 pm     Reply with quote

this is with the PCW environment... i find that the ccs environment is more reliable...
_________________
Jon
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