FreeRTOS on VirtualBox

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Randy1234
Posts: 1
Joined: 18. Apr 2018, 20:23

FreeRTOS on VirtualBox

Post by Randy1234 »

Is there any way to get predictable, repeatable performance from a RTOS (ie. FREERTOS) running under your virtual machines on Windows ?

Could using processor core affinity be useful in this situation ?

What kind of data communications construct are most effective in communication with a host application from a virtual machine applications (ie. sockets, mailboxes, in memory files, ...) ?

A typical environment for FREERTOS would be 200 Mhz or less on a single threaded microcontroller.

There is a Windows version of FREERTOS.
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: FreeRTOS on VirtualBox

Post by andyp73 »

Generally speaking, the further abstracted you are away from the hardware the less determinism and predictability you get. The WIN32 examples in the FreeRTOS source tree build to a Windows executable which you can run directly on a Windows host (if that is what you had).

If you don't, you may find the PC example (which I think builds with OpenWatcom) a better option to run in a VM as it only requires the DOS boot files and gets you a bit closer to the (virtual) hardware.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
Post Reply