These are chat archives for esp8266/Arduino

28th
Aug 2015
Kiril Zyapkov
@kzyapkov
Aug 28 2015 10:22
I'm seeing a lot of crashes, wdt resets and general flakiness when using Serial.setDebugOutput(true); Is this known?
Anwar Hahj Jefferson-George
@anwarhahjjeffersongeorge
Aug 28 2015 10:26
@kzyapkov hi. what kind of flakiness do you observe? do you have more details? i was advised to use the stack trace and the xtensa-lx106-elf-objdump tool to see where the code was causing reset issues
maybe it will work for you?
Kiril Zyapkov
@kzyapkov
Aug 28 2015 10:28
I'm bootstrapping a new project (using web server and simple GPIO) and haven't dug deep yet, but crashes occur at seemingly random addresses, all over the place, only with the SDK debug output enabled
actually, wdt reset is what I see most often
Anwar Hahj Jefferson-George
@anwarhahjjeffersongeorge
Aug 28 2015 10:39
@kzyapkov I'm not sure about this. I do know that sometimes I seem to get resets when doing stuff with i2s and setdebugoutput true. Do yours happen at random steps in your code's execution, or just at random addresses?
maybe this esp8266/Arduino#555 issue will help you distinguish whether your resets are hardware or software and you can go from there.
Kiril Zyapkov
@kzyapkov
Aug 28 2015 10:46
ok, so any time I do digitalWrite() from within a web handler: ets Jan 8 2013,rst cause:4, boot mode:(1,6), that's only when Serial.setDebugOutput(true);
Anwar Hahj Jefferson-George
@anwarhahjjeffersongeorge
Aug 28 2015 10:52
do you get also the line wdt reset
also, when you dont have Serial.setDebugOutput(true); does the digitalWrite() call behave as expected?
Kiril Zyapkov
@kzyapkov
Aug 28 2015 10:58
the call goes through, but the web handler never returns, then I get the watchdog reset. this smells like an issue with the os_install_putc and its implementation, but I have no idea how to trace it.
Anwar Hahj Jefferson-George
@anwarhahjjeffersongeorge
Aug 28 2015 11:10
sorry I don't know about that. all I could suggest is to try looking at the scope of your handler when it's making the call and see if making the exact same call from a differently-scoped function makes a difference, like if the problem arises because the handler is being passed through a callback or function pointer currently.
tzapu
@tzapu
Aug 28 2015 13:10
hi guys, is there a way to use a more recent build than the staging one? without building the ide and whatnot as i couldn t get that to work
Kiril Zyapkov
@kzyapkov
Aug 28 2015 13:20
just checkout the github repo and build from source
tzapu
@tzapu
Aug 28 2015 13:27
cheers, having some issues with that on os x
Kiril Zyapkov
@kzyapkov
Aug 28 2015 13:27
yeah, I loved my mac pro, hated os x
d-anders
@d-anders
Aug 28 2015 13:40
try setting a flag and then writing from the main loop and see if it makes a difference
tzapu
@tzapu
Aug 28 2015 13:43
seems i was able to compile it, it was the 1.8 jdk that was missing. do i need to remove completly my current arduino together with the libraries and whatever else it installs through the board manager to have the newly built one use it s libraries and examples ?