Call reset()
before uploading code
#5785
Replies: 1 comment
-
Posted at 2017-07-24 by dave_irvine Huh, just found this but its already ticked. Attachments: Posted at 2017-07-24 by @gfwilliams That's strange - and you running with The IDE actually does run a 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 Posted at 2017-07-24 by @gfwilliams Beat me to it! You can check in the 'console' menu item as well, and you should hopefully see it mentions |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-07-24 by dave_irvine
Probably another of my edge cases, but if I have an Interval set in my code of about 100ms or so, and then try to upload new code to my Espruino WiFi I can quite often get the Espruino and the IDE stuck, the upload progress bar is about 1/16th in, the Espruino is otherwise unresponsive and I have to unplug and replug.
However if I connect, run
reset()
and then upload new code, everything works.Could the code upload function run
reset()
by itself? Or otherwise interrupt the running program before it tries to upload?Beta Was this translation helpful? Give feedback.
All reactions