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>
5 files changed
tree: 2a48f6523e3fe6befe38b05d55be77b84a739e75
  1. include/
  2. src/
  3. .gitmodules
  4. CMakeLists.txt
  5. FreeRTOS_Kernel_import.cmake
  6. pico_sdk_import.cmake
  7. README.md
README.md

Picoprobe

Picoprobe allows a Pico / RP2040 to be used as USB -> SWD and UART bridge. This means it can be used as a debugger and serial console for another Pico.

Documentation

Picoprobe documentation can be found in the Pico Getting Started Guide. See “Appendix A: Using Picoprobe”.