From c725b6dd84d458753dfbee7ab29c3fff6c0766c3 Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Fri, 5 Aug 2022 17:01:50 -0400 Subject: [PATCH] boards/nucleo-g474re: add short board info and flashing commands --- boards/nucleo-g474re/doc.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/boards/nucleo-g474re/doc.txt b/boards/nucleo-g474re/doc.txt index 9d3fe49d8c..c34d1b4bbc 100644 --- a/boards/nucleo-g474re/doc.txt +++ b/boards/nucleo-g474re/doc.txt @@ -3,8 +3,15 @@ @ingroup boards_common_nucleo64 @brief Support for the STM32 Nucleo-G474RE +## Overview + +The Nucleo-G474RE is a board from ST's Nucleo family supporting a ARM +Cortex-M4 STM32G474RE microcontroller with 128KiB of RAM and 512KiB of Flash. + ## Flashing the device +### Flashing the Board Using OpenOCD + The ST Nucleo-G474RE board includes an on-board ST-LINK V3 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 @@ -18,6 +25,20 @@ and debug via GDB by simply typing make BOARD=nucleo-g474re 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-g474re 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-G474RE board we recommend the usage of the