That's strange - and you running with Save on send turned on, or off (the default)?
The IDE actually does run a reset() before upload - unless it's been turned off? Try checking settings -> communications -> reset before send. If that's off it could cause all kinds of problems!
I guess perhaps the code you've uploaded has functions that take a long time to execute... Espruino usually gives it ~250ms to reset, but if your function runs for a full second before leaving then it's possible the Wifi board won't have reset by the time code starts getting uploaded.
The IDE also tries to send Ctrl-C if it's not getting a response, which should help to break out of whatever is running... You could try doing that manually and seeing if it helps after the board has become unresponsive
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
That's strange - and you running with
Save on send
turned on, or off (the default)?The IDE actually does run a
reset()
before upload - unless it's been turned off? Try checkingsettings -> communications -> reset before send
. If that's off it could cause all kinds of problems!I guess perhaps the code you've uploaded has functions that take a long time to execute... Espruino usually gives it ~250ms to reset, but if your function runs for a full second before leaving then it's possible the Wifi board won't have reset by the time code starts getting uploaded.
The IDE also tries to send
Ctrl-C
if it's not getting a response, which should help to break out of whatever is running... You could try doing that manually and seeing if it helps after the board has become unresponsive