STM32-LTDC, LCD-TFT, LVGL (MCU3) Lecture 3| Roaring tiger demo on STM32F429DISC board

 

Roaring tiger demo on STM32F429DISC board

 

 

In this article, let’s explore some demos on various boards such as 32F429DISCOVERY, 32F746GDISCOVERY, and 32F407DISCOVERY+SPI based LCD module.

Import project into STM32CubeIDE
Figure 1. Boards

We will proceed by downloading a demo project and running it on the selected board. This will help us explore how the application works. We don’t need to understand the code right now, as we will learn about it in later articles.

To begin, all we need to do is download the project and flash it onto the development board. I’ll guide you through the steps for doing this, ensuring a smooth process.

 

  • First of all, create two folders on your computer: ‘git’ and ‘my_work’. 
  • In the ‘git’ folder, you are going to download the contents of the git repository of the course. Therefore, do not modify any contents of this folder; you can just use it as a reference.
  •  In the ‘my_work’ folder, you can keep your work on any projects you are working on.

 

Import project into STM32CubeIDE

In this article, I will show you how to import the projects into STM32CubeIDE, and once imported, you can compile, flash and test them without making any changes to the original files. Just remember not to modify the projects in the ‘git’ folder, as this is the instructor’s project that you downloaded. If you want to make any changes, do it in the ‘my_work’ folder.

 

Let’s open up the STM32CubeIDE. Once it’s launched, the IDE will prompt you to select a workspace. We’ll create a workspace by simply copying and pasting the designated path.  Then, click on Launch, as shown in Figure 2.

Figure 2. STM32CubeIDE Launcher- Import project into STM32CubeIDE
Figure 2. STM32CubeIDE Launcher

 

Now, we have to import all the projects. For that, go to file, and click on Import.

Import project into STM32CubeIDE
Figure 3. Import projects

 

Then, go to General→  Existing Projects into the workspace→  click on Next.

Import project into STM32CubeIDE
Figure 4. Import projects

 

And here again, copy that path and paste it here in the select root directory. Just paste that path and click on Browse.

Figure 5. Select root directory
Figure 5. Select root directory

 

 

And here it has listed many projects, as shown in Figure 6. You can select everything if you want or select your project, and the rest you may uncheck. That’s your choice. 

For example, here I import the tiger_demo project for the 32F429IDISCOVERY board. So, I will check all the projects, and after that, just click on Finish.

Roaring tiger demo on STM32F429DISC board
Figure 6. Import projects

 

Now, you can see that on the left-hand side, all the selected projects have been imported into the workspace as shown in Figure 7. 

Roaring tiger demo on STM32F429DISC board- Import project into STM32CubeIDE
Figure 7. Projects

 

Let’s execute the Roaring tiger demo project on the 32F429IDISCOVERY board. So, I’ll first compile this. Click on ‘Build Projects’.

And then, you have to connect the 32F429IDISCOVERY board to the computer or laptop, so you have to use the mini USB cable, as shown in Figure 8.

Roaring tiger demo on STM32F429DISC board
Figure 8. Connect the 32F429IDISCOVERY board to the computer/laptop

 

And once you connect the hardware to the laptop, again right-click on that project and you have to click on ‘Run As’ and select the ‘STM32 Cortex-M C/C++ application’ option, as shown in Figure 9.

Roaring tiger demo on STM32F429DISC board
Figure 9. Run the project

 

Look at Figure 10, there is a Roaring_tiger_demo on STM32F429DISC board. Basically, three frames are sent to the display one by one.

Figure 10. Roaring tiger Demo on display
Figure 10. Roaring tiger Demo on display

 

 

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.