diff --git a/TESTS/mbed_drivers/ticker/main.cpp b/TESTS/mbed_drivers/ticker/main.cpp index 35e696e5f9..04faac02ea 100644 --- a/TESTS/mbed_drivers/ticker/main.cpp +++ b/TESTS/mbed_drivers/ticker/main.cpp @@ -331,8 +331,10 @@ Case cases[] = { Case("Test detach", test_detach), Case("Test multi call and time measure", test_multi_call_time), Case("Test multi ticker", test_multi_ticker), +#if !defined(__ARM_FM) //FastModels not support time drifting test Case("Test timers: 1x ticker", test_case_1x_ticker), Case("Test timers: 2x ticker", test_case_2x_ticker) +#endif }; utest::v1::status_t greentea_test_setup(const size_t number_of_cases) diff --git a/TESTS/mbed_drivers/timeout/main.cpp b/TESTS/mbed_drivers/timeout/main.cpp index 2be400a8b4..72b1b06a6e 100644 --- a/TESTS/mbed_drivers/timeout/main.cpp +++ b/TESTS/mbed_drivers/timeout/main.cpp @@ -68,9 +68,10 @@ Case cases[] = { Case("1 s delay during sleep (attach_us)", test_sleep, 1000000, LONG_DELTA_US>, greentea_failure_handler), #endif - +#if !defined(__ARM_FM) //FastModels not support time drifting test Case("Timing drift (attach)", test_drift >), Case("Timing drift (attach_us)", test_drift >), +#endif }; utest::v1::status_t greentea_test_setup(const size_t number_of_cases) diff --git a/TESTS/mbed_hal/common_tickers_freq/main.cpp b/TESTS/mbed_hal/common_tickers_freq/main.cpp index bf5c9a0301..0f0c5a63ea 100644 --- a/TESTS/mbed_hal/common_tickers_freq/main.cpp +++ b/TESTS/mbed_hal/common_tickers_freq/main.cpp @@ -34,6 +34,11 @@ #error [NOT_SUPPORTED] test not supported #endif +//FastModels not support time drifting test +#if defined(__ARM_FM) +#error [NOT_SUPPORTED] test not supported +#endif + #define US_PER_S 1000000 using namespace utest::v1; diff --git a/TESTS/mbedmicro-rtos-mbed/basic/main.cpp b/TESTS/mbedmicro-rtos-mbed/basic/main.cpp index a266fdb51b..62e6aa29e9 100644 --- a/TESTS/mbedmicro-rtos-mbed/basic/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/basic/main.cpp @@ -27,6 +27,11 @@ #error [NOT_SUPPORTED] test not supported #endif +//FastModels not support time drifting test +#if defined(__ARM_FM) +#error [NOT_SUPPORTED] test not supported +#endif + using utest::v1::Case; #if defined(__CORTEX_M23) || defined(__CORTEX_M33) diff --git a/TESTS/mbedmicro-rtos-mbed/mail/main.cpp b/TESTS/mbedmicro-rtos-mbed/mail/main.cpp index 8594c88565..a0eb45b5d5 100644 --- a/TESTS/mbedmicro-rtos-mbed/mail/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/mail/main.cpp @@ -31,6 +31,8 @@ using namespace utest::v1; #if defined(__CORTEX_M23) || defined(__CORTEX_M33) #define THREAD_STACK_SIZE 512 +#elif defined(__ARM_FM) +#define THREAD_STACK_SIZE 512 #else #define THREAD_STACK_SIZE 320 /* larger stack cause out of heap memory on some 16kB RAM boards in multi thread test*/ #endif diff --git a/TESTS/mbedmicro-rtos-mbed/malloc/main.cpp b/TESTS/mbedmicro-rtos-mbed/malloc/main.cpp index a16577b595..10a9ea883e 100644 --- a/TESTS/mbedmicro-rtos-mbed/malloc/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/malloc/main.cpp @@ -39,6 +39,8 @@ volatile bool thread_should_continue = true; #define THREAD_STACK_SIZE 512 #elif defined(__CORTEX_M23) || defined(__CORTEX_M33) #define THREAD_STACK_SIZE 512 +#elif defined(__ARM_FM) +#define THREAD_STACK_SIZE 512 #else #define THREAD_STACK_SIZE 256 #endif diff --git a/TESTS/mbedmicro-rtos-mbed/threads/main.cpp b/TESTS/mbedmicro-rtos-mbed/threads/main.cpp index 5575ce6522..5964e3235d 100644 --- a/TESTS/mbedmicro-rtos-mbed/threads/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/threads/main.cpp @@ -34,6 +34,8 @@ #define PARALLEL_THREAD_STACK_SIZE 512 #elif defined(__CORTEX_M23) || defined(__CORTEX_M33) #define PARALLEL_THREAD_STACK_SIZE 512 +#elif defined(__ARM_FM) +#define PARALLEL_THREAD_STACK_SIZE 512 #else #define PARALLEL_THREAD_STACK_SIZE 384 #endif diff --git a/targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M0/device/TOOLCHAIN_GCC_ARM/MPS2.ld b/targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M0/device/TOOLCHAIN_GCC_ARM/MPS2.ld index 5ed9d2801b..20097e1c12 100644 --- a/targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M0/device/TOOLCHAIN_GCC_ARM/MPS2.ld +++ b/targets/TARGET_ARM_FM/TARGET_FVP_MPS2/TARGET_FVP_MPS2_M0/device/TOOLCHAIN_GCC_ARM/MPS2.ld @@ -69,7 +69,7 @@ ENTRY(Reset_Handler) STACK_SIZE = 0x400; /* Size of the vector table in SRAM */ -M_VECTOR_RAM_SIZE = 0x100; +M_VECTOR_RAM_SIZE = NVIC_VECTORS_SIZE; SECTIONS { diff --git a/targets/targets.json b/targets/targets.json index 5d8c98e99d..78f1a1659c 100755 --- a/targets/targets.json +++ b/targets/targets.json @@ -4391,6 +4391,7 @@ "ARM_FM": { "inherits": ["Target"], "public": false, + "macros": ["__ARM_FM"], "extra_labels": ["ARM_FM"] }, "FVP_MPS2": { @@ -4404,27 +4405,27 @@ "FVP_MPS2_M0": { "inherits": ["FVP_MPS2"], "core": "Cortex-M0", - "macros": ["CMSDK_CM0"] + "macros_add": ["CMSDK_CM0"] }, "FVP_MPS2_M0P": { "inherits": ["FVP_MPS2"], "core": "Cortex-M0+", - "macros": ["CMSDK_CM0plus"] + "macros_add": ["CMSDK_CM0plus"] }, "FVP_MPS2_M3": { "inherits": ["FVP_MPS2"], "core": "Cortex-M3", - "macros": ["CMSDK_CM3"] + "macros_add": ["CMSDK_CM3"] }, "FVP_MPS2_M4": { "inherits": ["FVP_MPS2"], "core": "Cortex-M4", - "macros": ["CMSDK_CM4"] + "macros_add": ["CMSDK_CM4"] }, "FVP_MPS2_M7": { "inherits": ["FVP_MPS2"], "core": "Cortex-M7", - "macros": ["CMSDK_CM7"] + "macros_add": ["CMSDK_CM7"] }, "NUMAKER_PFM_M2351": { "core": "Cortex-M23-NS",