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

boards/g431rb: add short board info and flashing commands

This commit is contained in:
krzysztof-cabaj 2022-08-04 13:49:35 -04:00
parent 790bda0b87
commit 9797bb5b30

View File

@ -3,8 +3,15 @@
@ingroup boards_common_nucleo64
@brief Support for the STM32 Nucleo-G431RB
## Overview
The Nucleo-G431RB is a board from ST's Nucleo family supporting a ARM
Cortex-M4 STM32G431RB microcontroller with 32KiB of RAM and 128KiB of Flash.
## Flashing the device
### Flashing the Board Using OpenOCD
The ST Nucleo-G431RB 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-g431rb 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-g431re 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-G431RB board we recommend the usage of the