scientifichackers / ampy

MicroPython Tool - Utility to interact with a MicroPython board over a serial connection.
MIT License
723 stars 157 forks source link

new feature: add a STOP command #120

Closed massimosala closed 1 year ago

massimosala commented 1 year ago

Hi

I have to send to the micro many files. On the micro there is a running program, quite cpu intensive.

Problem: most of the times, the PUT command takes a very long time or stalls.

Actual solution: before sending the files, I delete the main program and reset the micro. It restarts "idle" and uploading the files runs quite fast.

I see there is a RUN command. Proposal: is it possible to have also a STOP ?

Rationale: I think it is useful and probably resolves this issue: before uploading the files, I request a STOP.

Best regards, Massimo

massimosala commented 1 year ago

I solved sending a RESET before PUTting the files.