FreeRTOS Lecture 15-Creating FreeRTOS based project for STM32 MCUs Part-1

 

Creating FreeRTOS based project for STM32 MCUs Part-1

 

 

In this article, let’s understand how we can use the 3rd party software codes. The 3rd party means a software code, which is given by FreeRTOS.org that is a FreeRTOS Kernel source code.

Now let’s see how to integrate that 3rd party software code into our eclipse project, and then you will learn how to run that onto the target, which is based on the STM32 microcontroller.

For that, first, you have to open the STM32 system workbench (Figure 1), which you already installed in your machine.

STM32 system workbench
Figure 1. STM32 system workbench.

 

Now first, let’s create the workspace. Whenever you want to work with eclipse, it will always ask you to open the workspace (Figure 2).

Pop-up asking you to open the workspace
Figure 2. Pop-up asking you to open the workspace.

 

Right now, we don’t have any workspace. So, just delete everything in the workspace field of a pop-up, as shown in Figure 3.

Deleting the contents of the workspace field
Figure 3. Deleting the contents of the workspace field.

 

Let’s go back to the folder shown in Figure 4. Here let’s create one folder named RTOS_workspace, as shown in Figure 5.

Workspace folder
Figure 4. Workspace folder.

 

Creation of a folder named RTOS_workspace- STM32 MCUs
Figure 5. Creation of a folder named RTOS_workspace.

 

Copy the path shown in Figure 6 and paste it to the workspace field of the pop-up shown in Figure 7 and click ok.

Copying the path of the workspace created
Figure 6. Copying the path of the workspace created.

 

Mentioning a workspace path-STM32 MCUs
Figure 7. Mentioning a workspace path.

 

You successfully created the RTOS workspace, and now you can keep different RTOS projects in that folder.

The eclipse has treated the RTOS_workspace folder as a workspace. So, it has created a .metadata folder inside the RTOS_workspace folder, as shown in Figure 8.

Creation of .metadata folder inside the RTOS_workspace- STM32 MCUs
Figure 8. Creation of .metadata folder inside the RTOS_workspace.

 

Now the eclipse has created the workspace RTOS_workspace (Figure 9). Let’s click over the workbench option marked in Figure 9 to get into the workspace.

Successful creation of workspace by eclipse- STM32 MCUs
Figure 9. Successful creation of workspace by eclipse.

 

In Figure 10, you can see your workspace and workspace name is RTOS_workspace, which is nothing but a folder that you have created previously. Here you can create various projects, and you can populate this folder with various projects into your workspace.

RTOS_workspace - STM32 MCUs
Figure 10. RTOS_workspace workspace.

 

FastBit Embedded Brain Academy Courses

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.