[NUCLEO/STM32F429ZI] How to flash and how to access the REPL

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
rpr
Posts: 86
Joined: Sat Oct 27, 2018 5:17 pm

[NUCLEO/STM32F429ZI] How to flash and how to access the REPL

Post by rpr » Fri Jan 01, 2021 11:31 pm

I just got the STM32F429ZI NUCLEO board. I have been using ESP32s with micropython but this is the first time I'm using a Nucleo board and the STM32 system. This is a sort of guide for idiots like me to get started with this board and possibly others like this.

1. Download the micropython firmware:
a. There is a dfu file for this board at http://micropython.org/download/stm32/

2. Flash the above firmware:
a. Connect to the USB st-link port on the board
b. This is the post I followed (by @dhylands ) for the procedure: viewtopic.php?f=12&t=9386&p=52946&hilit=nucleo#p52946

3. Access the repl.
a. Leave the ST-link USB connected as it is needed for power to the board.
b. Connect another USB cable to the USER USB(OTG) port on the device
c. Use rshell and other such tools to access the repl.

4. How to erase and remove micropython:
a. st-flash erase

rpr
Posts: 86
Joined: Sat Oct 27, 2018 5:17 pm

Re: [NUCLEO/STM32F429ZI] How to flash and how to access the REPL

Post by rpr » Sat Jan 02, 2021 2:48 am

Can one access the repl from the usb st-link?

I am on a Mac. The device is at /dev/cu.usbmodem14103

-- rshell does not connect
-- Screen and miniterm.py connect intermittently and I see the prompt but cannot type anything

Post Reply