Anonymous
Not applicable
Jul 03, 2016
09:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 03, 2016
09:56 PM
Hi there,
I try to use
sprintf (My_String, "%f ;", longitudeDegrees);
UART_PutString(My_String);
but this doesn't work.
sprintf (My_String, "%d ;", counter);
UART_PutString(My_String);
but this one is working. i think there a problem with convert from flaot to string. I am using PSoC Creator 3.3, ARM GCC 4.9-2015-q1-update, and PSoC 5 LP.
Could you help me with this problem? Thanks
Solved! Go to Solution.
Labels
- Labels:
-
PSoC 5LP
1 Solution
Jul 03, 2016
11:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 03, 2016
11:51 PM
Hi Peter!
Set "Heap Size" to 0x0200 (in cydwr view, system tab)
Set "Use newlib-nano float formatting" to true (in Project->Build Settings -> Linker)
This should work Creator 3.3
Happy coding
Bob
3 Replies