float printing is not working with USBUART -PSOC5LP

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
imdzac
Level 1
Level 1
5 sign-ins First reply posted First question asked

BOARD :PSOC5LP , CY8CKIT-059, float printing is not working with USB-UART -PSOC5LP

 

CODE :

sprintf(charbuf,"%f\n",adc_volt) //adc_volt is float, charbuf is array
USBUART_1_PutString(charbuf);

OUTPUT : Null

 

0 Likes
1 Solution

imdzac,

The solution proposed in the link has nothing to do with UART or USBUART.

It has all t do with solving your float issue with the sprintf().

Please try it.

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

0 Likes
4 Replies
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

imdzac,

Refer to the solution in this link:  Unable-to-print-float-using-uart 

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
imdzac
Level 1
Level 1
5 sign-ins First reply posted First question asked

Please note that my question is related to USBUART and not for UART.

My question is still not answered please.

0 Likes

imdzac,

The solution proposed in the link has nothing to do with UART or USBUART.

It has all t do with solving your float issue with the sprintf().

Please try it.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
imdzac
Level 1
Level 1
5 sign-ins First reply posted First question asked

Thanks for your suggestions

0 Likes