Downloading MicroPython Scripts.

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
amit_dav
Posts: 3
Joined: Tue Apr 20, 2021 5:02 pm

Downloading MicroPython Scripts.

Post by amit_dav » Sun Jan 16, 2022 7:51 am

Greetings!!
I need some advise! We have written a PC (Windows) utility that generates some MicroPython code and downloads the same to a device running RPI Pico. Currently the utility needs AMPY a utility from Adafruit to download the MicroPython script and run it on the RPI device. This also means the user has to download and install python to make all this work.

I need to know if there is some way to download the script over REPL and run it, without the use of AMPY. I have tried it but not succeeded. I would be grateful if anyone could point me in that direction. Any documentation?


Regards Amit

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Downloading MicroPython Scripts.

Post by dhylands » Sun Jan 16, 2022 9:17 pm

I wrote rshell https://github.com/dhylands/rshell which can be used. You can also use mpremote: https://github.com/micropython/micropyt ... s/mpremote

I've written a python program called make_files.py that you run on the host: https://github.com/dhylands/upy-example ... e_files.py it wraps files and creates a .py file that you can run on your board (intended to be used with pyboard.py) and it will write the files out to your file system.

Post Reply