diff --git a/boards/nucleo-f302r8/doc.txt b/boards/nucleo-f302r8/doc.txt index 83b9dadc24..28b44ed943 100644 --- a/boards/nucleo-f302r8/doc.txt +++ b/boards/nucleo-f302r8/doc.txt @@ -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