cancel
Showing results for 
Search instead for 
Did you mean: 

Where are up to date examples of using BSP_LCD functions on the stm32H743-eval? There is little I can find searching the net and this forum and what does exists is hopeless dated.

GreenGuy
Lead
 
16 REPLIES 16
KDJEM.1
ST Employee

Hi @Community member​ ,

Thanks for sharing your project.

I will check and I will get back as soon as possible.

Kaouthar

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.

KDJEM.1
ST Employee

Hello @Community member​ ,

  • Try to change fontx.c files direction from Fronts file to Core/Src file.
  • Remove these command lines in STM32_lcd.c:
#include "../Fonts/font20.c"
#include "../Fonts/font16.c"
#include "../Fonts/font12.c"
#include "../Fonts/font8.c"
#include "../Fonts/font24.c"
  • Insert this line in STM32_lcd.c file:
#include "Fonts.h"

Thank you.

Kaouthar

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.

GreenGuy
Lead

When you say :"Try to change fontx.c files direction from Fronts file to Core/Src file."

Do you mean to move the fontx.c files to the Core/Src folder?

Changing the stm32_lcd.c file addressed most of the errors. I would like to know how you were able to translate the error messages before the change to direct you to the stm32_lcd.c file.

KDJEM.1
ST Employee

Hi @Community member​ ,

-->Do you mean to move the fontx.c files to the Core/Src folder?

Exactly, move the fontx.c files from Fronts folder to the Core/Src folder.

I advise you to start with a functional example and try to add the peripherals one by one.

Thank you.

Kaouthar

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.

GreenGuy
Lead

I have elected to leave the fontx.c files in the utilities folder since the Source Path settings include the folder where they reside and the that part of the build is working fine.

I had to fix one other error resulting from a redefinition of the QSPI_HandleTypeDef hqspi in the file stm32h743i_eval_qspi.h. In the file stm32h743i_eval_qspi.c at line 79 the type def is not directed to be extern but in the .h file at line 195 it is. This will cause a conflict with the qspi typedef in the CubeMX generated main.c file. Changing line 79 in the c file to add the extern directive solves that problem.

I still have a problem with erros when I try to use code that comes from the application examples for the lcd trace functions. The only place I can see these being used in in the lwip applications. Follwing those examples, I placed the #include "lcd_trace.h" in the top of the main.c in preparation to call BSP_LCD_Init(0, LCD_ORIENTATION_LANDSCAPE);

The inclusion of the h file causes the error conflicting types for MX_LTDC_Init().

An archive of the project is attached.

GreenGuy
Lead

Finally got it to work.

Had to uncheck the generate code for MX_LTDC_Init in the CubeMX Project Manager/Advanced Settings along with unchecking the LTDC global interrupts in the LTDC category NVIC settings since this adds interrupt handlers to the stm32h7xx_it.c file which require a LTDC_HandleTypeDef to have been created. Also had to lower the LCD clock value to 25MHz.

KDJEM.1
ST Employee

Hi @Community member​ ,

Glad to know the issue is already fixed..

Thanks for your contribution in STCommunity.

Kaouthar

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.