openocd; CFG_POST_INIT commands should be executed after target has been stopped.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/eeb4df4d Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/eeb4df4d Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/eeb4df4d Branch: refs/heads/develop Commit: eeb4df4d54729d0deffba3ce3387600a4b353b17 Parents: 03b5733 Author: Marko Kiiskila <[email protected]> Authored: Mon Jan 9 14:02:54 2017 -0800 Committer: Marko Kiiskila <[email protected]> Committed: Mon Jan 9 14:02:54 2017 -0800 ---------------------------------------------------------------------- hw/scripts/openocd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/eeb4df4d/hw/scripts/openocd.sh ---------------------------------------------------------------------- diff --git a/hw/scripts/openocd.sh b/hw/scripts/openocd.sh index ed32483..8caf3eb 100644 --- a/hw/scripts/openocd.sh +++ b/hw/scripts/openocd.sh @@ -26,8 +26,8 @@ openocd_load () { echo "$EXTRA_JTAG_CMD" > $OCD_CMD_FILE echo "init" >> $OCD_CMD_FILE - echo "$CFG_POST_INIT" >> $OCD_CMD_FILE echo "reset halt" >> $OCD_CMD_FILE + echo "$CFG_POST_INIT" >> $OCD_CMD_FILE echo "flash write_image erase $FILE_NAME $FLASH_OFFSET" >> $OCD_CMD_FILE if [ -z $FILE_NAME ]; then
