http://www.cypress.com/?id=4&rID=38581 Some basic debug info.
Not aware of any significant in depth docs on debugging.
http://www.cypress.com/?rID=40547 Video Training Creator, there is some stuff up on ytube as well
For externals first declare/init structure in main file, then use same definition (no initialization)
adding keyword external in the other .c file. Thats a pretty common usage.
Just to confirm,
The struct itself gets placed into a header file of a module but no extern declaration. Then any other module simple declares a variable using the struct but with extern like this.
Say the struct is in a file called "support.h"
int : a;
Then say in "main.c" or even in "support.c" we have...
extern struct mytype simpletype_t;
I commonly use in a .h file
struct sComplex (
typedef struct sComplex Complex;
typedef struct sComplex * pComplex;
when that file is included in any other module I am free to define new variables of type Complex or pointers to that.