-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/cpy2remed: Addition of cpy2remed programmer to nucleo-L552ZE-Q
- Loading branch information
1 parent
4aa173d
commit d417e95
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
include $(RIOTBOARD)/common/nucleo144/Makefile.include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
FLASHER ?= $(RIOTTOOLS)/cpy2remed/cpy2remed.sh | ||
|
||
FLASHFILE ?= $(HEXFILE) | ||
|
||
FFLAGS ?= $(FLASHFILE) $(DIR_NAME_AT_REMED) |