Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 8 months ago.
Greentea test :tests-mbed_drivers-c_string
In "Target.Json" we are adding "default_lib": "small", due to our device has limited RAM. After adding small lib as default library,one test case is failing in GCC_ARM
in greentea test case " tests-mbed_drivers-c_strings"is failing..
is it a limitation of GCC_ARM or bug in mebd-OS ? please confirm
C strings: %f %f float formatting FAILing
1 Answer
7 years, 8 months ago.
When using default_lib as small in targets.json for GCC_ARM this links using newlib-nano instead of newlib. By default newlib-nano doesn't support floating point but these can be enabled with additional command line flags.
This link should help you enable float, otherwise I think the test failing is the expected behaviour. https://answers.launchpad.net/gcc-arm-embedded/+question/245658