nkopp 0 Posted December 26, 2016 Share Posted December 26, 2016 I have a large sketch in Energia for the CC3200 LaunchXL. Sometimes sprintf does weird things. For example,this code... char buffer; sprintf(buffer, "%f, %f, %f, %d", 1.0, 2.0, 3.0, 4); Serial.println(buffer); sometimes produces this result: 0.000000, 0.000000, 0.000000, 536966100 This looks incorrect to me. There seems to be a pretty significant bug in the Energia+CC3200 implementation of sprintf. It seems that the size of global variables or maybe the stack might be an influencing factor, but I really can't figure it out. Any ideas for how to fix this? (Note: cross-posted here: https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc31xx_cc32xx/f/968/t/563841) Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.