Getting Started Guide Flashing With The ST Link

From OpenMBD
< HANcoder‎ | STM32
Revision as of 08:43, 31 March 2017 by Jasonvankolfschoten (talk | contribs) (Created page with "{{HANcoder}} Downloading the software program to the flash memory of the microcontroller can be done with the help of the ST-Link. This chapter assumes the ST-Link utility is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Downloading the software program to the flash memory of the microcontroller can be done with the help of the ST-Link. This chapter assumes the ST-Link utility is already installed. If this is not the case it can be downloaded here

Software program reconfiguration

Before the software program can be flashed via the ST-Link a minor reconfiguration has to be done. This reconfiguration step can be performed entirely in the Simulink model. Open the Simulink model as described in Select Simulation -> Configuration Parameters… from the menu.
GettingStartedGuideSTM32 Reconfiguration.jpeg

In the Real-Time Workshop configuration screen, add “HANcoder_BOOTLOADER=0” to the Make command and click OK.

Now the software program is properly configured for the use without the bootloader.

Uploading the software with the ST-link

For programming the microcontroller with the ST-Link, make sure that:
• The ST-Link is connected to the Olimexino STM32 board through an ARM-JTAG-20-10 adapter from Olimex.
• The ST-Link is connected to the PC’s USB port.
• Power is supplied to the Olimexino board (in the figure with usb).

GettingStartedGuideSTM32 STlinkSetup.jpeg

Start the STM32 ST-Link utility, located in the Start Menu under All Programs\STMicroelectronics\STM32 ST-Link Utility Connect to the target by clicking the “connect” button GettingStartedGuideSTM32 ConnectButton.pngor by simply pressing “Enter”.