Clearer instructions for getting file loaded onto board for auto start at boot #16212
Replies: 9 comments 1 reply
-
I'd say, the (by far) easiest way is to just copy main.py to the pico. |
Beta Was this translation helpful? Give feedback.
-
The official tool for uploading files is mpremote: You would have to ask on thonny forums for support on that tool, it's not written by the micropython team. You may also like to look at Viper IDE https://viper-ide.org/ |
Beta Was this translation helpful? Give feedback.
-
Well the Raspbery Pi foundation makes quite good documentation for the beginner with their products. If you search a little you find this document |
Beta Was this translation helpful? Give feedback.
-
On the topic of main.py and related aspects, have a look at a very informative workshop by Kevin McAleer: https://www.youtube.com/watch?v=9YvWT8bNllU. |
Beta Was this translation helpful? Give feedback.
-
I think this is a fair criticism. The beginner doc that explains |
Beta Was this translation helpful? Give feedback.
-
@peterhinch Thanks. I'd be happy to help in a rewrite. @GitHubsSilverBullet , @andrewleech , @fdufnews I'm saying for a beginner, a simple "hello world" blinky would be to take a simple example script file, run it within Thonny and have a way to "burn" it to the target (not just the pyboard). I understand that MicroPython doesn't control Thonny's interface. However, as pointed out above, an updated how-to is lacking. Asking a beginner to use CLI tools over REPL is not something I'd recommend to have a simple blinky running on a Tiny2040 independently. Yes the RaspberryPi doc mentions it so why not update it on the micropython side as well? Thanks. |
Beta Was this translation helpful? Give feedback.
-
discussed |
Beta Was this translation helpful? Give feedback.
-
FWIW I have an open PR that improves the reference documentation about the boot process, including an explanation of boot.py and main.py that was previously only documented in the tutorial for certain boards: This isn't an introductory tutorial though, so there might be some other "getting started" places that we should link it in or mention it. |
Beta Was this translation helpful? Give feedback.
-
An official beginner guide should recommend official tools (mpremote) rather than third-party IDE's. The latter present a support problem when users report problems. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I just got my RP2040 tiny and was playing around with it. After fiddling around with many settings inside Thonny, I was finally able to run an example blink script on my 2040. However, for the life of me, I couldn't figure out how to actually transfer this code permanently onto the 2040. Its so much easier with ESP8266 and VScode.
I wish someone would make it clear (somewhere in the IDE, I don't know exactly) that we have to name our file as "main.py" and then "Save onto the device".
How is a newcomer supposed to know this? I did look at some old threads: https://forum.micropython.org/viewtopic.php?t=12102
This doesn't talk about it. In another random internet website, there was some mention of a menu item saying "Device/Upload script" - But that option doesn't exist in Thonny (at least not anymore, CMIIW).
It'd save newbie developer effort if this is highlighted somewhere in the IDE and made available. After all, that's what an IDE is for.
Beta Was this translation helpful? Give feedback.
All reactions