Closed lonedevwolf closed 6 years ago
@lonedevwolf when you opened the issue, you were presented with a template requesting specific information. You pretty much ignored it in its entirety. Please edit your post and add the missing info. Also, please use markup for the sketch. It's a matter of just selecting the lines and clicking on the button that says "code".
I solved the problem and edited the post, you can mark it as solved. I'm sorry for the template and code as it is my first time using github.
@lonedevwolf are you using latest git? If not, can you test with that (instructions are readthedocs). Can you provide a minimal sketch that shows that using interrupts crashes wificlient?
The code that causes the crash is in my first post, after a lot of fiddling i found that i haven't solved the problem. As it stands i hit i brick wall and any help is appreciated
Did you test with latest git instead of 2.4 release?
i just tried it with 2.4-r2 ,2.4-r1 and 2.4 still doesn't work, i was working on 2.3, on 2.3 it works for a while and then crashed but on 2.4 it crashes immediately :(
@lonedevwolf again, did you test with LATEST GIT? You keep mentioning release versions that are installed via the IDE board manager. Latest git is NOT installed via the board manager. Latest git is the current state of the master branch of this repo, and requires manual installation. It has several fixes that were merged after 2.4 release, some of which could be relevant.
i have an esp 12e connected to the P10 led displays and im driving it with the DMD2 library, i just pull the string from a server and then display it on the display. and everything works, unless you call Wificlient.connect and the connection fails. then the esp crashes
this is the exception Exception (0): epc1=0x402089b0 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: sys sp: 3ffffc50 end: 3fffffb0 offset: 01a0
and this is the stripped out version of the sketch
you dont even need a led panel to reproduce the error, everything works if there is a server to connect to, if not the esp crashes.
EDIT:
I solved the issue, it turns out that WifiClient crashes when you use a library that uses interrupts, i saw a thread about it here https://github.com/esp8266/Arduino/issues/1020, The solution was to call dmd.end() and instantiate a new WiFiClient before making any calls to servers.