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

Compiler question about using REAL ICE

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







Compiler question about using REAL ICE
PostPosted: Sat Mar 21, 2009 12:00 am     Reply with quote

Have project with one main .c file and multiple .c and .h files #included.

Create simple structure in test.h:
Code:
struct test_t
{
   BYTE test1;
   BYTE test2;
}

In main .c file declare: struct test_t test_array[5]; to create array of 5 structures.
Also declare struct test_t newtest; to create single structure.

Code compiles with no error messages.

Load into Microchip's MPLAB REAL ICE emulator.
Want to use WATCH to view structure contents.
WATCH shows contents of newtest as expected.
WATCH reports "Unsupported structure" for test_array.

The same code compiled with Microchip's C18 compiler allows me to use WATCH to view contents of test_array structures.

If I move test_t definition into the .c file that contains the "struct test_t test_array[5];" declaration, then and only then does WATCH show the contents of the test_array structures when using the CCS compiler.

Has anyone run into this problem before? Any suggestions to resolve it ?

Thank you,
Dan
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