cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F769I-Discovery BSP Example broken

john doe
Lead
Posted on January 12, 2017 at 19:25

I should not have to edit a conf file to build an example specific to the hardware, but ok

bug #1

Building file: /Users/john/STM32Cube/Repository/STM32Cube_FW_F7_V1.5.1/Utilities/Log/lcd_log.c Invoking: MCU GCC Compiler /Users/john/STM32Cube/Repository/STM32Cube_FW_F7_V1.5.1/Projects/STM32F769I-Discovery/Examples/BSP/SW4STM32/STM32769I-Discovery/Debug arm-none-eabi-gcc -mthumb -mfloat-abi=soft -O0 -g3 -Wall -fmessage-length=0 -ffunction-sections -c -MMD -MP -MF'Utilities/lcd_log.d' -MT'Utilities/lcd_log.o' -o 'Utilities/lcd_log.o' '/Users/john/STM32Cube/Repository/STM32Cube_FW_F7_V1.5.1/Utilities/Log/lcd_log.c' In file included from /Users/john/STM32Cube/Repository/STM32Cube_FW_F7_V1.5.1/Utilities/Log/lcd_log.c:51:0: /Users/john/STM32Cube/Repository/STM32Cube_FW_F7_V1.5.1/Utilities/Log/lcd_log.h:44:26: fatal error: lcd_log_conf.h: No such file or directory #include 'lcd_log_conf.h' ^ compilation terminated. make: *** [Utilities/lcd_log.o] Error 1 12:17:47 Build Finished (took 2s.37ms)

so, ok, I edit the conf file and change

#include 'stm32xxx_eval_lcd.h' /* replace 'stm32xxx' with your EVAL board name, ex: stm324x9i_eval_lcd.h */

to

#include 'stm32f769i_discovery_lcd.h'

which yields bug #2:

Building file: /Users/john/STM32Cube/Repository/STM32Cube_FW_F7_V1.5.1/Utilities/Log/lcd_log.c

Invoking: MCU GCC Compiler

/Users/john/STM32Cube/Repository/STM32Cube_FW_F7_V1.5.1/Projects/STM32F769I-Discovery/Examples/BSP/SW4STM32/STM32769I-Discovery/Debug

arm-none-eabi-gcc -mthumb -mfloat-abi=soft -O0 -g3 -Wall -fmessage-length=0 -ffunction-sections -c -MMD -MP -MF'Utilities/lcd_log.d' -MT'Utilities/lcd_log.o' -o 'Utilities/lcd_log.o' '/Users/john/STM32Cube/Repository/STM32Cube_FW_F7_V1.5.1/Utilities/Log/lcd_log.c'

In file included from /Users/john/STM32Cube/Repository/STM32Cube_FW_F7_V1.5.1/Utilities/Log/lcd_log.h:44:0,

                 from /Users/john/STM32Cube/Repository/STM32Cube_FW_F7_V1.5.1/Utilities/Log/lcd_log.c:51:

/Users/john/STM32Cube/Repository/STM32Cube_FW_F7_V1.5.1/Utilities/Log/lcd_log_conf.h:51:39: fatal error: stm32f769i_discovery_lcd.h: No such file or directory

 #include 'stm32f769i_discovery_lcd.h'

                                       ^

compilation terminated.

make: *** [Utilities/lcd_log.o] Error 1

12:23:24 Build Finished (took 1s.252ms)

2 REPLIES 2
Posted on January 12, 2017 at 22:49

Looks like you need to add to the Include Paths

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on January 13, 2017 at 02:16

Thank you Clive One, you're awesome.

Indeed, FW_F7_1.5.0 has very different include paths from FW_F7_1.5.1.

when i check the properties (sw4stm32)  it shows no include paths for GNU C and they're all in Assembly in version 1.5.1.

In 1.5.0, they're fine in GNU C but no paths shown in Assembly section of the Paths & Symbols part of the properties

FW_F7_1.5.0 builds and runs right out of the box with no hand-waving required

Thanks again. This is so much more fun, an easier to learn from, when the examples work as advertised.