diff --git a/application.c b/application.c index e06fdbd..3c7efff 100644 --- a/application.c +++ b/application.c @@ -342,26 +342,23 @@ static void command_swd_scan(void* argument) } else { printf("(invalid: RAO != 1)"); } + puts("\n"); + retry = 0; // no need to retry since we found a valid response break; case SWD_ACK_NOREPLY: // the is no SWD here - puts("no reply"); retry = 0; // no need to retry break; case SWD_ACK_WAIT: // not allowed for DPIDR case SWD_ACK_FAULT: // not allowed for DPIDR default: // invalid ACK - if (!swd_read(&data)) { // read the data - puts("parity error "); - } - printf("garbage data %+08x ", data); - swd_turnaround(1); // switch from reading to writing + printf("\nSWD possible: SWCLK=CH%02u SWDIO=CH%02u, garbage data=0x%08x\n", swclk, swdio, data); break; } if (retry) { retry--; // decrement retry count } } - puts("\n"); + putc('.'); swd_release_pins(); // release pins } // end SWDIO } // end SWCLK