Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a program written for freeRTOS (RTOS) in virtualmachine as a binary

I got a simple program written for freeRTOS (implements a timer).

I want to run this program in an empty virtual machine (VirtualBox, or QEMU, or something else).

I need to make a binary file that can run in and empty VM.

Any advice or direction of how can i do this?

I checked many stuff on freeRTOS homepage but couldn't find something useful.

like image 855
singa1994 Avatar asked Sep 09 '16 00:09

singa1994


2 Answers

For virtual box, you will need a binary of freeRTOS that is x86 or amd64 compatible. Check if this is of any benefit for you.

You can check this link, as I understand it's a simulator for freeRTOS which may enable you to test it without a virtual machine.

For QEMU, check this link

like image 192
وليد تاج الدين Avatar answered Nov 02 '22 15:11

وليد تاج الدين


Emm..., if you need run just binary file without any OS started you can use qemu for that. Just pass your binary through option '-bios' into qemu. And after qemu will start it to run. Also use '-S -s' options in for enabling gdb server in qemu. After you can connect to qemu with gdb client and debug you binary step by step.

like image 21
scopichmu Avatar answered Nov 02 '22 16:11

scopichmu