23711 views|6 replies

9721

Posts

24

Resources
The OP
 

Solution for not being able to use sprintf to output float when debugging PSoC6 using PSoC Creator [Copy link]

When using CY8CKIT-062-BLE PSoC 6 BLE Pioneer Kit to test temperature and humidity, use sprintf to convert float into string. The temperature and humidity have been measured, but all printed out using sprintf are 0 I encountered this problem before when using IAR, but I don’t use PSoC Creator much. It took me a lot of effort to find the settings. Finally, I found a setting called Use newlib-nano Float Formatting in the Linker of the corresponding processor core in the project’s Build Settings. I changed the setting to True and the problem was solved I looked at several official projects, and all the defaults were False. I’m not sure why this happened. In short, if you want to use sprintf to print floating points, just change the settings above
This post is from MCU

Latest reply

Thanks for sharing, Happy New Year! I wish you a smooth work and a successful promotion in the new year!  Details Published on 2018-1-1 22:14
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 

4177

Posts

9

Resources
2
 
This post was last edited by huaiqiao on 2017-12-22 09:49 Brother Xia is really good at playing. However, for the Double 11 event, I wish you (the host) a happy Double 11 and all the best in 2018. O(∩_∩)O Haha~
This post is from MCU

Comments

Happy Double Holidays  Details Published on 2017-12-22 22:55
 
 

208

Posts

0

Resources
3
 
Thank you for sharing. I wish you a happy Christmas and a smooth work!
This post is from MCU

Comments

Happy Double Holidays, thank you  Details Published on 2017-12-22 22:56
 
 
 

9721

Posts

24

Resources
4
 
huaiqiao posted on 2017-12-22 09:47 Brother Xia is really good at playing. However, for the Double Holidays event, I wish you (the host) a happy Double Holidays and all the best in 2018. O(∩_∩)O Haha~
Happy Double Holidays
This post is from MCU
 
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 

9721

Posts

24

Resources
5
 
yangweiping2011 posted on 2017-12-22 13:00 Thank you for sharing, I wish you a happy Double Day and a smooth work!
Happy Double Day, thank you
This post is from MCU
 
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 

2

Posts

0

Resources
6
 
Happy Double Holidays to the host
This post is from MCU
 
 
 

120

Posts

0

Resources
7
 
Thanks for sharing, Happy New Year! I wish you a smooth work and a successful promotion in the new year!
This post is from MCU
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list