Commit Graph

6 Commits

Author SHA1 Message Date
Jonathan Bell
8737a06202 probe: resolve a bug in init/deinit handling
OpenOCD is fond of calling PORT_OFF and PORT_SWD_SETUP frequently, which
played havoc with caching both adapter khz and the DAP delay.

Revert to caching just the DAP delay and reset it when PORT_OFF is called.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
2022-08-18 16:01:40 +01:00
Jonathan Bell
47e2043564 probe: performance enhancements
- Run out of SRAM, it goes quite a lot faster
- Cache the DAP clock frequency
- Read RDATA and write WDATA all in one go, and merge the turnaround
  into the ACK phase. Reduces the number of missed PIO SM cycles during an
  SWD transfer

Also fix a compiler warning and demote the loglevel of some debug messages.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
2022-08-18 16:00:28 +01:00
Jonathan Bell
02b31998d5 probe: fix SWDIO line idle state and export low-level functions
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
2022-08-18 16:00:28 +01:00
Liam Fraser
218bd5f50a Add MIT license to all source files 2021-02-03 09:29:20 +00:00
Liam Fraser
49a80059b8 Fix file permissions 2021-02-03 09:24:46 +00:00
graham sanderson
f67a57d2ba Initial Release 2021-01-20 17:47:12 +00:00