1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/nucleo-f302r8: add cpy2remed flashig commands

This commit is contained in:
krzysztof-cabaj 2022-07-22 16:29:04 -04:00
parent 636304bc66
commit 54ea1fbf7c

View File

@ -56,6 +56,8 @@ microcontroller with 16KB of RAM and 64KB of ROM.
## Flashing the device
### Flashing the Board Using OpenOCD
The ST Nucleo-F302R8 board includes an on-board ST-LINK V2-1 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)
@ -68,14 +70,18 @@ and debug via GDB by simply typing
```
make BOARD=nucleo-f302r8 debug
```
### Flashing the Board Using ST-LINK Removable Media
### Troubleshooting
For some reason the ST Link programmer can be outdated, making it impossible
to
flash or to access the debug UART via USB. To fix this, please use
the ST Link firmware update tool following
[this documentation](http://www.st.com/en/embedded-software/stsw-link007.html).
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-f302r8 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-F302R8 board we strongly recommend the usage of