Skip to content

Commit 2fd2170

Browse files
committed
fix: variant WB55R(C-E-G)V linker script update SRAM2a SRAM2b
Reduce SRAM2a size depending on BLE secure contraint imposed by Firmware Stack Full Extended Add SRAM2b, as not enough place in SRAM2a Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
1 parent 886da13 commit 2fd2170

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: variants/STM32WBxx/WB55R(C-E-G)V/ldscript.ld

+5-4
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ MEMORY
4747
{
4848
FLASH (rx) : ORIGIN = 0x08000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
4949
RAM1 (xrw) : ORIGIN = 0x20000004, LENGTH = LD_MAX_DATA_SIZE - 4
50-
RAM_SHARED (xrw) : ORIGIN = 0x20030000, LENGTH = 10K
50+
RAM_SHARED_SRAM2a (xrw) : ORIGIN = 0x20030000, LENGTH = 2K /* Limited by OptionByte SBRSA when loading firmware Full stack extended */
51+
RAM_SHARED_SRAM2b (xrw) : ORIGIN = 0x20038000, LENGTH = 10K /* Limited by OptionByte SNBRSA when loading firmware Full stack extended */
5152
}
5253

5354
/* Define output sections */
@@ -168,7 +169,7 @@ SECTIONS
168169
}
169170

170171
.ARM.attributes 0 : { *(.ARM.attributes) }
171-
MAPPING_TABLE (NOLOAD) : { *(MAPPING_TABLE) } >RAM_SHARED
172-
MB_MEM1 (NOLOAD) : { *(MB_MEM1) } >RAM_SHARED
173-
MB_MEM2 (NOLOAD) : { _sMB_MEM2 = . ; *(MB_MEM2) ; _eMB_MEM2 = . ; } >RAM_SHARED
172+
MAPPING_TABLE (NOLOAD) : { *(MAPPING_TABLE) } >RAM_SHARED_SRAM2a
173+
MB_MEM1 (NOLOAD) : { *(MB_MEM1) } >RAM_SHARED_SRAM2a
174+
MB_MEM2 (NOLOAD) : { _sMB_MEM2 = . ; *(MB_MEM2) ; _eMB_MEM2 = . ; } >RAM_SHARED_SRAM2b
174175
}

0 commit comments

Comments
 (0)