LPC2119 IAR Demo error

richas wrote on Thursday, April 12, 2018:

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

rtel wrote on Thursday, April 12, 2018:

Can you please post which file this is in.

richas wrote on Thursday, April 12, 2018:

portasm.s79 an assembler error
Thanks

rtel wrote on Thursday, April 12, 2018:

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

richas wrote on Thursday, April 12, 2018:

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

Onward and thank you

Rich