Dan Guest
|
Compiler question about using REAL ICE |
Posted: Sat Mar 21, 2009 12:00 am |
|
|
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 |
|