FreeRTOS Lecture 16-Creating FreeRTOS based project for STM32 MCUs Part-2

  • Post author:
  • Post category:Blog

 

Creating FreeRTOS based project for STM32 MCUs Part-2 

 

 

Now let’s create our very first project, which includes the FreeRTOS source codes. As a tradition, we will always start with the Hello World application.

Now let’s click on the file, then click on new, and then click on C project (Figure 1).

Creation of new C project
Figure 1. Creation of new C project.

 

After that, the next step is to give a project name, and you have to give the name in the project name field shown in Figure 2. Let’s give it as STM32_HelloWorld. We don’t know what exactly this application does. Maybe this application is used to print the text Hello World over to the console or UART or whatever.

Naming of the project
Figure 2. Naming of the project.

 

After naming the project, what you have to do is, click over the Ac6 STM32 MCU project (Figure 3), and in the location field, you can observe that this project will be created under your workspace, i.e., RTOS_workspace. And let’s click next. Again, click next (Figure 4).

Creating FreeRTOS based project for STM32 MCUs
Figure 3. Selection of project type.

 

Creating FreeRTOS based project for STM32 MCUs
Figure 4. Configuration selection window.

 

After that, select your microcontroller series (Figure 5). In this course, I am using the STM32F4 series. If you are using some other series, then no problem at all. You just use that. You may be using the F7 or Lx series. You are free to choose that. Now let’s go for STM32F4 and the board, you can filter by unchecking the checkboxes shown at the top of the window. Since we only have a Nucleo board, uncheck all the options except the option show ST Nucleo boards (Figure 5). If you are using discovery, you can always filter according to that. Now let’s select the F446RE microcontroller (Figure 5), which is a board that we are using for this exercise.

Target configuration window.
Figure 5. Target configuration window.

 

Figure 6 shows all the details. But I am not sure whether the details displayed here are true or not. You can always verify them by using the reference manual. For now, let’s believe these details are true, but if we face any issues, then we can troubleshoot using the reference manual. Now click next.

Details displayed over the target configuration window
Figure 6. Details displayed over the target configuration window.

 

Then you have to click on the standard peripheral library, as shown in Figure 7. If the STM32 standard peripheral library is installed, then it would say firmware has been found. If it is not found, you can click on the download target firmware option marked in Figure 7 to download that.

Creating FreeRTOS based project for STM32 MCUs Part-2
Figure 7. Project firmware configuration.

The next step is to finish. Let’s finish.

 

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.

Leave a Reply