Everything works as expected and I see “hello world” from my screen session. However, if I uncomment the line that prints the floating point number, my core crashes with the flashing red S.O.S. light.
What’s going on? I thought Serial.println() supports floating numbers?
I’m compiling and flashing locally, using the core-firmware libraries from GitHub.
Have you tried println(1.23456, 2);?
The docs mention this as a way to set the decimal digits (e.g 1.23 for the above).
But for me your sample works fine, too.
Yes, I tried adding the decimal place argument, but the program still crashes. I’m using the master branch from GitHub, sync’ed just few hours before I created this post.
When you say that the sample works for you, did you compile and flash locally or from the web IDE?
Jung, could this be a gcc issue, perhaps the wrong version or the search path is pointing to a different gcc installation on your PC? Try your code on the web IDE just to prove to yourself it works then start looking at your local installation to see if you have any conflicts.
@jung I wonder — are you using the compile-server2 branch in all 3 repos: core-firmware, core-common-lib, core-communication-lib? Have you done a git pull in all three repos?