This page describes how to program a NUCLEO development board with the stmdsp firmware using a Windows computer.
Note: The development board can be programmed through stmdspgui. See the Updating device firmware page for instructions.
Get prerequisites
OpenOCD is used to send the firmware to the development board.
Download the latest win32-x64
ZIP from here: https://github.com/xpack-dev-tools/openocd-xpack/releases/
Zadig is used to install the required serial USB drivers.
Download the latest EXE from here: https://github.com/pbatard/libwdi/releases
Get stmdsp files
First, download the latest release firmware: https://code.bitgloo.com/clyne/stmdsp/releases
Also download openocd.cfg
: https://code.bitgloo.com/clyne/stmdsp/src/branch/master/openocd.cfg
Place both of these files in the OpenOCD bin
folder.
Driver installation
Plug in your NUCLEO-L476RG development board. Next, run Zadig: it should list the board as a device, and show that no driver is currently installed. Select the WinUSB driver, then click Install.
Zadig will not be needed again after installation completes.
Upload firmware and connect add-on board
Open command prompt (search "cmd" in the Start menu) and cd
to the OpenOCD bin
folder.
Run this command: openocd -f openocd.cfg -c "program firmware.hex verify reset exit"
.
After the firmware is uploaded, switch JP5 (next to the reset button) from U5V to E5V. Then, plug the add-on board in and use the device through the add-on board's USB connector.