Page 1 of 1

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

Posted: Wed Oct 28, 2020 5:35 pm
by jonathan
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?

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

Posted: Wed Oct 28, 2020 9:53 pm
by MostlyHarmless
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

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

Posted: Wed Oct 28, 2020 11:44 pm
by jimmo
Looks like this is a duplicate thread. Please see my reply here -- viewtopic.php?f=12&t=9221&p=51898#p51898