# Using Visual Studio FreeRTOS simulator with CMSIS-OS

**URL:** <https://forums.freertos.org/t/using-visual-studio-freertos-simulator-with-cmsis-os/12595>\
**Category:** Kernel\
**Created:** [May 16, 2021, 7:26pm UTC](https://forums.freertos.org/t/using-visual-studio-freertos-simulator-with-cmsis-os/12595 "2021-05-16T19:26:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EyalG](https://avatars.discourse-cdn.com/v4/letter/e/b782af/32.png) [@EyalG](https://forums.freertos.org/u/EyalG)\
**Post date:** [May 16, 2021, 7:26pm UTC](https://forums.freertos.org/t/using-visual-studio-freertos-simulator-with-cmsis-os/12595/1 "2021-05-16T19:26:08Z")

</div>

Hello,

I’m developing application for STM32 with FreeRTOS and ST Cube use CMSIS when it is generate code.

I want to be able to use this CMSIS based FreeRTOS code also with FreeRTOS Visual Studio simulator.

Does anyone have a solution for that? CMSIS-OS for FreeRTOS that is working under WIN32 Visual Studio?

Thanks,

Eyal

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [May 17, 2021, 6:00pm UTC](https://forums.freertos.org/t/using-visual-studio-freertos-simulator-with-cmsis-os/12595/2 "2021-05-17T18:00:57Z")

</div>

I have never tried that in the Visual Studio simulator but assuming that CMSIS OS wrapper just maps the calls to FreeRTOS APIs, you can try to copy CMSIS OS wrapper files from ST project to your Visual Studio project.

Thanks.

---

<div class="post-metadata">

**Author:** ![EyalG](https://avatars.discourse-cdn.com/v4/letter/e/b782af/32.png) [@EyalG](https://forums.freertos.org/u/EyalG)\
**Post date:** [May 17, 2021, 6:12pm UTC](https://forums.freertos.org/t/using-visual-studio-freertos-simulator-with-cmsis-os/12595/3 "2021-05-17T18:12:19Z")

</div>

I did try that but I was stuck after I saw that it required an include file called - “cmsis\_compiler.h” and this file is including other files that are compiler dependent and the list of supported compiler does not include WIN32 (I attached the file here) [cmsis\_compiler.h](https://forums.freertos.org/uploads/short-url/6Z3nLnL7LYb3hr6qFZ606g0AI1x.h) (9.5 KB)

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [May 17, 2021, 6:50pm UTC](https://forums.freertos.org/t/using-visual-studio-freertos-simulator-with-cmsis-os/12595/4 "2021-05-17T18:50:55Z")

</div>

Thanks for sharing - then it seems more work. Easier route may be to use FreeRTOS APIs directly in your application.
