From d8d27ed25a8000f378442ebc4494394e2aa9ea8f Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Mon, 18 Jul 2022 17:39:20 -0400 Subject: [PATCH] boards/nucleo-f070rb: add cpy2remed flashing commands --- boards/nucleo-f070rb/doc.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/boards/nucleo-f070rb/doc.txt b/boards/nucleo-f070rb/doc.txt index 1f6dc7aad9..7ebcc7288d 100644 --- a/boards/nucleo-f070rb/doc.txt +++ b/boards/nucleo-f070rb/doc.txt @@ -54,6 +54,9 @@ STM32F070RB microcontroller with 16Kb of SRAM and 128Kb of ROM Flash. ## Flashing the device + +### Flashing the Board Using OpenOCD + The ST Nucleo-F070RB 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) for @@ -67,6 +70,18 @@ and debug via GDB by simply typing make BOARD=nucleo-f070rb 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-f070rb 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-F070RB board we strongly recommend the usage of the