Skip to content

Commit

Permalink
Merge pull request #18057 from krzysztof-cabaj/cpy2remed-new-boards
Browse files Browse the repository at this point in the history
boards/nucleo-X: enable cpy2remed programmer
  • Loading branch information
benpicco authored May 24, 2022
2 parents c1b152a + 0c2d257 commit 874a7e1
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 26 deletions.
7 changes: 7 additions & 0 deletions boards/common/nucleo/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include

# Setup of programmer and serial is shared between STM32 based boards
include $(RIOTMAKE)/boards/stm32.inc.mk

# variable needed by cpy2remed PROGRAMMER
# it contains name of ST-Link removable media

DIR_NAME_AT_REMED = "NODE$(call uppercase,$(subst -,_,$(subst nucleo,,$(BOARD))))"

PROGRAMMERS_SUPPORTED += cpy2remed
14 changes: 14 additions & 0 deletions boards/nucleo-f303k8/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ STM32F303K8 microcontroller with 12Kb of RAM and 64Kb of ROM.


## Flashing the device

### Flashing the Board Using OpenOCD

The ST Nucleo-F303K8 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)
Expand All @@ -62,7 +65,18 @@ and debug via GDB by simply typing
```
BOARD=nucleo-f303k8 make 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-f303k8 PROGRAMMER=cpy2remed flash
```
@note This PROGRAMMER was tested using ST-LINK firmware 2.37.26. Firmware updates
can be found on [this STM webpage](https://www.st.com/en/development-tools/stsw-link007.html).

## Supported Toolchains
For using the ST Nucleo-F303K8 board we strongly recommend the usage of the
Expand Down
6 changes: 0 additions & 6 deletions boards/nucleo-f334r8/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
#variable needed by cpy2remed PROGRAMMER
#it contains name of ST-Link removable media
DIR_NAME_AT_REMED = "NODE_F334R8"

PROGRAMMERS_SUPPORTED += cpy2remed

# load the common Makefile.include for Nucleo boards
include $(RIOTBOARD)/common/nucleo64/Makefile.include
7 changes: 0 additions & 7 deletions boards/nucleo-f429zi/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
#variable needed by cpy2remed PROGRAMMER
#it contains name of ST-Link removable media
DIR_NAME_AT_REMED = "NODE_F429ZI"

PROGRAMMERS_SUPPORTED += cpy2remed


# load the common Makefile.include for Nucleo-144 boards
include $(RIOTBOARD)/common/nucleo144/Makefile.include
6 changes: 0 additions & 6 deletions boards/nucleo-f446ze/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
#variable needed by cpy2remed PROGRAMMER
#it contains name of ST-Link removable media
DIR_NAME_AT_REMED = "NODE_F446ZE"

PROGRAMMERS_SUPPORTED += cpy2remed

# load the common Makefile.include for Nucleo-144 boards
include $(RIOTBOARD)/common/nucleo144/Makefile.include
23 changes: 22 additions & 1 deletion boards/nucleo-l031k6/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,25 @@
@defgroup boards_nucleo-l031k6 STM32 Nucleo-L031K6
@ingroup boards_common_nucleo32
@brief Support for the STM32 Nucleo-L031K6
*/

## Overview

The Nucleo-L031K6 is a board from ST's Nucleo family supporting ARM Cortex-M0
STM32L031K6T6 microcontroller with 8kB or RAM and 32Kb of Flash.


## 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-l031k6 PROGRAMMER=cpy2remed flash
```
@note This PROGRAMMER was tested using ST-LINK firmware 2.37.26. Firmware updates
can be found on [this STM webpage](https://www.st.com/en/development-tools/stsw-link007.html).


*/
20 changes: 20 additions & 0 deletions boards/nucleo-l073rz/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,24 @@
@defgroup boards_nucleo-l073rz STM32 Nucleo-L073RZ
@ingroup boards_common_nucleo64
@brief Support for the STM32 Nucleo-L073RZ


## Overview

The Nucleo-L073RZ is a board from ST's Nucleo family supporting ARM Cortex-M0
STM32L073RZT6 microcontroller with 20kB or RAM and 192Kb of Flash.

## 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-l073rz PROGRAMMER=cpy2remed flash
```
@note This PROGRAMMER was tested using ST-LINK firmware 2.37.26. Firmware updates
can be found on [this STM webpage](https://www.st.com/en/development-tools/stsw-link007.html).

*/
20 changes: 20 additions & 0 deletions boards/nucleo-l432kc/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,24 @@
@defgroup boards_nucleo-l432kc STM32 Nucleo-L432KC
@ingroup boards_common_nucleo32
@brief Support for the STM32 Nucleo-L432KC

## Overview

The Nucleo-L432KC is a board from ST's Nucleo family supporting ARM Cortex-M4
STM32L432KCU6 microcontroller with 64kB or RAM and 256Kb of Flash.


## 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-l432kc PROGRAMMER=cpy2remed flash
```
@note This PROGRAMMER was tested using ST-LINK firmware 2.37.26. Firmware updates
can be found on [this STM webpage](https://www.st.com/en/development-tools/stsw-link007.html).

*/
10 changes: 4 additions & 6 deletions boards/nucleo-l552ze-q/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#variable needed by cpy2remed PROGRAMMER
#it contains name of ST-Link removable media
DIR_NAME_AT_REMED = "NODE_L552ZE"

PROGRAMMERS_SUPPORTED += cpy2remed

# load the common Makefile.include for Nucleo boards
include $(RIOTBOARD)/common/nucleo144/Makefile.include

#Automatic flash directory name generation failed for this board
#and it should be set manually - see PR #18057
DIR_NAME_AT_REMED = "NODE_L552ZE"
4 changes: 4 additions & 0 deletions boards/p-nucleo-wb55/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1

# include shared global Nucleo Makefile
include $(RIOTBOARD)/common/nucleo/Makefile.include

#Automatic flash directory name generation failed for this board
#and it should be set manually - see PR #18057
DIR_NAME_AT_REMED = "NODE_WB55RG"

0 comments on commit 874a7e1

Please sign in to comment.