Skip to main content
Dhaval Patel
Associate II
March 21, 2018
Question

Bug in stm32f7xx.h (STM32Cube_FW_F7_V1.11.0)

  • March 21, 2018
  • 2 replies
  • 727 views
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
This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
March 21, 2018
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 VenmoUp vote any posts that you find helpful, it shows what's working..
Technical Moderator
March 22, 2018
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks