Skip to content

Commit f2580c1

Browse files
committed
STM32WB: Fix ARM link error in mbed2
In case of mbed2, BLE feature is not built. As there is a MAPPING_TABLE in BLE feature which is not compiled in case of mbed2, the linker reported the below error [ERROR] "C:/Data/Workspace/mbed/BUILD/test/NUCLEO_WB55RG/ARM/MBED_2/ .link_script.sct", line 65 (column 6): Error: L6236E: No section matches selector - no section to be FIRST/LAST. Solution is to check whether BLE is enabled.
1 parent f9b4f11 commit f2580c1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,15 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
5656
RW_IRAM1 (0x20000000+0x13C) (0x30000-0x13C-Stack_Size) { ; RW data
5757
.ANY (+RW +ZI)
5858
}
59+
5960
ARM_LIB_STACK (0x20000000+0x30000) EMPTY -Stack_Size { ; stack
6061
}
6162

6263
; SRAM2 - Shared memory
6364
RW_IRAM2a 0x20030000 0x00002800 { ; RW data
65+
#if defined(BLE)
6466
*(MAPPING_TABLE, +First)
67+
#endif
6568
*(MB_MEM1)
6669
}
6770
RW_IRAM2b 0x20038000 0x00005000 { ; RW data

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,15 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
5656
RW_IRAM1 (0x20000000+0x13C) (0x30000-0x13C-Stack_Size) { ; RW data
5757
.ANY (+RW +ZI)
5858
}
59+
5960
ARM_LIB_STACK (0x20000000+0x30000) EMPTY -Stack_Size { ; stack
6061
}
6162

6263
; SRAM2 - Shared memory
6364
RW_IRAM2a 0x20030000 0x00002800 { ; RW data
65+
#if defined(BLE)
6466
*(MAPPING_TABLE, +First)
67+
#endif
6568
*(MB_MEM1)
6669
}
6770
RW_IRAM2b 0x20038000 0x00005000 { ; RW data

0 commit comments

Comments
 (0)