main.py update gracefully? #13093
Replies: 5 comments 1 reply
-
Skip Thonny for that task, use mpremote. |
Beta Was this translation helpful? Give feedback.
-
it looks like the socket accept() messes thing up. When I take that out, it exits normally. |
Beta Was this translation helpful? Give feedback.
-
surely something todo with settimeout to a non zero value.. |
Beta Was this translation helpful? Give feedback.
-
timeout to zero solved it. |
Beta Was this translation helpful? Give feedback.
-
I finally installed and learned about mpremote. Best advise, that works a charm! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
Ive got a W5100-evb-pico running. Developing with thonny. All is well.
When I copy main.py to the module is runs fine.
Only when I want to update the main.py I cannot get REPL to work. at button press it exits and shows :>> in thonny (as expected)
But then a second later it gives: Connection lost -- EOF Use Stop/Restart to reconnect. Process ended with exit code 1.
and the comport is closed again!
The only way to recover is nuke it and reprogramm the module.
Is there a way to avoid this full reprogramm??
MicroPython v1.21.0 on 2023-10-06 and W5100S_EVB_PICO-20231005-v1.21.0.uf2 is used.
regards,
Chris from holland
Beta Was this translation helpful? Give feedback.
All reactions