CHPRINTF_USE_FLOAT Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
steved
Posts: 825
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

CHPRINTF_USE_FLOAT  Topic is solved

Postby steved » Thu Apr 06, 2017 2:08 pm

It looks as if the sentiments expressed in this thread have got lost somewhere along the line - CHPRINTF_USE_FLOAT now defaults to TRUE if not specified.

While this is no major issue on the larger devices, on Cortex-M0+ it adds about 5K of code - a big deal when you only have 16K or 32K to start with! (If hard FPU is available, adding float support makes negligible difference - 200 bytes or so)

I suggest the makefile might be the most visible place to include the option - possibly default it to 'TRUE' if the FPU is present and enabled, but certainly FALSE by default in general.

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: CHPRINTF_USE_FLOAT

Postby Giovanni » Thu Apr 06, 2017 2:20 pm

Strange, it must be the unintended effect of some patch, it is FALSE in 16.1.x.

Fixed.

Giovanni

steved
Posts: 825
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: CHPRINTF_USE_FLOAT

Postby steved » Tue Oct 03, 2017 8:53 pm

Looks like this has crept back in 17.6.2

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: CHPRINTF_USE_FLOAT

Postby Giovanni » Tue Oct 03, 2017 9:18 pm

Too late for 17.6.2, it will go in the next one.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: CHPRINTF_USE_FLOAT

Postby Giovanni » Wed Oct 04, 2017 10:25 am

Fixed as bug #890.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 23 guests