LPC2119 IAR Demo error

New to FreeRTOS. Trying to build the LPC2129 demo project in IAR. I get this error: Error[25]: #error ‘This file should only be compiled by ICCARM/AARM Fiddled with the compiler settings to no avail. Thanks Rich

LPC2119 IAR Demo error

Can you please post which file this is in.

LPC2119 IAR Demo error

portasm.s79 an assembler error Thanks

LPC2119 IAR Demo error

Hmm, I can’t find a copy of that file with that #error message in. I’m going to assume it is coming from the fact that the asm file in including FreeRTOSConfig.h, and that FreeRTOSConfig.h in including iolpc2129.h – in which case the #error might be in iolpc2129.h. Alternatively it might be a compiler version mismatch issue. If iolpc2129.h contains something the assembler can’t cope with then you can use a guard around the header to ensure it is only included when .c files are compiler rather than assembly files:
#ifdef __ICCARM__
#include 
#endif

LPC2119 IAR Demo error

Richard, That was nice bit of sleuthing! Adding the compile conditional to FreeRTOSConfig.h allows it to build. Onward and thank you Rich