Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


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

I have the same problem.

Did you find a solution ?

No I didn’t. I ended up switching to chibiOS and got it all working in that instead.

 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs