mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #5900 from jfbortolotti/dist_tools_jlink
dist: tools: jlink.sh: use printf for JLINK_*_FLASH to allow use of backslash
This commit is contained in:
commit
8e75df4939
4
dist/tools/jlink/jlink.sh
vendored
4
dist/tools/jlink/jlink.sh
vendored
@ -140,11 +140,11 @@ do_flash() {
|
||||
/bin/echo -n "" > ${BINDIR}/burn.seg
|
||||
# create temporary burn file
|
||||
if [ ! -z "${JLINK_PRE_FLASH}" ]; then
|
||||
echo "${JLINK_PRE_FLASH}" >> ${BINDIR}/burn.seg
|
||||
printf "${JLINK_PRE_FLASH}\n" >> ${BINDIR}/burn.seg
|
||||
fi
|
||||
echo "loadbin ${HEXFILE} ${JLINK_FLASH_ADDR}" >> ${BINDIR}/burn.seg
|
||||
if [ ! -z "${JLINK_POST_FLASH}" ]; then
|
||||
echo "${JLINK_POST_FLASH}" >> ${BINDIR}/burn.seg
|
||||
printf "${JLINK_POST_FLASH}\n" >> ${BINDIR}/burn.seg
|
||||
fi
|
||||
cat ${RIOTBASE}/dist/tools/jlink/reset.seg >> ${BINDIR}/burn.seg
|
||||
# flash device
|
||||
|
Loading…
Reference in New Issue
Block a user