# Need to run an application on QEMU environment

**URL:** <https://forums.freertos.org/t/need-to-run-an-application-on-qemu-environment/16487>\
**Category:** Libraries\
**Created:** [January 3, 2023, 5:34am UTC](https://forums.freertos.org/t/need-to-run-an-application-on-qemu-environment/16487 "2023-01-03T05:34:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soumyaims](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/soumyaims/32/3069_2.png) [@soumyaims](https://forums.freertos.org/u/soumyaims)\
**Post date:** [January 3, 2023, 5:34am UTC](https://forums.freertos.org/t/need-to-run-an-application-on-qemu-environment/16487/1 "2023-01-03T05:34:15Z")

</div>

Hi,

I downloaded the FreeRTOSv202112.00 of include and source files. I need to build the source files on VS code IDE and create the library. Then I need to run an application on QEMU environment using the library being created.

1. How can I cross-compile the freertos source files on VS code to generate library for target environment or QEMU?

Please suggest your valuable guidelines.

---

<div class="post-metadata">

**Author:** ![NikhilKamath](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/nikhilkamath/32/2934_2.png) [@NikhilKamath](https://forums.freertos.org/u/NikhilKamath)\
**Post date:** [January 3, 2023, 8:17am UTC](https://forums.freertos.org/t/need-to-run-an-application-on-qemu-environment/16487/2 "2023-01-03T08:17:29Z")

</div>

There is a [Demo](https://github.com/FreeRTOS/FreeRTOS/tree/main/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC) which uses vscode and qemu . The “.vscode” folder is what you might want to look at.

Here are some more resources on vscode for FreeRTOS development: [Using Visual Studio Code for FreeRTOS development - FreeRTOS](https://www.freertos.org/2021/01/using-visual-studio-code-for-freertos-development.html)  
[Install and Start QEMU Emulator for Running FreeRTOS Demo - FreeRTOS](https://www.freertos.org/install-and-start-qemu-emulator/). Additionally I came across this blog post, which might be of interest to you : [Visual Studio Code for C/C++ with ARM Cortex-M: Part 1 – Installation | MCU on Eclipse](https://mcuoneclipse.com/2021/05/01/visual-studio-code-for-c-c-with-arm-cortex-m-part-1/)

Hope these resource help you move forward.

---

<div class="post-metadata">

**Author:** ![soumyaims](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/soumyaims/32/3069_2.png) [@soumyaims](https://forums.freertos.org/u/soumyaims)\
**Post date:** [January 5, 2023, 5:55am UTC](https://forums.freertos.org/t/need-to-run-an-application-on-qemu-environment/16487/3 "2023-01-05T05:55:33Z")

</div>

Thank you so much for your response. I will go through it.
