cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in stm32f7xx.h (STM32Cube_FW_F7_V1.11.0)

Dhaval Patel
Associate II
Posted on March 21, 2018 at 17:35

Hi,

It came to attention that there is bug in stm32f7xx.h for CMSIS version.

__STM32F7_CMSIS_VERSION

  using

__STM32F7_CMSIS_VERSION. 

It cause compilation error.

 

So existing code :

&sharpdefine __STM32F7_CMSIS_VERSION_MAIN   (0x01) /*!< [31:24] main version */

&sharpdefine __STM32F7_CMSIS_VERSION_SUB1   (0x02) /*!< [23:16] sub1 version */

&sharpdefine __STM32F7_CMSIS_VERSION_SUB2   (0x02) /*!< [15:8]  sub2 version */

&sharpdefine __STM32F7_CMSIS_VERSION_RC     (0x00) /*!< [7:0]  release candidate */

&sharpdefine

__STM32F7_CMSIS_VERSION

        ((__STM32F7_CMSIS_VERSION_MAIN << 24)\

                                       |(__STM32F7_CMSIS_VERSION_SUB1 << 16)\

                                       |(__STM32F7_CMSIS_VERSION_SUB2 << 8 )\

                                       |(

__STM32F7_CMSIS_VERSION

))

Should be :

&sharpdefine __STM32F7_CMSIS_VERSION_MAIN   (0x01) /*!< [31:24] main version */

&sharpdefine __STM32F7_CMSIS_VERSION_SUB1   (0x02) /*!< [23:16] sub1 version */

&sharpdefine __STM32F7_CMSIS_VERSION_SUB2   (0x02) /*!< [15:8]  sub2 version */

&sharpdefine __STM32F7_CMSIS_VERSION_RC     (0x00) /*!< [7:0]  release candidate */

&sharpdefine

__STM32F7_CMSIS_VERSION

        ((__STM32F7_CMSIS_VERSION_MAIN << 24)\

                                       |(__STM32F7_CMSIS_VERSION_SUB1 << 16)\

                                       |(__STM32F7_CMSIS_VERSION_SUB2 << 8 )\

                                       |(

__STM32F7_CMSIS_VERSION_RC

))

#bug #stm32cube_fw_f7_ #stm32f7xx.h #__stm32f7_cmsis_version
2 REPLIES 2
Posted on March 21, 2018 at 20:37

Kind of circular, seems to have been there for a while, and also in the F4 trees too at a quick glance.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Imen.D
ST Employee
Posted on March 22, 2018 at 11:56

Hello,

Thanks for highlighting this bug.

We confirm this issue and raised it internally for fix.

Best Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen