diff --git a/tools/cmake/cores/Cortex-M0.cmake b/tools/cmake/cores/Cortex-M0.cmake index 626e1a985b..68d00b726a 100644 --- a/tools/cmake/cores/Cortex-M0.cmake +++ b/tools/cmake/cores/Cortex-M0.cmake @@ -5,6 +5,7 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM") list(APPEND common_options "-mthumb" + "-mcpu=cortex-m0" ) elseif(${MBED_TOOLCHAIN} STREQUAL "ARM") list(APPEND c_cxx_compile_options