Skip to content
Snippets Groups Projects
Commit 5a822d2b authored by Lingkai Dong's avatar Lingkai Dong Committed by Vincent Coubard
Browse files

examples: Remove workaround for RTX crash


This reverts commit 3413cbb9.

Platform files for GNU ASM missed floating point flags, causing CMSIS
RTX's SVC handlers (written in assembly files) to incorrectly determine
stack frame sizes when floating point is used, resulting in memory
corruption when switching between threads. Because of this, we had to
work around this by using newlib-nano instead of the full newlib to
avoid floating point usage in libc in a few examples, but newlib-nano
has reduced functionality and is not designed to be thread-safe.

Having fixed the floating point flags in the toolchain repository, we
now remove the workaround.

Signed-off-by: Lingkai Dong's avatarLingkai Dong <lingkai.dong@arm.com>
parent c0c051c7
No related branches found
No related tags found
No related merge requests found
......@@ -66,11 +66,6 @@ include(CTest)
add_subdirectory(configs)
add_subdirectory(aws-credentials)
target_link_options(cmsis-core
INTERFACE
$<$<STREQUAL:${CMAKE_C_COMPILER_ID},GNU>:--specs=nano.specs>
)
# Add user application
add_executable(iotsdk-example-aws-client main.c)
......
......@@ -69,11 +69,6 @@ include(CTest)
# because a project may want to provide its own device header.
target_compile_definitions(cmsis-core INTERFACE CMSIS_device_header="@CMSIS_device_header@")
target_link_options(cmsis-core
INTERFACE
$<$<STREQUAL:${CMAKE_C_COMPILER_ID},GNU>:--specs=nano.specs>
)
# Add RTOS configuration headers
@RTOS_HEADER_INCLUDE@
......
......@@ -67,11 +67,6 @@ include(CTest)
# because a project may want to provide its own device header.
target_compile_definitions(cmsis-core INTERFACE CMSIS_device_header="@CMSIS_device_header@")
target_link_options(cmsis-core
INTERFACE
$<$<STREQUAL:${CMAKE_C_COMPILER_ID},GNU>:--specs=nano.specs>
)
# Add RTOS configuration headers
@RTOS_HEADER_INCLUDE@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment