- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everone!
I have same problem as a lot of body but every solves are for old program (such as ARM GCC 4.7)
float ex1 = 1.232;
int ex2= 123;
char exchar[30];
sprintf(exchar,"Testing: %f",ex1);
this printing on LCD Testing:
but
sprintf(exchar,"Testing: %d",ex2);
this printing on LCD Testing: 123
How can I fix this
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check this KBA:
Floating-Point Support for PRINTF and SCANF in GNU Arm Compiler - KBA89724
Make sure that the heap size required to support sprintf and sscanf is set in your project (.cydwr > System > Heap Size). The default value is 0x80, which will not be enough to support these functions. You can change it to a higher value such as 0x1000.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check this KBA:
Floating-Point Support for PRINTF and SCANF in GNU Arm Compiler - KBA89724
Make sure that the heap size required to support sprintf and sscanf is set in your project (.cydwr > System > Heap Size). The default value is 0x80, which will not be enough to support these functions. You can change it to a higher value such as 0x1000.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you so much
but what is the .cydwr? , Where can i find it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here you can find it->
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh! Thank you so much man
I'm thankfull to you it is worked So i made my project %30 because of you ❤️