Upload and execute at once ? #77
-
|
Great work, thank you very much. Is it possible to start a program after an upload? I created two run configurations (upload and execute) and tried to start the upload with the option "run before launch". But the necessary reset after the upload prevents the execute. Please excuse me if I am overlooking a very simple function, dropdown -> upload -> RUN -> dropdown -> execute -> RUN requires quite a few clicks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
The intended way for the upload run configurations to be used is for you to have logic that starts your code (your main loop) in the "main.py" file, which gets executed every time the MicroPython device starts up by the MicroPython port. With the reset on success upload option enabled in the run configuration's settings, you'll upload your code to the device and start it right away in one click. If you have a reason to not use main.py, then using an execute and upload run configuration and chaining them in before launch tasks is the only way to achieve the same one click behavior. It's unlikely that the device reset should interfere with this (it can also be disabled by unchecking reset on success). There's an issue with this plugin's run configurations if they are set as before launch tasks - this problem will be addressed in one of the upcoming releases. |
Beta Was this translation helpful? Give feedback.
-
|
Sometimes you can't see the forest for the trees. Due to my previous workflow, I was so fixated on executing after uploading that the most obvious solution didn't even occur to me. Great tool, thank you very much! |
Beta Was this translation helpful? Give feedback.
The intended way for the upload run configurations to be used is for you to have logic that starts your code (your main loop) in the "main.py" file, which gets executed every time the MicroPython device starts up by the MicroPython port.
With the reset on success upload option enabled in the run configuration's settings, you'll upload your code to the device and start it right away in one click.
If you have a reason to not use main.py, then using an execute and upload run configuration and chaining them in before launch tasks is the only way to achieve the same one click behavior.
It's unlikely that the device reset should interfere with this (it can also be disabled by unchecking reset o…