Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

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!


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists