diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2016-07-27 16:50:25 +0200 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2016-11-05 10:35:19 +0000 |
commit | 7d2ad65c6400dea415cd7e0b19d502488b371bfc (patch) | |
tree | 99be2cd1b526d844ab3370f7e9c31db8ed35427d /doc | |
parent | 607edefb53ae5ca4120a7967c4cfed3184bb09d2 (diff) |
flash at91samd, at91sam4l: fix improper use of mem_ap_ call
Since merge of #3149 OpenOCD start with an unresponsive SAMD or SAM4L
resulted in segfaults. First was in cortex_m_assert_reset
(fixed by #3552), second was in samd_handle_reset_deassert()
/sam4l_handle_reset_deassert().
The change replaces mem_ap_write_u32/8 by target_write_u32/8.
It also takes better care about examining and polling target before
debug control registers are set. It prevents lockup when 'reset halt'
is issued on unresponsive cpu.
Change-Id: I2516489f4771aebfc1118d174f527497b8a201ad
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/3603
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions