Skip to content

MSLM-Electric/FreeRTOS_WindowsDemo

Repository files navigation

FreeRTOS Windows Port

It is for simulating on Visual Studio.

Buildable CMakeLists.txt located on:

  • here BasicTemplate project
  • and another example here (should be upgrade to FreeRTOS v10.0.1 and change the build instructions to 32-bit platform)

Also you can use the updated sources of FreeRTOS v10.0.1 as template by example on here

How To:

  • If you want create yourself project you can refer to BasicTemplate project located here.
  • First of all clone this repo (FreeRTOS_WindowsDemo)
  • And then create your projects folder on inside ExamplesNExperiments folder ('FreeRTOS_WindowsDemo/ExamplesNExperiments').
  • Copy the mentioned BasicTemplate project files to your created folder.
  • Go to CMakeLists.txt file on your project folder.
  • Open file and edit the line 2 by specifying your projects name i.e. MyProjectForExample:
set(PROJ_NAME MyProjectForExample)
  • Save your edits and close file.
  • Then do next steps:
mkdir build32
cd build32
cmake -G "Visual Studio 15 2017" ..
cd ..
  • After successfully built project go to /build32 folder and open the "MyProjectForExample.sln" file.
  • After opening it on VS (not VS Code!) set the main project ("MyProjectForExample") as startup project. To do it open Solution Explorer window on VS and chose Set as Startup Project by clicking right mouse on MyProjectForExample in list. Now you can launch the VS debug.
    Note: Unfortunatly I've found some buggy feature on VS 2019 Debug Launch. It doesn't shows the consoles processes/writings after Debug started so to avoid it just do a few restarts while debugging.
    Note: CMSIS OS functions simulations testing in progress. Many functions works good. See the BasicTemplate/README.md file.

Buildable and worky projects:

1. BasicTemplate
2. RTOSdebuggingTips-Tricks/FindingBugWithBitLoggerList (not brought into compatibiling with 32-bit platform! Soon)
3. TasksArrayTests (not 32-bit buildable. Soon)
4. TimerID_using (not 32-bit buildable)
5. TemplateFreeRTOSv10test  (upgraded to FreeRTOS v10.0.1 and compiled.
              Instructions for build and cmsis_os files not brought into
              compatibiling with 32-bit platform! Soon)

Note: For using cmsis_os functions on ISR section to simulate use simulatePROCESSOR_HANDLER_MODE() function inside. Then before returning/exiting from ISR section execute simulatePROCESSOR_THREAD_MODE(). And don't forget use init_simulatePROCESSOR_MODES() before launching the vTaskStartScheduler() on main code.

About

FreeRTOS Windows Port: It is for simulating on VS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published