mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tools/cpy2remed: Addition of cpy2remed programmer to nucleo-L552ZE-Q
This commit is contained in:
parent
e6024c7fa7
commit
4bb5487f86
@ -1,2 +1,8 @@
|
|||||||
|
#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
|
# load the common Makefile.include for Nucleo boards
|
||||||
include $(RIOTBOARD)/common/nucleo144/Makefile.include
|
include $(RIOTBOARD)/common/nucleo144/Makefile.include
|
||||||
|
@ -36,6 +36,8 @@ of Flash.
|
|||||||
|
|
||||||
## Flashing the device
|
## Flashing the device
|
||||||
|
|
||||||
|
### Flashing the Board Using OpenOCD
|
||||||
|
|
||||||
The ST Nucleo-L552ZE-Q board includes an on-board ST-LINK programmer and can be
|
The ST Nucleo-L552ZE-Q board includes an on-board ST-LINK programmer and can be
|
||||||
flashed using OpenOCD.
|
flashed using OpenOCD.
|
||||||
@note The upstream version of OpenOCD doesn't contain yet support for this board,
|
@note The upstream version of OpenOCD doesn't contain yet support for this board,
|
||||||
@ -65,6 +67,19 @@ and debug via GDB by simply typing
|
|||||||
make BOARD=nucleo-l552ze-q debug
|
make BOARD=nucleo-l552ze-q 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-l552ze-q 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).
|
||||||
|
|
||||||
## Accessing RIOT shell
|
## Accessing RIOT shell
|
||||||
|
|
||||||
Default RIOT shell access utilize VCP (Virtual COM Port) via USB interface,
|
Default RIOT shell access utilize VCP (Virtual COM Port) via USB interface,
|
||||||
|
13
dist/tools/cpy2remed/cpy2remed.sh
vendored
Executable file
13
dist/tools/cpy2remed/cpy2remed.sh
vendored
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#cpy2remed - copy to removable media
|
||||||
|
#$1 contains generated hexfile
|
||||||
|
#$2 contains directory name for this particular nucleo board which could be
|
||||||
|
# set in the board makefile.include using variable DIR_NAME_AT_REMED
|
||||||
|
|
||||||
|
HEXFILE="$1"
|
||||||
|
DEV_DIR="$2"
|
||||||
|
|
||||||
|
REMED_MOUNT_PATH="${REMED_MOUNT_PATH:-/media/$USER/$DEV_DIR/}"
|
||||||
|
|
||||||
|
cp "$HEXFILE" "$REMED_MOUNT_PATH"
|
6
makefiles/tools/cpy2remed.inc.mk
Normal file
6
makefiles/tools/cpy2remed.inc.mk
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
FLASHER ?= $(RIOTTOOLS)/cpy2remed/cpy2remed.sh
|
||||||
|
|
||||||
|
FLASHFILE ?= $(HEXFILE)
|
||||||
|
|
||||||
|
FFLAGS ?= $(FLASHFILE) $(DIR_NAME_AT_REMED)
|
Loading…
Reference in New Issue
Block a user