cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeF4 Driver CMSIS Device STM32F4xx bug

dlkeng
Associate III
Posted on May 24, 2014 at 19:40

The definition of __STM32F4xx_CMSIS_DEVICE_VERSION appears to be incorrect in the following STM32CubeF4 file:

 STM32Cube_FW_F4_V1.1.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h

 

 

It is defined as: (at line ♯ 107)

&sharpdefine __STM32F4xx_CMSIS_DEVICE_VERSION        ((__CMSIS_DEVICE_VERSION_MAIN     << 24)\

          |(__CMSIS_DEVICE_HAL_VERSION_SUB1 << 16)\

          |(__CMSIS_DEVICE_HAL_VERSION_SUB2 << 8 )\

          |(__CMSIS_DEVICE_HAL_VERSION_RC))

 

 

I think it should be: (based on lines 103 to 106)

&sharpdefine __STM32F4xx_CMSIS_DEVICE_VERSION        ((__STM32F4xx_CMSIS_DEVICE_VERSION_MAIN     << 24)\

          |(__STM32F4xx_CMSIS_DEVICE_VERSION_SUB1 << 16)\

          |(__STM32F4xx_CMSIS_DEVICE_VERSION_SUB2 << 8 )\

          |(__STM32F4xx_CMSIS_DEVICE_VERSION_RC))

 

#bug #cubef4 #stm32cubef4 #cmsis
1 REPLY 1
Posted on May 26, 2014 at 11:10

Hi,

Thanks for the remark, the bug is already reported and will be fixed in the next release of the STM32Cube_FW_F4.

With regards.