Skip to main content
idrissmc
Associate III
July 4, 2019
Solved

How to display a message on STM32F413-Disco LCD?

  • July 4, 2019
  • 10 replies
  • 2306 views

Can someone helps me how to use the LCD on the STM32F413H-Disco, I want to display a message on it.

Have you got some suggestions please?

thanks

This topic has been closed for replies.
Best answer by Michael E

As you can see in "C:\Users\YOURNAME\STM32Cube\Repository\STM32Cube_FW_F4_V1.24.1\Projects\STM32CubeProjectsList.html" file, you can use example "LCD_PicturesFromSDCard".

You can find it under this path "C:\Users\YOURNAME\STM32Cube\Repository\STM32Cube_FW_F4_V1.24.1\Projects\STM32F413H-Discovery\Applications\Display\LCD_PicturesFromSDCard".

Use SW4STM32 project if your IDE is STM32CubeIDE, both are compatible.

10 replies

Tesla DeLorean
Guru
July 4, 2019

Try looking at and building some of the board specific examples provided in the CubeF4 archive.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
idrissmc
idrissmcAuthor
Associate III
July 4, 2019

Where?

N. SANTINI
ST Employee
July 4, 2019

​Indeed, an example using the LCD is provided in the L4 Cube Firmware package :

STM32Cube_FW_F4_V1.24.1\Projects\STM32F413H-Discovery\Applications\STemWin

Best regards,

idrissmc
idrissmcAuthor
Associate III
July 4, 2019

Where can I find this? I tried, I searched but I didn’t find it

Michael E
ST Technical Moderator
July 5, 2019

Have you installed/updated the "STM32Cube_FW_F4_V1.24.1" package thrue STM32CubeMX or STM32CubeIDE?

If it's downloaded, the default path is "C:\Users\YOURNAME\STM32Cube\Repository"

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Michael E
Michael EBest answer
ST Technical Moderator
July 5, 2019

As you can see in "C:\Users\YOURNAME\STM32Cube\Repository\STM32Cube_FW_F4_V1.24.1\Projects\STM32CubeProjectsList.html" file, you can use example "LCD_PicturesFromSDCard".

You can find it under this path "C:\Users\YOURNAME\STM32Cube\Repository\STM32Cube_FW_F4_V1.24.1\Projects\STM32F413H-Discovery\Applications\Display\LCD_PicturesFromSDCard".

Use SW4STM32 project if your IDE is STM32CubeIDE, both are compatible.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
idrissmc
idrissmcAuthor
Associate III
July 5, 2019

you see Michael, I have some errors in #include, I didn't find the #include "stm32f413h_discovery.h" 0690X000009YSANQA4.png

N. SANTINI
ST Employee
July 5, 2019

​Check if the file is present on the disk, if so you may have an issue linked with a "too long path" for "path", this is typical in Eclipse...

Then you need to copy the project to a folder near your hard drive root, e.g. C:\Temp.

But be carefull, you will need to copy the example folder as well as as other folders that are common to all F4 boards (drivers, middleware).

To do it quickly, just copy the entire Cube Firmware to C:\Temp, so you can verify that the build is fine.

In principle the dependencies are reference with relative paths (include, lib).

Then you will remove useless folders.

In principle you should keep the following folder structure (and even then you should be able to remove some) :

C:\Temp\Drivers\BSP\Components

C:\Temp\Drivers\BSP\STM32F413H-Discovery

C:\Temp\Drivers\CMSIS

C:\Temp\Drivers\STM32F4xx_HAL_Driver

C:\Temp\Middleware

C:\Temp\Projects\STM32F413H-Discovery\Applications\Display\LCD_PicturesFromSDCard

Best regards,