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 CCS Technical Support

another question about ccs ICD

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



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

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

another question about ccs ICD
PostPosted: Mon May 03, 2004 3:32 pm     Reply with quote

Will the CCS ICD properly show an array of structs in the �watch� window??
ie:
Code:

struct  packet{     // Header(first 5 bytes), data(up to 26 bytes), chksum           
  int8 DA;       // Desgination address recieved
  int8 size;   // Number of bytes. NOT counting header and chksum
 };     
struct packet pkt[4];

will this come up as
pkt[0].DA
pkt[0]size
pkt[1].DA
pkt[1].size

I know that microchips ICD2 doesn't show this correctly.
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Mon May 03, 2004 4:01 pm     Reply with quote

It will show the array of structures with the mouse over feature in the body of your code.....I'm not certain about the watch window but it has a chance of working
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

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

PostPosted: Tue May 04, 2004 9:22 am     Reply with quote

anyone else know about the watch window
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Tue May 04, 2004 5:46 pm     Reply with quote

Are you using MPLAB or PCW IDE?
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

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

PostPosted: Thu May 06, 2004 8:41 am     Reply with quote

PCWH is not compatable with the mplab icd2. Not the same protocol. So I am compileing and using mplab icd2 to download into pic.
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Thu May 06, 2004 8:47 am     Reply with quote

D'oh! Very Happy
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Thu May 06, 2004 6:13 pm     Reply with quote

I just tested this using CCS ICD and PCW IDE. When I added pkt[0] and pkt[1] to the watch window this is what it showed me:

Expression�������Value
pkt[0]��������������(DA: 7, size: 136)
pkt[1]��������������(DA: 0, size: 12)

So it appears to be working fine. However when I tried to add pkt by itself, first I got an access violation error in the ccsicdwatch.dll, and after that I got the message "Error reading RAM from the Target Device" in the 'Value' column. So it seems using CCD ICD, when dealing with an array of structs you can look at each array element with no problem, but you can't watch the whole array.
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