1
0
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:
Martine Lenders 2016-10-03 16:05:27 +02:00 committed by GitHub
commit 8e75df4939

View File

@ -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