How to flash firmware: Difference between revisions
No edit summary |
|||
Line 22: | Line 22: | ||
== First-Time Flashing == | == First-Time Flashing == | ||
If your v3.x STorM32 board has not yet been flashed with a firmware, or runs a | If your v3.x STorM32 board has not yet been flashed with a STorM32 firmware, or runs a different firmware, then one needs to resort to grass roots flashing methods for flashing the firmware (first-time flashing). | ||
==== General Comments on the First-Time Flashing Process ==== | |||
In general, the STM32 micro-controllers which are used in the STorM32 boards provide two different in-built methods for flashing firmware: | |||
# the serial system bootloader via the UART port using a USB-TTL adapter | |||
# via SWD using a ST-Link programmer | |||
For v3.x boards method (1) is relatively convenient, since these boards have a USB-TTL adapter integrated and thus no additional hardware is needed for doing this method. However, the grain of salt, the BOOT0 pin needs to be temporarily shortened to GND, e.g., by closing the solder pad. | |||
Method (2) requires a dedicated ST-Link programmer as additional hardware. It is cheaply available, but nevertheless it is an additional piece of hardware, which one needs. | |||
==== Flashing via System Bootloader ==== | |||
==== Flashing via SWD ==== | |||
This procedure is exactly identical for all STorM32 hardware (v1.x and v3.x boards and NT modules). It is described here [[How_to_flash_v1.x_STorM32_boards#Flashing_Firmware_using_a_STLink.2FV2_.28SWD.29_Programmer | Flashing Firmware using a STLink/V2 (SWD) Programmer]]. |
Revision as of 07:58, 23 April 2018
This page is for instructions on how to flash firmware onto v3.x STorM32 boards.
For instructions on how to flash v1.1/v1.2/v1.3/v1.3x STorM32 boards, please consult How to flash v1.x STorM32 boards.
The flashing manual is different for the v3.x and v1.x boards because the v3.x boards can be upgraded via the USB plug, which is not possible with the v1.x boards. For the v3.x boards in fact two situations can be distinguished, which are called "Upgrading" and "First-Time Flashing":
- Upgrading: If your v3.x board runs a valid STorM32 firmware, and you want to upgrade or downgrade, then this is the procedure to choose, since it is most simple.
- First-Time Flashing: In all other cases, i.e., if your v3.x board has not yet a STorM32 firmware installed or you don't want to use the upgrade method, then this is what needs to be done.
In the following the flashing procedures for both cases are described.
Comment: The same distinction also exists for flashing NT modules, see How to flash NT Modules.
Updating Firmware
If your v3.x STorM32 board runs already a firmware, then this is the canonical procedure for upgrading:
First-Time Flashing
If your v3.x STorM32 board has not yet been flashed with a STorM32 firmware, or runs a different firmware, then one needs to resort to grass roots flashing methods for flashing the firmware (first-time flashing).
General Comments on the First-Time Flashing Process
In general, the STM32 micro-controllers which are used in the STorM32 boards provide two different in-built methods for flashing firmware:
- the serial system bootloader via the UART port using a USB-TTL adapter
- via SWD using a ST-Link programmer
For v3.x boards method (1) is relatively convenient, since these boards have a USB-TTL adapter integrated and thus no additional hardware is needed for doing this method. However, the grain of salt, the BOOT0 pin needs to be temporarily shortened to GND, e.g., by closing the solder pad.
Method (2) requires a dedicated ST-Link programmer as additional hardware. It is cheaply available, but nevertheless it is an additional piece of hardware, which one needs.
Flashing via System Bootloader
Flashing via SWD
This procedure is exactly identical for all STorM32 hardware (v1.x and v3.x boards and NT modules). It is described here Flashing Firmware using a STLink/V2 (SWD) Programmer.