View previous topic :: View next topic |
Author |
Message |
micman2
Joined: 12 Mar 2007 Posts: 5
|
structure BUG ?? |
Posted: Mon Mar 12, 2007 10:05 am |
|
|
Hi,
I have created a structure, I have defined in the header file but when I make the debug, the structure is incomplete??
Why?
|
|
|
kevcon
Joined: 21 Feb 2007 Posts: 142 Location: Michigan, USA
|
|
Posted: Mon Mar 12, 2007 11:20 am |
|
|
What version CCS are you using? |
|
|
Guest
|
|
Posted: Mon Mar 12, 2007 11:35 am |
|
|
kevcon wrote: | What version CCS are you using? |
4.012 |
|
|
kevcon
Joined: 21 Feb 2007 Posts: 142 Location: Michigan, USA
|
|
Posted: Mon Mar 12, 2007 11:47 am |
|
|
I�m using 4.027 and get the same results.
I did some experimenting and CCS seems to have a problem with multidimensional arrays in structures.
It looks like it ignores anything that comes after one. |
|
|
karth
Joined: 10 Sep 2003 Posts: 29
|
|
Posted: Mon Mar 12, 2007 11:56 am |
|
|
here is sample of the code i am using take a look at it ...
static struct DATAREC // periodic data record definition
{
int8 rec_epl;
int8 rec_stat;
int8 rec_battinput[2];
int8 rec_speed[2];
int8 rec_course[2];
int8 rec_lat[4];
int8 rec_lon[5];
int8 rec_utc[3];
int8 rec_date[3];
};
static struct DATAREC pdr; |
|
|
|