cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot compile STM32Cube's BSP example - missing header

Jur Div
Associate II
Posted on May 24, 2018 at 12:42

Hello!

I am trying to compile the BSP example provided in STM32Cube_FW_F7_V1.11.0/Projects/STM32746G-Discovery/Examples/BSP , but I get the following error: src/log.c:38:10: fatal error: lcd_log.h: No such file or directory

There is a comment block (in the lcd_log_conf.h) which says:

******************************************************************************

* @file BSP/Inc/lcd_log_conf.h

* @author MCD Application Team

* @brief lcd_log configuration template file.

* This file should be copied to the application folder and modified

* as follows:

* - Rename it to 'lcd_log_conf.h'.

* - Update the name of the LCD driver's header file, depending on

* the EVAL board you are using, see line40 below (be default this

* file will generate compile error unless you do this modification).

******************************************************************************

I don't know what name should I update, since there is nothing really on line 40 and the file included:

&sharpinclude

'stm32746g_discovery_lcd.h'

Where can I find the missing header file lcd_log.h?

#bsp #stm32-stm32cube #f7 #example
1 ACCEPTED SOLUTION

Accepted Solutions
john doe
Lead
Posted on May 24, 2018 at 12:49

look in your Cube repository in Utilities/Log.  you'll find a lcd_log_conf_template.h to use.

for example, STM32Cube/Repository/STM32Cube_FW_L4_V1.11.0/Utilities/Log/

View solution in original post

2 REPLIES 2
john doe
Lead
Posted on May 24, 2018 at 12:49

look in your Cube repository in Utilities/Log.  you'll find a lcd_log_conf_template.h to use.

for example, STM32Cube/Repository/STM32Cube_FW_L4_V1.11.0/Utilities/Log/

Posted on May 24, 2018 at 12:57

Aaah okay, I would never guess where to find it >.<

I had to include the files lcd_log.c , lcd_log.h and lcd_log_conf.h to my project, then it works well

Thanks for help!