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

Unsupported Struct

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



Joined: 19 Apr 2004
Posts: 1

View user's profile Send private message

Unsupported Struct
PostPosted: Mon Apr 19, 2004 6:26 am     Reply with quote

I am trying to debug a piece of code in MPLAB (using an ICE 2000) but in my watch list I am getting the message "Unsupported Struct" for sec[] array.


typedef struct
{
int16 end;
int16 cost;
} Sectioned;

typedef struct
{
Sectioned sec[5];
} SecCosts;


typedef struct
{
int16 cost;
} Unsectioned;



typedef union
{
Unsectioned usec;
SecCosts seced;
} Rate;

typedef struct
{
int16 base;
int16 tax;
BYTE type;
Rate rate;
INT32 check;
} CostTable;

Is this a limitation of the compiler, or have I done something wrong? (My compiler version is Version 3.181).

Thanks,
Brian Confused
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Tue Apr 20, 2004 2:01 am     Reply with quote

Which version of MPLAB are you using?
In the release notes for v6.50 I noted the following under the new features:
"Watch windows support pointers, structure members, enum symbol values."
Max



Joined: 15 Dec 2003
Posts: 51
Location: Italy

View user's profile Send private message

PostPosted: Thu Sep 23, 2004 7:24 am     Reply with quote

also I have problems with watch and to see structure with mplab 6.61:

typedef struct
{
bit enablea:1;
bit enableb:1;
bit enablec:1;
bit stop:1;
bit flagdelay:1;
bit run:1;
unsigned int16 delay;
unsigned int16 delay_t;
} my_struct;

my_struct in_out[MAX];
-----------------------------------------------------------
watch MPLAB 6.61:

address symbol name value

00B4 - in_out
[0] orted Struct
[1] orted Struct
[2] orted Struct
[3] orted Struct
------------------------------------------------------------

Help thanks Crying or Very sad
ChrisW
Guest







Same Prob Here...
PostPosted: Wed May 07, 2008 1:58 pm     Reply with quote

I'm also getting "Unsupported Struct" messages in the MPLAB Watch window (MPLAB 8.00, CCS 4.057).

Does anyone know a fix for this?

Many thanks,
Chris Very Happy

Code:
#device PIC18f4550

struct sTest {
   unsigned char Data;   
} gTest[2];

void main (void){
}
iigruntii



Joined: 06 Jul 2010
Posts: 1

View user's profile Send private message

BUMP ME TOO
PostPosted: Tue Jul 06, 2010 2:03 pm     Reply with quote

Can someone on the CCS staff please confirm this as an issue? I have the same problem. Watch window says "Unsupported Struct" when I try to create a struct array. Is this a limitation or is it a bug?

Example code:
typedef struct {
UCHAR write;
UCHAR readBuff[4];
UCHAR readCounter;
UCHAR *readDest;
UCHAR device;
}SPIMSG;

static SPIMSG SpiQueue[8];
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Tue Jul 06, 2010 2:24 pm     Reply with quote

Three things:
1) You are reporting a problem in MPLAB, a Microchip product and not from CCS.
2) Always post the version numbers of your tools (CCS and MPLAB)! It might be a known problem.
3) Read the forum rules and the message on the right top of each page:
Quote:
CCS does not monitor this forum on a regular basis.

Please do not post bug Reports on this forum. Send them to [email protected]


I tried it in MPLAB v8.46 and CCS v4.077 and get correct values in the mouse over window.
The Watch window works too.
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