Skip to content
Snippets Groups Projects
Commit d8057f6d authored by oharboe's avatar oharboe
Browse files

switch to alive_sleep() to avoid gdb timeouts

git-svn-id: svn://svn.berlios.de/openocd/trunk@945 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent ea0270e3
No related branches found
No related tags found
No related merge requests found
...@@ -523,7 +523,7 @@ int cortex_m3_soft_reset_halt(struct target_s *target) ...@@ -523,7 +523,7 @@ int cortex_m3_soft_reset_halt(struct target_s *target)
LOG_DEBUG("waiting for system reset-halt, dcb_dhcsr 0x%x, %i ms", dcb_dhcsr, timeout); LOG_DEBUG("waiting for system reset-halt, dcb_dhcsr 0x%x, %i ms", dcb_dhcsr, timeout);
} }
timeout++; timeout++;
usleep(1000); alive_sleep(1);
} }
return ERROR_OK; return ERROR_OK;
......
...@@ -966,7 +966,7 @@ int ahbap_debugport_init(swjdp_common_t *swjdp) ...@@ -966,7 +966,7 @@ int ahbap_debugport_init(swjdp_common_t *swjdp)
swjdp_read_dpacc(swjdp, &ctrlstat, DP_CTRL_STAT); swjdp_read_dpacc(swjdp, &ctrlstat, DP_CTRL_STAT);
if ((retval=jtag_execute_queue())!=ERROR_OK) if ((retval=jtag_execute_queue())!=ERROR_OK)
return retval; return retval;
usleep(10000); alive_sleep(10);
} }
while (!(ctrlstat & CSYSPWRUPACK) && (cnt++ < 10)) while (!(ctrlstat & CSYSPWRUPACK) && (cnt++ < 10))
...@@ -975,7 +975,7 @@ int ahbap_debugport_init(swjdp_common_t *swjdp) ...@@ -975,7 +975,7 @@ int ahbap_debugport_init(swjdp_common_t *swjdp)
swjdp_read_dpacc(swjdp, &ctrlstat, DP_CTRL_STAT); swjdp_read_dpacc(swjdp, &ctrlstat, DP_CTRL_STAT);
if ((retval=jtag_execute_queue())!=ERROR_OK) if ((retval=jtag_execute_queue())!=ERROR_OK)
return retval; return retval;
usleep(10000); alive_sleep(10);
} }
swjdp_read_dpacc(swjdp, &dummy, DP_CTRL_STAT); swjdp_read_dpacc(swjdp, &dummy, DP_CTRL_STAT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment