From the course: IoT Foundations: Operating Systems Fundamentals
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Get started with FreeRTOS
From the course: IoT Foundations: Operating Systems Fundamentals
Get started with FreeRTOS
- [Instructor] Let's see how to build your first FreeRTOS application running on Windows. Let's open the exercise file for this tutorial. Then, open the WIN32.sln file with the Visual Studio. In this example, we'll create two tasks named Task1 and Task2, and have them run indefinitely by taking turns printing messages to the screen. Now, you'll see the project named FirstDemo on the right-side Solution Explorer pane in Visual Studio. Expand the FirstDemo node and open the file named main_app.c. This is the main application program file we'll work on. Let's briefly review the program as we'll be using a similar file structure in later exercises. While much of the code is accompanied by self-explanatory comments, I've also retained a few original comments from the FreeRTOS source code to help you better understand how it works. On line six, we include the necessary FreeRTOS kernel header files for this example. FreeRTOS.h is the essential include file and task.h provides the API…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.