Skip to content

Commit 773729f

Browse files
authored
Merge pull request #10479 from LMESTM/more_flash_for_stm32wb_app
STM32WB: Update Flash size
2 parents 03cda26 + e3a72ea commit 773729f

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xG/device/TOOLCHAIN_ARM_MICRO/stm32wb55xx.sct

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
#endif
3535

3636
#if !defined(MBED_APP_SIZE)
37-
; 512KB FLASH
38-
#define MBED_APP_SIZE 0x80000
37+
; 768KB FLASH
38+
#define MBED_APP_SIZE 0xC0000
3939
#endif
4040

41-
; 512KB FLASH (0x80000) + 192KB SRAM (0x30000) + Shared mem
41+
; 768KB FLASH (0xC0000) + 192KB SRAM (0x30000) + Shared mem
4242
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
4343

4444
ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address

targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xG/device/TOOLCHAIN_ARM_STD/stm32wb55xx.sct

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
#endif
3535

3636
#if !defined(MBED_APP_SIZE)
37-
; 512KB FLASH
38-
#define MBED_APP_SIZE 0x80000
37+
; 768KB FLASH
38+
#define MBED_APP_SIZE 0xC0000
3939
#endif
4040

4141
#if !defined(MBED_BOOT_STACK_SIZE)
@@ -44,7 +44,7 @@
4444

4545
#define Stack_Size MBED_BOOT_STACK_SIZE
4646

47-
; 512KB FLASH (0x80000) + 192KB SRAM (0x30000) + Shared mem
47+
; 768KB FLASH (0xC0000) + 192KB SRAM (0x30000) + Shared mem
4848
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
4949

5050
ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address

targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xG/device/TOOLCHAIN_GCC_ARM/stm32wb55xx.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#endif
44

55
#if !defined(MBED_APP_SIZE)
6-
#define MBED_APP_SIZE 512K
6+
#define MBED_APP_SIZE 768K
77
#endif
88

99
#if !defined(MBED_BOOT_STACK_SIZE)

targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xG/device/TOOLCHAIN_IAR/stm32wb55xx.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
*/
1818

1919
if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x08000000; }
20-
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x80000; }
20+
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0xC0000; }
2121

22-
/* [ROM = 512kb = 0x80000] */
22+
/* [ROM = 768kb = 0xC0000] */
2323
define symbol __intvec_start__ = MBED_APP_START;
2424
define symbol __region_ROM_start__ = MBED_APP_START;
2525
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;

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)