I have data structures of >166 Kbytes of data elements. I have declared these structures as:
typedef struct CodeTiming_tag { ubyte code_id; ubyte algo_id; uword timing_parameter[MAX_TABLE_ENTRY]; }CodeTimingType; extern CodeTimingType xhuge current_code; extern CodeTimingType xhuge next_code;
Mike, I did define the memory layout. Sorry I didn't explain this correctly in previous post. I created a new project and retried what you did, and did not get an error during compile. In my old project, I do get an error whenever the array size is larger than 1024. In my code, I am moving data from this large structure to a smaller buffer (255 bytes) specified as sdata type, and setting the PEC source pointer to this smaller buffer for automatic PEC data transfer to a capture & compare register. Wonder if this has anything to do with it. Anyways thanks for the input. Will poke around some more. Phong