aboutsummaryrefslogtreecommitdiff
path: root/src/target/hla_target.c
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2013-01-04 11:46:00 +0000
committerSpencer Oliver <spen@spen-soft.co.uk>2013-01-21 16:46:09 +0000
commitd631b2e5aca26e96fb6feed2aceb40632bdfca71 (patch)
treeba06485537949fcce361a1a7416e6b6fc2c1a35b /src/target/hla_target.c
parent6efcd943b28cf904362283226b3f51cf52ce3252 (diff)
downloadriscv-openocd-d631b2e5aca26e96fb6feed2aceb40632bdfca71.zip
riscv-openocd-d631b2e5aca26e96fb6feed2aceb40632bdfca71.tar.gz
riscv-openocd-d631b2e5aca26e96fb6feed2aceb40632bdfca71.tar.bz2
flash: add stm32lx loader Hard Fault workaround
An issue has been seen with the stm32lx flash driver that if a power cycle/reset is applied after a erase, any ram loader will Hard Fault on execution. A similar issue is mentioned in the errata for the device. Two solution's seem to workaround this issue: 1, Handle the exception, this means adding exception vectors to the loader and changing the exception address using nvic vtor register. 2. falling back to using slower direct page writes - approx 50% slower. Using solution 1 would mean restrictions are placed on the loader location. Solution 2 was chosen mainly as it was simpler too implement. Change-Id: I429f06b5a3e3b1d8de90071a88a7df11fc9b46a7 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1010 Tested-by: jenkins
Diffstat (limited to 'src/target/hla_target.c')
0 files changed, 0 insertions, 0 deletions