1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

boards/nucleo-f303re: add cpy2remed flashing commands

This commit is contained in:
krzysztof-cabaj 2022-07-26 07:10:34 -04:00
parent 54ea1fbf7c
commit c5d4004c53

View File

@ -6,8 +6,7 @@
## Overview
The Nucleo-F303RE is a board from ST's Nucleo family supporting a ARM Cortex-M4
STM32F303RE
microcontroller with 64Kb of RAM and 512Kb of ROM.
STM32F303RE microcontroller with 64Kb of RAM and 512Kb of ROM.
## Hardware
@ -54,6 +53,9 @@ microcontroller with 64Kb of RAM and 512Kb of ROM.
## Flashing the device
### Flashing the Board Using OpenOCD
The ST Nucleo-F303RE board includes an on-board ST-LINK V2 programmer.
The easiest way to program the board is to use OpenOCD. Once you have
installed OpenOCD (look [here](https://github.com/RIOT-OS/RIOT/wiki/OpenOCD)
@ -67,6 +69,18 @@ and debug via GDB by simply typing
BOARD=nucleo-f303re make debug
```
### Flashing the Board Using ST-LINK Removable Media
On-board ST-LINK programmer provides via composite USB device removable media.
Copying the HEX file causes reprogramming of the board. This task
could be performed manually; however, the cpy2remed (copy to removable
media) PROGRAMMER script does this automatically. To program board in
this manner, use the command:
```
make BOARD=nucleo-f303re PROGRAMMER=cpy2remed flash
```
@note This PROGRAMMER was tested using ST-LINK firmware 2.37.26. Firmware updates
could be found on [this STM webpage](https://www.st.com/en/development-tools/stsw-link007.html).
## Supported Toolchains
For using the ST Nucleo-F303RE board we strongly recommend the usage of the