I am trying to compile a project for the ARM Cortex M3 core using GCC. The tool I am using is YAGARTO, and the GCC 4.5.1 build inside.
When the compiler gets to the port.c file in the ARM_CM3 directory, it exits with the return message:
<tempfile>: Assembler messages:
<tempfile>:307: Error: ‘CPSR’ or ‘SPSR’ expected - ‘mrs r0,psp’
The port.c file in question contains such an inline assembler command, which is in the xPortPendSVHandler function. Could this be the cause of the problem?
Is there anyone around who knows their way around the ARM assembler, and can determine why this error is returned?
Thanks for answers,