Installing uPython on Nucleo STM32H743 (version 2 guide, no soldering or wiring)
Posted: Fri Mar 26, 2021 11:45 pm
I noticed a couple things while installing micropython on my last H743 board that got me thinking about things that lead to this guide. This guide requires no soldering or wiring unlike the last guide. This may work on other Nucleo boards, you'll just have to test it to see.
-First go to https://my.st.com/content/my_st_com/en/ ... ols-page=1 and download and install Dfuse. This will install a program called "dfu file manager" that will turn a dfu firmware file you download from micropython.org into a .bin file that you can use with ST-Link to program your Nucleo.
-Download firmware for your Nucleo board from micropython.org.
-Open "Dfu file manager" (it was under "STMicroelectronics folder" in programs)
-Select "I want to EXTRACT S19, HEX or BIN files from a DFU one."
-Browse for and select the upython DFU file you want to use and click the "HEX" radio button. It will save the file in the same directory the DFU file was in.
-Download and install the ST-Link utility from https://www.st.com/en/development-tools ... nk004.html
-Make sure your Nucleo board is plugged into your computer at this point.
-When I installed it I had to click the desktop link to start ST-Link as I didn't have it under my ST programs folder. Regardless, find ST-Link utility and start it.
-Open ST-Link utility, and once it opens click "Target" on the menu bar then "Program & Verify..."
-In the "File path" box select your BIN file that we made earlier.
-On the "flash erase" and "verification" you're on your own. I left them as they were.
-Click "start". It should program the BIN file. Unfortunately, as it is a Friday and I get thirsty on Fridays, I thought the red text in the log window was an error. Make sure to read what it says BEFORE the red text. When flashing is complete the board will reset causing the red text that informs you the device has disconnected. Disconnecting is normal during a reset.
-Go into device manager and find out what COM port your Nucleo board is on, start up a serial program and connect to the com port at 115200 and hit enter a couple times. You should see a REPL prompt ">>>"
-First go to https://my.st.com/content/my_st_com/en/ ... ols-page=1 and download and install Dfuse. This will install a program called "dfu file manager" that will turn a dfu firmware file you download from micropython.org into a .bin file that you can use with ST-Link to program your Nucleo.
-Download firmware for your Nucleo board from micropython.org.
-Open "Dfu file manager" (it was under "STMicroelectronics folder" in programs)
-Select "I want to EXTRACT S19, HEX or BIN files from a DFU one."
-Browse for and select the upython DFU file you want to use and click the "HEX" radio button. It will save the file in the same directory the DFU file was in.
-Download and install the ST-Link utility from https://www.st.com/en/development-tools ... nk004.html
-Make sure your Nucleo board is plugged into your computer at this point.
-When I installed it I had to click the desktop link to start ST-Link as I didn't have it under my ST programs folder. Regardless, find ST-Link utility and start it.
-Open ST-Link utility, and once it opens click "Target" on the menu bar then "Program & Verify..."
-In the "File path" box select your BIN file that we made earlier.
-On the "flash erase" and "verification" you're on your own. I left them as they were.
-Click "start". It should program the BIN file. Unfortunately, as it is a Friday and I get thirsty on Fridays, I thought the red text in the log window was an error. Make sure to read what it says BEFORE the red text. When flashing is complete the board will reset causing the red text that informs you the device has disconnected. Disconnecting is normal during a reset.
-Go into device manager and find out what COM port your Nucleo board is on, start up a serial program and connect to the com port at 115200 and hit enter a couple times. You should see a REPL prompt ">>>"