Q&A: Crossworks 2.0.4 compile error

Q&A: Crossworks 2.0.4 compile error

6 years 4 months ago
#75
(This message was transferred over from our old forum)
Posted August 14, 2015
By Todd DeBoer
[hr]
On 11/6/09 wella asked, “Has anyone similar problem with Crosworks 2.0.4?

Building “uEZ” in configuration “ARM Flash Debug” — 9 errors
Compiling port.c
Compiling portISR.c
Compiling uEZRTOS_FreeRTOS.c
Compiling tasked.c — 9 errors
c:/VELEK/CKPNewGenerationSWDesign/uEZ/uEZ_SRC/ARM Flash Debug/tasked.asm: Assembler messages:
Error: missing expression — `swi’
Error: missing expression — `swi’
Error: missing expression — `swi’
Error: missing expression — `swi’
Error: missing expression — `swi’
Error: missing expression — `swi’
Error: missing expression — `swi’
Error: missing expression — `swi’
Error: missing expression — `swi’
Build failed

With 2.0.3 was everything ok.”
[hr]
(Follow up post)

Answered:

The problem is within FreeRTOS. There is a macro #define portYIELD() asm volatile ( “SWI” ). However the SWI instruction should take one parameter(number). So that
#define portYIELD() asm volatile ( “SWI 0” ) is working. Maybe Crosworks 2.0.4 was upgraded to the newer gnu asm I do not know. But I can compile it now.

Please Log in or Create an account to join the conversation.

Time to create page: 0.353 seconds
Powered by Kunena Forum