This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Fatal Error[Pe035]: #error directive: "ERROR: Unknown compiler." C:\Texas Instruments\Z-Stack Home 1.2.1\Components\hal\target\CC2538\hal_mcu.h 100

Other Parts Discussed in Thread: Z-STACK

Hello,

I am getting this Fatal error many times when building the Z-Stack Home Automation - 'Sample Light' project on IAR EWARM. I paste the code below.

I was getting many other errors before mainly because it was not finding include files. So I added more paths to the Preprocessor Options. Now that is ok and I am now getting the Fatal error many times. Thanking you for your kind help.

* ------------------------------------------------------------------------------------------------
 *                                     Compiler Abstraction
 * ------------------------------------------------------------------------------------------------
 */

/* ---------------------- IAR Compiler ---------------------- */
#if defined (ewarm)
#define HAL_COMPILER_IAR
#define HAL_MCU_LITTLE_ENDIAN()   __LITTLE_ENDIAN__

/* ---------------------- Keil Compiler ---------------------- */
#elif defined (__KEIL__)
#define HAL_COMPILER_KEIL
#define HAL_MCU_LITTLE_ENDIAN()   0


/* ------------------ Unrecognized Compiler ------------------ */
#elif defined (ccs)
#define HAL_MCU_LITTLE_ENDIAN()   0
//do nothig for now
#else
#error "ERROR: Unknown compiler."
#endif