What all is necessary to get floating point working?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What all is necessary to get floating point working?

Jump to solution
635 Views
manasvb
Contributor III

Hi,

Am using LPC55s69 EVK board, with Free-Rtos and floating point `FPv5-SP-D16 (Hard ABI)`.

In the FreeRtosConfig.h I have set this macro `configENABLE_FPU` to 1.

Basically I want to display floating numbers sent via UART.

I am storing my float number and the info that I want to send in a uint8_t buffer[], using sprintf, something like this

sprintf(buffer,"Float data:%f\r\n",3.14);

And using USART functions I send this buffer.

 

But on serial monitor I observe

Float data: 
ie(Float data: and whitespace(0x20)

 

How to solve this issue

Labels (1)
0 Kudos
Reply
1 Solution
583 Views
manasvb
Contributor III
0 Kudos
Reply
2 Replies
584 Views
manasvb
Contributor III
0 Kudos
Reply
618 Views
ErichStyger
Specialist I

depending on your library used, you have to enable floating point support for the library, e.g.

ErichStyger_0-1690199380097.png

 

 

0 Kudos
Reply