[NUCLEO-L476RG] How to compile main.py and send to board

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
jonathan
Posts: 2
Joined: Wed Oct 28, 2020 5:31 pm

[NUCLEO-L476RG] How to compile main.py and send to board

Post by jonathan » Wed Oct 28, 2020 5:35 pm

Maybe I'm missing something simple, but I am having a difficult time figuring out how to compile a custom main.py and flash it to my STM32 NUCLEO-L476RG board.

I have successfully flashed MicroPython onto the board, and can access the board via PicoCom or a similar terminal program, but I do not know how to upload a main.py I wrote on my computer to the board.

Can anyone provide some guidance please?

User avatar
MostlyHarmless
Posts: 163
Joined: Thu Nov 21, 2019 6:25 pm
Location: Pennsylvania, USA

Re: [NUCLEO-L476RG] How to compile main.py and send to board

Post by MostlyHarmless » Wed Oct 28, 2020 9:53 pm

To do it via USB you can use ampy (the Arduino Micropython tool). The link contains instructions how to install and basic usage. Make sure you exit picocom while using ampy to upload/download files.


Regards, Jan

User avatar
jimmo
Posts: 2015
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: [NUCLEO-L476RG] How to compile main.py and send to board

Post by jimmo » Wed Oct 28, 2020 11:44 pm

Looks like this is a duplicate thread. Please see my reply here -- viewtopic.php?f=12&t=9221&p=51898#p51898

Post Reply