- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
ispn:39618:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
imdzac,
Refer to the solution in this link: Unable-to-print-float-using-uart
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please note that my question is related to USBUART and not for UART.
My question is still not answered please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your suggestions