Other Parts Discussed in Thread: C2000WARE
If include Flash API like this:
#include "F021.h"
I get
"/Applications/ti/C2000Ware_4_00_00_00/libraries/flash_api/f28004x/include/FlashAPI/Registers.h", line 65: fatal error #1965: cannot open source file "Registers_FMC_BE.h"
and when I look at the code in Registers.h I see that:
#if defined(_F2837xD)
#include "Registers_C28x.h"
#elif defined(_F2837xS)
#include "Registers_C28x.h"
#elif defined(_F28004x)
#include "Registers_C28x.h"
#elif defined(_C28X)
#include "Registers_Concerto_C28x.h"
#elif defined(_CONCERTO)
#include "Registers_Concerto_Cortex.h"
#elif defined(_LITTLE_ENDIAN)
#include "Registers_FMC_LE.h"
#else
#include "Registers_FMC_BE.h"
#endif
So the reason for the error is that _F28004x is not defined.
If I add:
#define _F28004x
before the include, then it compiles and seems to work.
Am I missing something or is the header out of synch with C compiler pre-defined stuff or how should this be handled in a canonical way?
