View previous topic :: View next topic |
Author |
Message |
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
another question about ccs ICD |
Posted: Mon May 03, 2004 3:32 pm |
|
|
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
|
|
Posted: Mon May 03, 2004 4:01 pm |
|
|
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
|
|
Posted: Tue May 04, 2004 9:22 am |
|
|
anyone else know about the watch window |
|
|
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
|
|
Posted: Tue May 04, 2004 5:46 pm |
|
|
Are you using MPLAB or PCW IDE? |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Thu May 06, 2004 8:41 am |
|
|
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
|
|
Posted: Thu May 06, 2004 8:47 am |
|
|
D'oh! |
|
|
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
|
|
Posted: Thu May 06, 2004 6:13 pm |
|
|
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. |
|
|
|