Skip to content

Commit 002f40d

Browse files
committed
STM32WB: ARM linker script update
There is no need to add FIRST attribute to MAPPING_TABLE as the default ordering is alphabetical order. With this change, we don't have any warning with MBED2 and the sections are properly ordered anyway in BLE cases.
1 parent e925bd7 commit 002f40d

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

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

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@
3737
#define MBED_APP_SIZE 0x80000
3838
#endif
3939

40-
#if !defined(MBED_BOOT_STACK_SIZE)
41-
#define MBED_BOOT_STACK_SIZE 0x400
42-
#endif
43-
44-
#define Stack_Size MBED_BOOT_STACK_SIZE
45-
4640
; 512KB FLASH (0x80000) + 192KB SRAM (0x30000) + Shared mem
4741
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
4842

@@ -53,19 +47,14 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
5347
}
5448

5549
; Total: 79 vectors = 316 bytes (0x13C) to be reserved in RAM
56-
RW_IRAM1 (0x20000000+0x13C) (0x30000-0x13C-Stack_Size) { ; RW data
50+
RW_IRAM1 (0x20000000+0x13C) (0x30000-0x13C) { ; RW data
5751
.ANY (+RW +ZI)
5852
}
5953

60-
ARM_LIB_STACK (0x20000000+0x30000) EMPTY -Stack_Size { ; stack
61-
}
62-
6354
; SRAM2 - Shared memory
6455
RW_IRAM2a 0x20030000 0x00002800 { ; RW data
65-
#if defined(BLE)
66-
*(MAPPING_TABLE, +First)
67-
#endif
68-
*(MB_MEM1)
56+
*(MAPPING_TABLE)
57+
*(MB_MEM1)
6958
}
7059
RW_IRAM2b 0x20038000 0x00005000 { ; RW data
7160
*(MB_MEM2)

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
6262

6363
; SRAM2 - Shared memory
6464
RW_IRAM2a 0x20030000 0x00002800 { ; RW data
65-
#if defined(BLE)
66-
*(MAPPING_TABLE, +First)
67-
#endif
68-
*(MB_MEM1)
65+
*(MAPPING_TABLE)
66+
*(MB_MEM1)
6967
}
7068
RW_IRAM2b 0x20038000 0x00005000 { ; RW data
7169
*(MB_MEM2)

0 commit comments

Comments
 (0)