vTaskSwitchContext is included as an extern at the top of the file - so I cannot see how this results in a syntax error. Have you edited the files at all?
I have the same problem as “nobody”.
PC Demo cannot compile:
…\…\source\portable\owatcom\16bitdos\common\portasm.h(64): Error! E1156: Assembler error: ‘Syntax error’
This is at line “call far vTaskSwitchContext” in portasm.h
FreeRTOS version is 2.5.4
Open Watcom version is 1.3
Host operating system Windows 2000.
I have not been able to reproduce this problem. Could you zip up your entire FreeRTOS directory (open watcom project files, object filea and all) and send it to me? Then maybe I can reproduce it with your files and find the solution.
Thanks.
I also already did notice that it does compile it “far” is removed. But I wasn’t sure if correct code was generated (disassembly looks ok though) because the demo won’t run ok.
In a Win2K cmd-window:
Seem to crash when the scheduler starts. The print task (I assume) prints that several tasks are started. Then it is dead.
In a Win98 Dos-window or in DOS:
It runs, but report like “Math task 3/4 failed” and the “Com test” does not seem to go at all (with a loopback).
I compiled it with no changes to source-files or settings in Watcom.
Haven’t looked much more into it yet.
My only trial with OW V1.3 so far is running under FreeDOS where it seemed to work fine. I will give it a go under Win2K also but this will not be for an hour or two I’m afaid.
The FreeRTOS site says that there may be problems if you step through the init code using the Watcom debugger as it enables interrupts between steps. Have you tried just running a released code with no debugger?