Skip to content

Commit 37814f2

Browse files
committed
added target stm32wle5xc
1 parent 38eed85 commit 37814f2

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
5+
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32wle5xx.S)
6+
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32wle5xc.ld)
7+
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
8+
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32wle5xx.S)
9+
set(LINKER_FILE TOOLCHAIN_ARM/stm32wle5xc.sct)
10+
endif()
11+
12+
add_library(mbed-stm32wle5xc INTERFACE)
13+
14+
target_sources(mbed-stm32wle5xc
15+
INTERFACE
16+
${STARTUP_FILE}
17+
)
18+
19+
target_include_directories(mbed-stm32wle5xc
20+
INTERFACE
21+
.
22+
)
23+
24+
mbed_set_linker_script(mbed-stm32wle5xc ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
25+
26+
target_link_libraries(mbed-stm32wle5xc INTERFACE mbed-stm32wl)

targets/targets.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4381,6 +4381,23 @@
43814381
],
43824382
"device_name": "STM32WL55JCIx"
43834383
},
4384+
"MCU_STM32WLe5xC": {
4385+
"inherits": [
4386+
"MCU_STM32WL"
4387+
],
4388+
"public": false,
4389+
"macros_add": [
4390+
"STM32WLE5xx"
4391+
],
4392+
"extra_labels_add": [
4393+
"STM32WLE5xC"
4394+
],
4395+
"device_name": "STM32WLE5JCIx",
4396+
"mbed_rom_start": "0x8000000",
4397+
"mbed_rom_size": "0x40000",
4398+
"mbed_ram_start": "0x20000000",
4399+
"mbed_ram_size": "0x10000"
4400+
},
43844401
"MIMXRT1050_EVK": {
43854402
"supported_form_factors": [
43864403
"ARDUINO_UNO"

0 commit comments

Comments
 (0)