STMicroelectronics / stm32l4xx_hal_driver

Provides the STM32Cube MCU Component "hal_driver" of the STM32L4 series.
BSD 3-Clause "New" or "Revised" License
30 stars 14 forks source link

FLASH_SIZE_DATA_REGISTER undeclared #1

Closed vpetrigo closed 4 years ago

vpetrigo commented 4 years ago

Describe the set-up

Describe the bug

hardware/mcu_hal/stm32l4xx_hal_driver/Inc/stm32l4xx_hal_flash.h:894:102: error: 'FLASH_SIZE_DATA_REGISTER' undeclared (first use in this function)
  894 | #define IS_FLASH_MAIN_MEM_ADDRESS(ADDRESS) (((ADDRESS) >= (FLASH_BASE))         && ((((*((uint16_t *)FLASH_SIZE_DATA_REGISTER)) & (0x0FFFU)) == 0x400U) ? \

How To Reproduce

  1. Download stm32l4xx_hal_driver repository
  2. Switch to the tag 1.11.0
vpetrigo commented 4 years ago

Sorry, my bad. Wrong version of the system CMSIS was selected.