mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
mbed_lpc1768/flash: get BINFILE from cli
This commit is contained in:
parent
44da86f2ee
commit
8b2ff285be
@ -6,7 +6,7 @@ export DEBUGGER =
|
||||
export DEBUGSERVER =
|
||||
|
||||
HEXFILE = $(BINFILE)
|
||||
export FFLAGS =
|
||||
export FFLAGS = $(HEXFILE)
|
||||
export DEBUGGER_FLAGS =
|
||||
|
||||
# define the default port depending on the host OS
|
||||
|
4
boards/mbed_lpc1768/dist/flash.sh
vendored
4
boards/mbed_lpc1768/dist/flash.sh
vendored
@ -21,6 +21,8 @@
|
||||
OS=`uname`
|
||||
DID_MOUNT=false
|
||||
|
||||
BINFILE=$1
|
||||
|
||||
# set the mount path depending on the OS
|
||||
if [ ${OS} = "Linux" ]
|
||||
then
|
||||
@ -55,7 +57,7 @@ fi
|
||||
# remove old binary
|
||||
rm -f ${MOUNT}/*.bin
|
||||
# copy new binary to device
|
||||
cp ${HEXFILE} ${MOUNT}
|
||||
cp ${BINFILE} ${MOUNT}
|
||||
# make sure hexfile was written
|
||||
sync
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user