Skip to content

Commit fc2a710

Browse files
authored
Merge pull request #12068 from rajkan01/feature_bare_metal
Enabling small C library option and deprecating uARM toolchain
2 parents 4feca59 + 6a8c432 commit fc2a710

File tree

44 files changed

+894
-291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+894
-291
lines changed

TESTS/configs/baremetal.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,24 @@
3737
"target_overrides": {
3838
"*": {
3939
"mbed-trace.fea-ipv6": false
40+
},
41+
"K64F": {
42+
"target.default_lib": "small"
43+
},
44+
"K66F": {
45+
"target.default_lib": "small"
46+
},
47+
"NUCLEO_F303RE": {
48+
"target.default_lib": "small"
49+
},
50+
"NUCLEO_F411RE": {
51+
"target.default_lib": "small"
52+
},
53+
"NUCLEO_F429ZI": {
54+
"target.default_lib": "small"
55+
},
56+
"DISCO_L475VG_IOT01A": {
57+
"target.default_lib": "small"
4058
}
4159
}
4260
}

TESTS/mbed_drivers/c_strings/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ void test_case_c_string_x_X()
5454
TEST_ASSERT_EQUAL_STRING("8000 C8E 3e7 64 1 0 1 1087 3e7 101B 7ff8 1869F", buffer);
5555
}
5656

57+
#if !defined(__NEWLIB_NANO)
5758
void test_case_c_string_f_f()
5859
{
5960
CLEAN_BUFFER;
@@ -74,6 +75,7 @@ void test_case_c_string_e_E()
7475
sprintf(buffer, "%e %E %e %E %e %E %e %E %e %E %e", FLOATS);
7576
TEST_ASSERT_EQUAL_STRING("2.000000e-03 9.243000E-01 1.591320e+01 7.917737E+02 6.208200e+03 2.571950E+04 4.268160e+05 6.429271E+06 4.246802e+07 2.120065E+08 6.579048e+03", buffer);
7677
}
78+
#endif
7779

7880
void test_case_c_string_strtok()
7981
{
@@ -113,11 +115,15 @@ Case cases[] = {
113115
Case("C strings: %i %d integer formatting", test_case_c_string_i_d, greentea_failure_handler),
114116
Case("C strings: %u %d integer formatting", test_case_c_string_u_d, greentea_failure_handler),
115117
Case("C strings: %x %E integer formatting", test_case_c_string_x_X, greentea_failure_handler),
118+
#if !defined(__NEWLIB_NANO)
119+
//In build tools, GCC with Newlib-nano linker option "-u _printf_float" is not configured
120+
//to enable printf floating format. So disabling floating format test case.
116121
Case("C strings: %f %f float formatting", test_case_c_string_f_f, greentea_failure_handler),
117122
#ifndef MBED_MINIMAL_PRINTF
118123
Case("C strings: %e %E float formatting", test_case_c_string_e_E, greentea_failure_handler),
119124
Case("C strings: %g %g float formatting", test_case_c_string_g_g, greentea_failure_handler),
120125
#endif
126+
#endif
121127
};
122128

123129
utest::v1::status_t greentea_test_setup(const size_t number_of_cases)

0 commit comments

Comments
 (0)