AnsweredAssumed Answered

STM32CubeF4 Driver CMSIS Device STM32F4xx bug

Question asked by Dan K. on May 24, 2014
Latest reply on May 26, 2014 by Montassar BEN ROMDHANE
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)
#define __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)
#define __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))



Outcomes