File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -13916,9 +13916,13 @@ typedef struct
13916
13916
*/
13917
13917
#define FLASH_SIZE_DATA_REGISTER 0x1FF1E880U
13918
13918
#define FLASH_SECTOR_TOTAL 8U /* 8 sectors */
13919
+ #ifdef CORE_CM4
13920
+ #define FLASH_SIZE 0x200000UL /* 2 MB */
13921
+ #else
13919
13922
#define FLASH_SIZE ((((*((uint16_t *)FLASH_SIZE_DATA_REGISTER)) == 0xFFFFU)) ? 0x200000U : \
13920
13923
((((*((uint16_t *)FLASH_SIZE_DATA_REGISTER)) == 0x0000U)) ? 0x200000U : \
13921
13924
(((uint32_t)(*((uint16_t *)FLASH_SIZE_DATA_REGISTER)) & (0x0FFFU)) << 10U))) /* 2 MB */
13925
+ #endif
13922
13926
#define FLASH_BANK_SIZE (FLASH_SIZE >> 1) /* 1 MB */
13923
13927
#define FLASH_SECTOR_SIZE 0x00020000UL /* 128 KB */
13924
13928
#define FLASH_LATENCY_DEFAULT FLASH_ACR_LATENCY_7WS /* FLASH Seven Latency cycles */
You can’t perform that action at this time.
0 commit comments