Skip to content

Commit 6220ca5

Browse files
committed
STM32WL : ADDING CORTEX-M4 LINK OPTION
Add link option in file used for compilation. Due to a bug in mbedtools environment.
1 parent b9e2fab commit 6220ca5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/cmake/cores/Cortex-M4.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1212
"-mcpu=cortex-m4"
1313
"-mfpu=none"
1414
)
15+
#Necessary as the linker does not always detect
16+
#the architecture from the objectfiles correctly.
17+
list(APPEND link_options
18+
"--cpu=Cortex-M4.no_fp"
19+
)
1520
endif()
1621

1722
function(mbed_set_cpu_core_definitions target)

0 commit comments

Comments
 (0)