This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem compiling freeRTOS with Armcc v3.1.0.942

Hi

I have specific problem compiling the file "portmacro.h" from the freeRTOS source code. I get several errors, but once I get to solve at least a few, I think the rest is just some kind of repetition. E.g - I get the following error:

.\Source\include\..\..\Source\portable\Keil\ARM7\portmacro.h(142): error: #40: expected an identifier
.\Source\include\..\..\Source\portable\Keil\ARM7\portmacro.h(142): error: #666: "asm" must be used with a function definition

trying to compile the line 142 of the portmacro.h file:
(140) __asm{ LDMIA SP!,{R0} };\ \
(142) __asm{ STMDB R0!, {LR} }; /* Push the return address onto the stack. */ \
(143) __asm{ MOV LR, R0 }; /* Now we have saved LR we can use it instead of R0. */ \

I guess the errors relate to the specific assembler syntax and registers, but any help will be highly appreciated!

Thanks in advance
/Uffe Lunddorf