Skip to content

Commit 61b889e

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 61b889e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
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 fimware Full stack extended */
51+
RAM_SHARED_SRAM2b (xrw) : ORIGIN = 0x20038000, LENGTH = 10K /* Limited by OptionByte SNBRSA when loading fimware 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy