FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [December 2011 Threads] FreeRTOS on x86 without DOS?Posted by John on December 7, 2011 I'm just starting out with FreeRTOS and I'm trying to compile it for an x86 microcontroller.
I am able to compile the provided demo "PC" with the Open Watcom compiler. This results in a .exe file. I understand I'm supposed to run this under DOS with all of the .obj files in the same directory?
I want the FreeRTOS kernel to run directly on x86 hardware without 'another' OS under it. To this end, I've started trying to write a 'port' layer so I can compile it with GCC. This effort is slow and painful.
Is my understanding of the PC demo correct? Is there any path to compile FreeRTOS to run standalone on x86? Or is the route I'm taking of writing a port layer for GCC/x86 the easiest option at this point?
RE: FreeRTOS on x86 without DOS?Posted by Richard on December 7, 2011 The OpenWatcom port uses DOS as a launch mechanism. Once FreeRTOS is running, it replaces the DOS tick with its own, and DOS has no more control of the execution. You should be able to use most of the same port code without DOS to boot the system, but will need a method of booting into FreeRTOS.
Regards.
RE: FreeRTOS on x86 without DOS?Posted by John on December 7, 2011 I don't understand how to get anything I know how to boot out of the Open Watcom tools. The current demo spits out a .exe and several 16-bit object files. I don't have a way to massage those into a single object file I could boot. That was my primary motivation for attempting to move to GCC. I understand it's outside the scope of FreeRTOS support, but pointers on how to make that jump would be greatly appreciated.
I did try wlink specifying an ELF executable, but it complained of a missing 'clib' and eventually failed. I'm digging through their support forums as well trying to figure that side out but documentation is sparse. I have the full Open Watcom demo flow working on Windows and Linux.
It still seems like writing a GCC/x86 port layer is the easiest way to get a single object file. Is there some known stumbling block further down that path? I'm experienced in OS fundamentals and x86 asm.
RE: FreeRTOS on x86 without DOS?Posted by John on December 7, 2011 Thank you for the help so far!
RE: FreeRTOS on x86 without DOS?Posted by John on December 13, 2011 I've got most of the PC demo compiling under gcc (with warnings) now. I'm starting to test it on my simulator. Thanks!
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|