FreeRTOS Lecture 14 – Installing FreeRTOS

 

Installing FreeRTOS

 

 

Choose the FreeRTOS Version:

  • Start by downloading the FreeRTOSv10.1.1 version, the latest available at the time of writing this article. If a newer version is available when you read this, you can opt for the latest source code.
  • In case you prefer to use an older version, you can access previous releases by clicking on the “Previous Release” option (see Figure 1). This will display a list of all the previous releases (Figure 2), allowing you to select and download the desired source code.
Option to download the previous release
Figure 1. Option to download the previous release.

 

List of all the previous releases
Figure 2. List of all the previous releases.

 

Installation of Version 10.1.1:

  • Now let’s stick to version 10.1.1. Navigate to the folder where you downloaded the application and install the application(Figure 3).
FreeRTOS application downloaded in Software and Toolchain folder
Figure 3. FreeRTOS application downloaded in Software and Toolchain folder.

 

  • Double-click the application file to run it (Figure 4).
Running the application
Figure 4. Running the application.

 

  • The application will prompt you to specify the installation path for the FreeRTOS source code. By default, it suggests “Workspace\Software & Toolchain” (Figure 5). If this path suits your requirements, you can leave it unchanged. However, if you prefer a different location, you can specify it at this point.
  • Click the “Extract” button to begin the extraction process.
Choosing installation path
Figure 5. Choosing installation path.

 

Completion of extraction.
Figure 6. Completion of extraction.

 

Completion of Extraction:

  • Once the extraction is complete, you’ll find a folder named “FreeRTOSv10.1.1” (Figure 7).
  • Open this “FreeRTOSv10.1.1” folder.
Extracted FreeRTOSv10.1.1 folder
Figure 7. Extracted FreeRTOSv10.1.1 folder.

 

Exploring the FreeRTOS Folder:

  • Inside the “FreeRTOSv10.1.1” folder, you’ll discover two main subfolders. The first one, “FreeRTOS-Plus” (Figure 8), is not of interest for this tutorial.
  • The important folder for us is FreeRTOS.
Installing FreeRTOS
Figure 8. Folders inside the extracted FreeRTOSv10.1.

 

Demo Projects:

  • Within the “FreeRTOS” folder, you’ll find three significant subfolders (Figure 9). Demo folder, License folder, and source folder.
  • The “Demo” folder (Figure 9) contains demo files and projects provided by FreeRTOS.org for various microcontrollers, including those from ST, NXP, TI, and more.
Installing FreeRTOS
Figure 9. Folders containing important details provided by the FreeRTOS community.

 

  • If you explore the “Demo” folder, you’ll find numerous projects (Figure 10) added by FreeRTOS.org. 
  • Basically, they contain the projects that can run on ARM 7, ARM 9, cortex family of processors, LPC for Atmel’s smart microcontrollers or SAM microcontrollers, etc. Even you can get the projects for STM32F7, F4, or F3-based microcontrollers as well. If you are interested, you can take a look into these projects.
Installing FreeRTOS
Figure 10. Demo files or projects provided by FreeRTOS community.

 

In upcoming articles, we’ll delve into creating our own projects using STM32 microcontrollers in an RTOS environment. If you’re interested in exploring these demo projects, the “Demo” folder is your resource.

 

License:

  • Check the license file to understand the licensing terms imposed by FreeRTOS.org, which govern the use of their software and source code.

 

Accessing the Source Code:

  • The “Source” folder (Figure 9) contains essential source code files for the FreeRTOS project, including the FreeRTOS kernel and various other services (Figure 11).
  • In the task.c, you will find the task management services of the FreeRTOS. Timers.c addresses the software timer implementation, queue.c for queue implementation.
  • Like that, all the .c files that you see in Figure 11 are source codes or source files of the FreeRTOS project, and the respective header files (Figure 12) you can find in the include folder.
Installing FreeRTOS
Figure 11. Source codes for FreeRTOS kernel and various other services of the FreeRTOS.

 

Installing FreeRTOS
Figure 12. Header files for the FreeRTOS source codes.

 

In addition, the “portable” folder (Figure 11) houses various port files (Figure 13) that are essential for running FreeRTOS on microcontrollers based on different processor architectures.

Installing FreeRTOS
Figure 13. Port files to be run based on different processor architecture.

This step-by-step guide should help you successfully install and navigate FreeRTOS on your chosen platform, laying the foundation for your future RTOS projects.

In the following article, let’s learn create FreeRTOS based project for STM32 MCUs.

 

FastBit Embedded Brain Academy Courses

click here: https://fastbitlab.com/course1

FastBitLab

The FastBit Embedded Brain Academy uses the power of internet to bring the online courses related to the field of embedded system programming, Real time operating system, Embedded Linux systems, etc at your finger tip with very low cost. Backed with strong experience of industry, we have produced lots of courses with the customer enrolment over 3000+ across 100+ countries.