diff --git a/platform/tests/TESTS/mbed_functional/callback/main.cpp b/platform/tests/TESTS/mbed_functional/callback/main.cpp index 5b594b1fc3..4b8b7fe50e 100644 --- a/platform/tests/TESTS/mbed_functional/callback/main.cpp +++ b/platform/tests/TESTS/mbed_functional/callback/main.cpp @@ -20,6 +20,8 @@ #include "utest.h" #include +#define TEST_MIN_REQ_ROM_SIZE (36 * 1024) + using namespace utest::v1; template @@ -884,8 +886,7 @@ Case cases[] = { Case("Testing callbacks with 2 uint64s", test_dispatch2), Case("Testing callbacks with 3 uint64s", test_dispatch3), Case("Testing callbacks with 4 uint64s", test_dispatch4), -// IAR currently crashes at link time with this test - skip it as it's well beyond anything needed by real code -#ifndef __ICCARM__ +#if !defined(__ICCARM__) && (!defined(MBED_ROM_SIZE) || (MBED_ROM_SIZE >= TEST_MIN_REQ_ROM_SIZE)) Case("Testing callbacks with 5 uint64s", test_dispatch5), #endif #elif DO_SMALL_TEST