Trouble with BSP_LCD library.
Hi I am using the stm32f429i-disc1 board with the LCD.
I am trying to get a basic sample up and running.
I managed to import and compile the example successfully. (the 2 layer one with the two ST logos)
Now I wanted to use the functions in stm32f429i_discovery_lcd.h
I included it and then tried to call a function. It doesn’t seem to work at all and I don’t really understand the errors.
I am using SW4STM32
17:32:50 **** Incremental Build of configuration Debug for project STM32F429I-Discovery ****
make all
Building file: C:/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Projects/STM32F429I-Discovery/Examples/LTDC/LTDC_Display_2Layers/Src/main.c
Invoking: MCU GCC Compiler
C:\Dev\Embedded\STM32F4\STM32Cube_FW_F4_V1.16.0\Projects\STM32F429I-Discovery\Examples\LTDC\LTDC_Display_2Layers\SW4STM32\STM32F429I-Discovery\Debug
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DUSE_HAL_DRIVER -DSTM32F429xx -DUSE_STM32F429I_DISCO -I”C:/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Projects/STM32F429I-Discovery/Examples/LTDC/LTDC_Display_2Layers/Inc” -I”C:/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Drivers/CMSIS/Device/ST/STM32F4xx/Include” -I”C:/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Drivers/STM32F4xx_HAL_Driver/Inc” -I”C:/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Drivers/BSP/STM32F429I-Discovery” -I”C:/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Drivers/CMSIS/Include” -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -Wno-unused-variable -Wno-pointer-sign -Wno-main -Wno-format -Wno-address -Wno-unused-but-set-variable -Wno-strict-aliasing -Wno-parentheses -Wno-missing-braces -MMD -MP -MF”Example/User/main.d” -MT”Example/User/main.o” -o “Example/User/main.o” “C:/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Projects/STM32F429I-Discovery/Examples/LTDC/LTDC_Display_2Layers/Src/main.c”
In file included from C:/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_lcd.h:50:0,
from C:/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Projects/STM32F429I-Discovery/Examples/LTDC/LTDC_Display_2Layers/Src/main.c:43:
C:/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_sdram.h:160:37: error: unknown type name ‘FMC_SDRAM_CommandTypeDef’
uint8_t BSP_SDRAM_Sendcmd(FMC_SDRAM_CommandTypeDef *SdramCmd);
~~~~~~~<span style="color”><span style="color”><span style="color”><span style="color”><span style="color”><span style="color”>
C”>/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_sdram.h:165:27: error: unknown type name ‘SDRAM_HandleTypeDef’
void BSP_SDRAM_MspInit(SDRAM_HandleTypeDef *hsdram, void *Params);
<span style="color”><span style="color”><span style="color”>
C”>/Dev/Embedded/STM32F4/STM32Cube_FW_F4_V1.16.0/Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_sdram.h:166:29: error: unknown type name ‘SDRAM_HandleTypeDef’
void BSP_SDRAM_MspDeInit(SDRAM_HandleTypeDef *hsdram, void *Params);
make: *** Example/User/main.o Error 1
Example/User/subdir.mk:24: recipe for target ‘Example/User/main.o’ failed
Any hints will be gratefully received!
Thanks,
R