2017-06-01 06:15 AM
I have generated a GPDSC project with CubeMX 4.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�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?
#cubemx #bug
Solved! Go to Solution.
2018-03-20 09:43 AM
Hello
Marton.Miklos
,This issue is now fixed in the current CubeMX release.
Please, upgrade with CubeMX4.25 if not already done.
BR. Jeanne
2017-06-05 02:31 AM
Hi
Marton.Miklos
I confirm this limitation.
Please note that this issue is reported internallyto our CubeMx team for fixing it.
Thanks
Imen
2018-03-20 09:43 AM
Hello
Marton.Miklos
,This issue is now fixed in the current CubeMX release.
Please, upgrade with CubeMX4.25 if not already done.
BR. Jeanne
2018-03-21 01:44 AM
Wokring fine, many thanks for the fix!