I use a jtag debugger to connect a cortex-m7 chip, I found failed with
the default value do_sync in file src/target/adi_v5_swd.c.
```
 /* for debug, set do_sync to true to force synchronous transfers */
static bool do_sync = false;
```
the failed log is
```
Debug: 350 7778 command.c:82 script_debug(): command - halt 1000
Debug: 351 7778 target.c:3256 handle_halt_command(): -
Error: 352 7778 target.c:521 target_halt(): Target not examined yet
Debug: 353 7778 command.c:453 jim_exec_command(): Command 'halt'
failed with error code -4
Error: 354 7778 target.c:4711 target_handle_event(): [yt32b1hax.cpu0]
Execution of event gdb-attach failed:
embedded:startup.tcl:1664: Error:
at file "embedded:startup.tcl", line 1664
```
But after I change do_sync = true, it's success to connect the arm chip.

Reply via email to