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

Accepted Answer

Thank you for the valuable information.

posted by Arun KR 18 Apr 2017