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?
[NUCLEO-L476RG] How to compile main.py and send to board
- MostlyHarmless
- Posts: 166
- Joined: Thu Nov 21, 2019 6:25 pm
- Location: Pennsylvania, USA
Re: [NUCLEO-L476RG] How to compile main.py and send to board
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
Regards, Jan
Re: [NUCLEO-L476RG] How to compile main.py and send to board
Looks like this is a duplicate thread. Please see my reply here -- viewtopic.php?f=12&t=9221&p=51898#p51898