Skip to content

Commit 4f6efb2

Browse files
committed
Greentea: Fix flash overflown issue in callback_big test
- The "Callback_big" greentea test has six test cases that require a minimum above 36kb ROM to build all test cases. LPC1114 target has only 32KB ROM memory, so the limit number of test cases to build with ROM size minimum check to include 6th test case. Note: In LPC1114 target, callback_big test has ROM overflow build issue for both Mbed CLI1 and CLI2.
1 parent 756830e commit 4f6efb2

File tree

1 file changed

+4
-2
lines changed
  • platform/tests/TESTS/mbed_functional/callback

1 file changed

+4
-2
lines changed

platform/tests/TESTS/mbed_functional/callback/main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include "utest.h"
2121
#include <mstd_functional>
2222

23+
#define TEST_MIN_REQ_ROM_SIZE (36 * 1024)
24+
2325
using namespace utest::v1;
2426

2527
template <typename T>
@@ -884,10 +886,10 @@ Case cases[] = {
884886
Case("Testing callbacks with 2 uint64s", test_dispatch2<uint64_t>),
885887
Case("Testing callbacks with 3 uint64s", test_dispatch3<uint64_t>),
886888
Case("Testing callbacks with 4 uint64s", test_dispatch4<uint64_t>),
887-
// IAR currently crashes at link time with this test - skip it as it's well beyond anything needed by real code
888-
#ifndef __ICCARM__
889+
#if !defined(__ICCARM__) && defined(MBED_ROM_SIZE) && (MBED_ROM_SIZE >= TEST_MIN_REQ_ROM_SIZE)
889890
Case("Testing callbacks with 5 uint64s", test_dispatch5<uint64_t>),
890891
#endif
892+
//#endif
891893
#elif DO_SMALL_TEST
892894
Case("Testing callbacks with 0 uchars", test_dispatch0<unsigned char>),
893895
Case("Testing callbacks with 1 uchars", test_dispatch1<unsigned char>),

0 commit comments

Comments
 (0)