AnsweredAssumed Answered

[BUG][Fixed in 4.25]STM32CubeMX - stm32f1xx_hal_spi_ex.h is not copied to the GPDSC project

Question asked by marton.miklos on Jun 1, 2017

I have generated a GPDSC project with CubeMX 4.21.0 for an STM32F103C8Tx which utilized the SPI1 peripherial.

In the output XML the following section is present:

 

    <component Cclass="Device" Cgroup="STM32Cube HAL" Csub="SPI" Cversion="0.2.0">
      <description></description>
      <files>
        <file category="header" condition="" name="Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_spi.h"/>
        <file category="source" condition="" name="Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi.c"/>
        <file category="header" condition="" name="Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_spi_ex.h"/>
        <file category="source" condition="" name="Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi_ex.c"/>
      </files>
    </component>

 

However the stm32f1xx_hal_spi_ex.h is not present in the Drivers\STM32F1xx_HAL_Driver\Inc folder:

 

mm@mm-imac:/tmp/pocs$ ll Drivers/STM32F1xx_HAL_Driver/Inc/*
-rw-rw-r-- 1 mm mm 48934 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc_ex.h
-rw-rw-r-- 1 mm mm 52075 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc.h
-rw-rw-r-- 1 mm mm 6955 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_can_ex.h
-rw-rw-r-- 1 mm mm 38445 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_can.h
-rw-rw-r-- 1 mm mm 19962 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h
-rw-rw-r-- 1 mm mm 8482 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h
-rw-rw-r-- 1 mm mm 12120 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h
-rw-rw-r-- 1 mm mm 19528 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h
-rw-rw-r-- 1 mm mm 39240 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h
-rw-rw-r-- 1 mm mm 10768 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h
-rw-rw-r-- 1 mm mm 35974 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h
-rw-rw-r-- 1 mm mm 13269 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h
-rw-rw-r-- 1 mm mm 11612 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h
-rw-rw-r-- 1 mm mm 26132 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h
-rw-rw-r-- 1 mm mm 13494 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
-rw-rw-r-- 1 mm mm 103053 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h
-rw-rw-r-- 1 mm mm 70185 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h
-rw-rw-r-- 1 mm mm 27251 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h
-rw-rw-r-- 1 mm mm 14487 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
-rw-rw-r-- 1 mm mm 82272 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h
-rw-rw-r-- 1 mm mm 35999 jún 1 11:36 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h

Outcomes