summaryrefslogtreecommitdiff
path: root/src/flash/nor/stellaris.c
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-02-02 13:22:07 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-02-28 22:26:52 +0000
commita851ce0d6f2b961f94e09746304e0fb0dad6a15f (patch)
treea98ee20fb1f66e271c3984fc8daf9d9dfdf748ad /src/flash/nor/stellaris.c
parent0324eb24967088f753bc2fd997b4c18f4ea988c8 (diff)
downloadopenocd+libswd-a851ce0d6f2b961f94e09746304e0fb0dad6a15f.tar.gz
openocd+libswd-a851ce0d6f2b961f94e09746304e0fb0dad6a15f.tar.bz2
openocd+libswd-a851ce0d6f2b961f94e09746304e0fb0dad6a15f.tar.xz
openocd+libswd-a851ce0d6f2b961f94e09746304e0fb0dad6a15f.zip
ARMv7M: use software breakpoints for algorithms
- armv7m_run_algorithm now requires all algorithms to use a software breakpoint at their exit address - updated all algorithms to support this Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/flash/nor/stellaris.c')
-rw-r--r--src/flash/nor/stellaris.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c
index 21a0cffd..b80daed1 100644
--- a/src/flash/nor/stellaris.c
+++ b/src/flash/nor/stellaris.c
@@ -805,8 +805,7 @@ static const uint8_t stellaris_write_code[] =
0x04,0x36, /* adds r6, r6, #4 */
0x96,0x42, /* cmp r6, r2 */
0xF4,0xD1, /* bne mainloop */
- /* exit: */
- 0xFE,0xE7, /* b exit */
+ 0x00,0xBE, /* bkpt #0 */
/* pFLASH_CTRL_BASE: */
0x00,0xD0,0x0F,0x40, /* .word 0x400FD000 */
/* FLASHWRITECMD: */