STMicroelectronics / cmsis_device_l4

Provides the STM32Cube MCU Component "cmsis_device_l4" of the STM32L4 series.
Apache License 2.0
3 stars 3 forks source link

FLASH_SIZE_DATA_REGISTER still uses invalid (uint32_t) size designator #3

Closed UweBonnes closed 3 months ago

UweBonnes commented 5 months ago

Caution The Issues are strictly limited for the reporting of problem encountered with the software provided in this project. For any other problem related to the STM32 product, the performance, the hardware characteristics and boards, the tools the environment in general, please post a topic in the ST Community/STM32 MCUs forum.

Describe the set-up

Use any preprocessor setup like

if (FLASH_SIZE_DATA_REGISTER != 0x1FFF75E0

pragma warning Probably no STM32L4 device

... will raise an compiler error

Describe the bug A clear and concise description of what the bug is.

: error: missing binary operator before token "0x1FFF75E0" 1147 | #define FLASH_SIZE_DATA_REGISTER ((uint32_t)0x1FFF75E0) | ^~~~~~ /devel/en_apps/uart/nucleo_l476rg/../uart.c:65:7: note: in expansion of macro 'FLASH_SIZE_DATA_REGISTER' 65 | # if (FLASH_SIZE_DATA_REGISTER != 0x1FFF75E0) | ^~~~~~~~

How To Reproduce

  1. Indicate the global behavior of your application project

  2. The modules that you suspect to be the cause of the problem (Driver, BSP, MW ...)

  3. The use case that generates the problem

  4. How we can reproduce the problem

Additional context If you have a first analysis or patch correction, thank you to share your proposal.

Use

define FLASH_SIZE_DATA_REGISTER 0x1FFF75E0UL

like for the rest of the header!

Screenshots If applicable, add screenshots to help explain your problem.

TOUNSTM commented 4 months ago

ST Internal Reference: 181112

RJMSTM commented 3 months ago

Fixed in : 1139cce704f53aba757021e4ea46830c61baf4ce