We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I seem to have an issue when trying to define a structure to exsist at an external memory location. the struct overlays registers in an external chip communicating through through the EMI interface.
the struct needs to start at the base address of Bank 1 (0x62000000)of the external memory and is sequentially addressed from that base address.
I attempted to do it this way
SPC3 spc3 __at(0x62000000);
and this way
typedef struct { char a; u8 newvar; }SPC3 __at(0x62000000);
neither of these methods worked.
this locks up the linker for some time then gives me an error.
is there an easier way to overlay a struct to an external memory location??
"The only draw back is seeing the Symbols during debug it does not show the struct in the symbol table"
Right, because there is no longer any data object (i.e., having storage allocated to it) for the linker to deal with.