Closed nathansizemore closed 7 years ago
can you provide me with a github repo i could clone and test it myself.
haven't had any issues with my own projects.
I confirm i can compile and upload a code with delay()
and it works (if that was the problem).
i think your issue, from what i've seen is that you return 0;
at the end of your main()
so your program just stops.
Okay, I found the error.
First off, you need to init()
when just using main()
. Second, your delay was too short between the past print and the return.
So here you go:
#include <Arduino.h>
int main(void) {
init();
Serial.begin(115200);
delay(100);
Serial.println("asdf1");
delay(10);
Serial.println("asdf2");
delay(10);
return 0;
}
Thanks!
Original, mis-filed issue.
I'm assuming this is also the case for any GCC above 4.9, but have only confirmed with 6.1 and 6.2.
See original issue for details of makefile and such.
Toolchain recreation info:
Installed Versions
binutils configuration
gcc configuration
(After gmp and friends placed in tree)
libc configuration