Skip to content

Commit fcc375f

Browse files
committed
Update FLASH_SIZE backup value
By default, FLASH_SIZE should be read from HW. In case this is not the case, we define it here, as the size of FLASH that is available to the application running on M4.
1 parent 89eef1b commit fcc375f

File tree

1 file changed

+2
-2
lines changed
  • targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xG/device

1 file changed

+2
-2
lines changed

targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xG/device/flash_data.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
#undef FLASH_SIZE
3838
#endif
3939

40-
// Only the first 128 pages are accessible when security is enabled
41-
#define FLASH_SIZE ((uint32_t)0x80000) // 128 pages x 4 Kbytes = 512 Kbytes
40+
// Only the first the application side is accessible.
41+
#define FLASH_SIZE ((uint32_t)0xC0000) // 768 Kbytes
4242

4343
#endif
4444
#endif

0 commit comments

Comments
 (0)