Flashing micropython to NUCLEO-L476RG

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
hybotics
Posts: 33
Joined: Tue Apr 03, 2018 2:58 am
Contact:

Flashing micropython to NUCLEO-L476RG

Post by hybotics » Wed Oct 27, 2021 9:41 am

Hi,

I have the file NUCLEO_L476RG-20210902-v1.17.dfu which I would like to flash to my NUCLEO-L476RG board. However, I think I can only flash a .bin file. I flashed a *.bin from MBED and it worked great! How can I convert this *.dfu file to a *.bin I can flash to my board?
The command I use to flash the MBED file to my board is

Code: Select all

st-flash write mbed_blinky.NUCLEO_L476RG.bin 0x08000000
which does work, so I know that I can flash at least some *.bin files successfully.

I have tried many things from the net to convert this *.dfu file to a *.bin, including

Code: Select all

dfu.py -d NUCLEO_L476RG-20210902-v1.17.dfu
which gives me one file called NUCLEO_L476RG-20210902-v1.17.dfu.target0.image0.bin. If I try to flash that file using the same parameters I used to flash the MBED file:

Code: Select all

st-flash write NUCLEO_L476RG-20210902-v1.17.dfu.target0.image0.bin 0x08000000
I do not think it works because I can not access the REPL using

Code: Select all

screen /dev/ttyACM0 115200
I think I must be missing something but do not know what that is. What is it I am missing?

8-Dale

Post Reply