Beginner LPC2138 Port needs help

Hi everyone. I am a beginner and hope to have some help here to create LPC2138 port using Keil IDE with RealView Compiler. I have created a new project and created 4 groups of files. Startup : Startup.s Source : task.c, queue.c, list.c Portable : port.c , portISR.c (from ‘FreeRTOSSourceportableKeilARM7’ dir) Demo Files : main.c (from ‘FreeRTOSDemoARM7_LPC2129_Keil’ dir) My list of include paths are as below : 1)..FreeRTOSSourceinclude; 2)..FreeRTOSDemoARM7_LPC2129_Keil Then I clicked Build , resulting in lots of error messages. Most repeated are ..FreeRTOSSourceincludeportable.h(181): error:  #20: identifier "portSTACK_TYPE" is undefined ..FreeRTOSSourceincludeportable.h(194): error:  #20: identifier "portBASE_TYPE" is undefined I thought portmacro.h not included so I edited portable.h uglily as below. #ifdef KEIL_ARM7 #endif     #include "..\..SourceportableKeilARM7portmacro.h" I did this because I didnt know where to define KEIL_ARM7 , but at least portmacro.h then included. But then, portmacro.h generated too many errors, almost at every inline asm as below : ..FreeRTOSSourceinclude\..\..SourceportableKeilARM7portmacro.h(91): error:  #52: expected a macro parameter name ..FreeRTOSSourceinclude\..\..SourceportableKeilARM7portmacro.h(110): error:  #40: expected an identifier Sorry for long post, but I want to be detail. My question now is , what do I do? I heard FreeRTOS easy to port, but I have worked several days at this. Is there any trick that I dont know? Thanks for listening.

Beginner LPC2138 Port needs help

Unfortunately I suspect the Keil compiler (as was shipped with uVision) and the ARM compiler (now shipped with uVision) use different syntax. When can we expect a uVision port Richard?