PlatformIO fatal error beheben: stm32f429i_discovery_lcd.h: No such file or directory
English
Deutsch
Problem:
Sie versuchen, Ihre PlatformIO-Anwendung mit der LCD_DISCO_F429ZI-Bibliothek zu kompilieren, aber Sie sehen eine Fehlermeldung wie
platformio_error.txt
#include "stm32f429i_discovery_lcd.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\disco_f429zi\src\main.o] Error 1
In file included from .pio\libdeps\disco_f429zi\LCD_DISCO_F429ZI_ID2432\LCD_DISCO_F429ZI.cpp:19:0:
.pio\libdeps\disco_f429zi\LCD_DISCO_F429ZI_ID2432\LCD_DISCO_F429ZI.h:25:10: fatal error: stm32f429i_discovery_lcd.h: No such file or directoryLösung
Stellen Sie zuerst sicher, dass BSP_DISCO_F429ZI als Bibliotheksabhängigkeit in platformio.ini aufgeführt ist, wie hier:
platformio_ini_example.txt
[env:disco_f429zi]
platform = ststm32
board = disco_f429zi
framework = mbed
lib_deps =
LCD_DISCO_F429ZI
BSP_DISCO_F429ZIErsetzen Sie die Zeile
stm32_include_fix.c
#include "stm32f429i_discovery_lcd.h"in LCD_DISCO_F429ZI.h durch
stm32_include_replacement.c
#include "Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_lcd.h"Check out similar posts by category:
C/C++, PlatformIO
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow