1 year, 3 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

Comment on this question

1 Answer

1 year, 3 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.

Thank you for the valuable information.

posted by Arun KR 18 Apr 2017

To post an answer, please log in.