# Run freeRTOS with Qemu-system-arm

**URL:** <https://forums.freertos.org/t/run-freertos-with-qemu-system-arm/13454>\
**Category:** Kernel\
**Created:** [September 14, 2021, 9:11am UTC](https://forums.freertos.org/t/run-freertos-with-qemu-system-arm/13454 "2021-09-14T09:11:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nakeddo](https://avatars.discourse-cdn.com/v4/letter/n/f04885/32.png) [@Nakeddo](https://forums.freertos.org/u/Nakeddo)\
**Post date:** [September 14, 2021, 9:11am UTC](https://forums.freertos.org/t/run-freertos-with-qemu-system-arm/13454/1 "2021-09-14T09:11:14Z")

</div>

Hi! As written in the title, i have to run freeRTOS with Qemu in ARM platform (I’m on Ubuntu) to run a software for a project, but i can only find Demo’s .elf which doesn’t allow me to write commands. Any suggestion? Thanks you!

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [September 14, 2021, 2:26pm UTC](https://forums.freertos.org/t/run-freertos-with-qemu-system-arm/13454/2 "2021-09-14T14:26:23Z")

</div>

We run FreeRTOS in Qmeu regularly and show you how, but I’m not sure if just running it is your problem. What do you mean by

> [@Nakeddo](#):
>
> but i can only find Demo’s .elf which doesn’t allow me to write commands

?

---

<div class="post-metadata">

**Author:** ![Nakeddo](https://avatars.discourse-cdn.com/v4/letter/n/f04885/32.png) [@Nakeddo](https://forums.freertos.org/u/Nakeddo)\
**Post date:** [September 14, 2021, 5:02pm UTC](https://forums.freertos.org/t/run-freertos-with-qemu-system-arm/13454/3 "2021-09-14T17:02:00Z")

</div>

Searching on freertos site i only found guides which explain how to run DEMOS and i succesfully did it by debugging one of them (`CORTEX_LM3S6965_GCC_QEMU`) and then using “qemu-system-arm -kernel RTOSDemo.elf -machine lm3s6965evb” i got it working but ofcourse it was only a demo. After i thought that i could find a .elf in “Source” directory so i could run the real freeRTOS kernel (and not a DEMO), by using the same command 3 lines above, to execute everything i wanted. Instead i didn’t find a .elf file so i am trying to ask how this really works cause i am a bit confused. I am a rookie with QEMU and freeRTOS so this is a new world for me.  
Thanks for the response.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [September 14, 2021, 11:02pm UTC](https://forums.freertos.org/t/run-freertos-with-qemu-system-arm/13454/4 "2021-09-14T23:02:54Z")

</div>

FreeRTOS is statically linked into the application, so the demo and the kernel code are not separate, both are in the same .elf file.
