Created Sun, 10 Feb 2013 06:46:54 +0000 by RobertCarlRice
Sun, 10 Feb 2013 06:46:54 +0000
I have a Sketch that parses floating point numbers using sscanf. It was working until recently when I tried to update my MPIDE application.
I read that floating point support is an option for MPIDE. If so, where would I find an OS X MPIDE download that supports floating point?
Thanks, Bob Rice
Tue, 12 Feb 2013 16:57:50 +0000
It should just work, however there is an error in the boards.txt file in a release of MPIDE that breaks floating point. All that is needed is that the file be updated with the latest version. See this issue:
https://github.com/chipKIT32/chipKIT32-MAX/issues/283
Jacob
Wed, 13 Feb 2013 00:44:01 +0000
Thanks for the reply,
I don't understand how to use the compiler flags, but I was able to fix my problem by downloading a version of MPIDE for OS X built before NewLib, i.e., version 20120122. So something in the NewLib settings breaks sscanf conversion of floating point numbers on the UNO32.
Bob Rice
Wed, 13 Feb 2013 00:52:38 +0000
I think rhe issue is new lib expexts 64 bit floats and without the compiler switch added it compiles with short floats.
I've made the fix myself just by pulling the latest boards.txt file from github.
Jacob