openocd/src
Michael Hope a2e6982a18 flash/nor/atsame5: Fix a timeout when erasing
According to the datasheet, erasing a block can take up to 200 ms.
When using a Segger J-Link with a 2 MHz clock the current loop
finishes after < 50 ms, ignores the timeout, and then fails when
erasing the next block.

Switch to a time based check, add an explicit yield, and report an
error on timeout.

Change-Id: I8255401d1e59f427a08d2cccb8a66143dcdbb324
Signed-off-by: Michael Hope <mlhx@google.com>
Reviewed-on: http://openocd.zylin.com/5706
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2020-07-07 05:18:14 +01:00
..
flash flash/nor/atsame5: Fix a timeout when erasing 2020-07-07 05:18:14 +01:00
helper log: fix kept_alive() and report expired timeout 2020-06-06 18:04:14 +01:00
jtag jtag: drivers: xlnx-pcie-xvc: Add support for SWD mode. 2020-06-27 15:34:38 +01:00
pld helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
rtos coding style: fix multi-line dereferencing 2020-06-06 18:06:05 +01:00
server openocd: fix issue in WIN32 with TCP adapters 2020-06-14 14:23:48 +01:00
svf coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
target target: do not print an error on shutdown in target events 2020-06-27 15:34:51 +01:00
transport swim: add new transport 2020-05-24 21:32:05 +01:00
xsvf xsvf: fix memory leak 2020-01-16 09:44:33 +00:00
hello.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
openocd.c openocd: fix issue in WIN32 with TCP adapters 2020-06-14 14:23:48 +01:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00