Closed Mculover666 closed 2 years ago
Hello @Mculover666,
Let me inform you that these macros has been moved to cmsis_device_l4. For example @lines 1425 & 1427 in stm32l4q5xx.h file you'll find these definitions:
#define FLASH_SIZE_DATA_REGISTER ((uint32_t)0x1FFF75E0)
#define FLASH_SIZE (((((*((uint32_t *)FLASH_SIZE_DATA_REGISTER)) & (0x0000FFFFU))== 0x0000FFFFU)) ? (0x400U << 10U) : \
(((*((uint32_t *)FLASH_SIZE_DATA_REGISTER)) & (0x0000FFFFU)) << 10U))
Best Regards
Hi,i am a st mcu developer from china , and i have meet some trouble in stm32l4xx_hal_driver lib, lib version is the code on the master branch of this repo.
The
FLASH_SIZE
macro definition is not defined but it is used in stm32l4xx_hal_flash.h(842 line) file:In addition,i have found this defintion code in the v0.3.0(14-Jan-2015) version:
so, i want to know why these code is removed in the latest version, and how can i solve this problem?
Thanks!