summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-12-14 18:48:19 +0700
committerGitHub <[email protected]>2023-12-14 18:48:19 +0700
commit9474db8b0fc3e96d654ed49529b82bbd329f2f56 (patch)
treed6851301d5592b13fb70a8d32dae9d275ad3b69c /examples
parent5a0c21a0aa1a288c5c1a1455973e9933e685453b (diff)
parent6fda6e16f8a999a05d77c27f3bd4ee6aee7a6bb0 (diff)
Merge pull request #2376 from HiFiPhile/iar_cmake
IAR CMake native support
Diffstat (limited to 'examples')
-rw-r--r--examples/build_system/cmake/cpu/cortex-m4.cmake2
-rw-r--r--examples/build_system/cmake/toolchain/arm_iar.cmake1
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/build_system/cmake/cpu/cortex-m4.cmake b/examples/build_system/cmake/cpu/cortex-m4.cmake
index 4e9bc242d..db308aa83 100644
--- a/examples/build_system/cmake/cpu/cortex-m4.cmake
+++ b/examples/build_system/cmake/cpu/cortex-m4.cmake
@@ -13,7 +13,7 @@ if (TOOLCHAIN STREQUAL "gcc")
elseif (TOOLCHAIN STREQUAL "iar")
set(TOOLCHAIN_COMMON_FLAGS
--cpu cortex-m4
- --fpu VFPv4
+ --fpu VFPv4_sp
)
if (NOT DEFINED FREERTOS_PORT)
diff --git a/examples/build_system/cmake/toolchain/arm_iar.cmake b/examples/build_system/cmake/toolchain/arm_iar.cmake
index a487e5b9f..1482624e5 100644
--- a/examples/build_system/cmake/toolchain/arm_iar.cmake
+++ b/examples/build_system/cmake/toolchain/arm_iar.cmake
@@ -26,6 +26,7 @@ list(APPEND TOOLCHAIN_COMMON_FLAGS
)
list(APPEND TOOLCHAIN_EXE_LINKER_FLAGS
+ --diag_suppress=Li065
)
include(${CMAKE_CURRENT_LIST_DIR}/set_flags.cmake)