]> git.sur5r.net Git - openocd/commit
stlink: fix vector catch not being cleared
authorSpencer Oliver <spen@spen-soft.co.uk>
Mon, 8 Oct 2012 09:05:45 +0000 (10:05 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Thu, 18 Oct 2012 14:39:04 +0000 (14:39 +0000)
commit7165e05cf64f5c24177239f9f9db577b45f1b52c
treea8197b5d3b1ef19df06b4b97602ece36e06b2903
parent98a41bca6ed5711c972fdd75167ffc031377a456
stlink: fix vector catch not being cleared

Seems after a reset the stlink is not clearing the vector catch (VC_CORERESET)
in the Debug Control Register.

This has the side effect if the user presses an external reset the core will
halt, this patch fixes that.

Change-Id: Ic3b2c3991b79cacbbd901c02b79613c2e204e71f
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/905
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/target/stm32_stlink.c