Skip to content

Version v2.3.0 fails to start #201

Closed

Description

@Elettronik

I flashed the version debugprobe_on_pico.uf2 v2.3.0. Version v2.2.3 works.

When I try to start debug OCD fails withe the following error:

➜ scripts git:(main) ✗ openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "debug_level 4"
Open On-Chip Debugger 0.12.0+dev (2026-03-22-11:39)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : [rp2040.core0] Hardware thread awareness created
Info : [rp2040.core1] Hardware thread awareness created
adapter speed: 5000 kHz
User : 7 9 options.c:52 configuration_output_handler(): debug_level: 4User : 8 9 options.c:52 configuration_output_handler():
Info : 9 9 server.c:298 add_service(): Listening on port 6666 for tcl connections
Info : 10 9 server.c:298 add_service(): Listening on port 4444 for telnet connections
Debug: 11 9 command.c:86 script_debug(): command - init
Debug: 12 9 command.c:86 script_debug(): command - target init
Debug: 13 9 command.c:86 script_debug(): command - target names
Debug: 14 9 command.c:86 script_debug(): command - rp2040.core0 cget -event gdb-flash-erase-start
Debug: 15 9 command.c:86 script_debug(): command - rp2040.core0 configure -event gdb-flash-erase-start reset init
Debug: 16 9 command.c:86 script_debug(): command - rp2040.core0 cget -event gdb-flash-write-end
Debug: 17 9 command.c:86 script_debug(): command - rp2040.core0 configure -event gdb-flash-write-end reset halt
Debug: 18 9 command.c:86 script_debug(): command - rp2040.core0 cget -event gdb-attach
Debug: 19 9 command.c:86 script_debug(): command - rp2040.core0 configure -event gdb-attach halt 1000
Debug: 20 9 command.c:86 script_debug(): command - rp2040.core1 cget -event gdb-flash-erase-start
Debug: 21 9 command.c:86 script_debug(): command - rp2040.core1 configure -event gdb-flash-erase-start reset init
Debug: 22 9 command.c:86 script_debug(): command - rp2040.core1 cget -event gdb-flash-write-end
Debug: 23 9 command.c:86 script_debug(): command - rp2040.core1 configure -event gdb-flash-write-end reset halt
Debug: 24 9 command.c:86 script_debug(): command - rp2040.core1 cget -event gdb-attach
Debug: 25 9 command.c:86 script_debug(): command - rp2040.core1 configure -event gdb-attach halt 1000
Debug: 26 9 target.c:1640 handle_target_init_command(): Initializing targets...
Debug: 27 9 semihosting_common.c:109 semihosting_common_init():
Debug: 28 9 semihosting_common.c:109 semihosting_common_init():
Debug: 29 12 cmsis_dap_usb_bulk.c:124 cmsis_dap_usb_open(): could not open device 0x1d6b:0x0003: Access denied (insufficient permissions)
Debug: 30 23 cmsis_dap_usb_bulk.c:169 cmsis_dap_usb_open(): found product string of 0x2e8a:0x000c 'Debugprobe on Pico (CMSIS-DAP)'
Debug: 31 23 cmsis_dap_usb_bulk.c:189 cmsis_dap_usb_open(): enumerating interfaces of 0x2e8a:0x000c
Debug: 32 29 cmsis_dap_usb_bulk.c:236 cmsis_dap_usb_open(): found interface 0 string 'CMSIS-DAP v2 Interface'
Info : 33 29 cmsis_dap_usb_bulk.c:339 cmsis_dap_usb_open(): Using CMSIS-DAPv2 interface with VID:PID=0x2e8a:0x000c, serial=50031287389A751C
Debug: 34 29 cmsis_dap_usb_bulk.c:472 cmsis_dap_usb_read(): submit read @ 0
Debug: 35 41 cmsis_dap_usb_bulk.c:526 cmsis_dap_usb_read(): USB timeout @ 0
Debug: 36 41 cmsis_dap_usb_bulk.c:582 cmsis_dap_usb_write(): submit write @ 0
Debug: 37 41 cmsis_dap_usb_bulk.c:472 cmsis_dap_usb_read(): submit read @ 0
Debug: 38 6042 cmsis_dap_usb_bulk.c:526 cmsis_dap_usb_read(): USB timeout @ 0
Error: 39 6042 cmsis_dap.c:458 cmsis_dap_cmd_dap_info(): CMSIS-DAP command CMD_INFO failed.
Debug: 40 6042 command.c:457 exec_command(): Command 'init' failed with error code -107
User : 41 6042 command.c:530 command_run_line():
Debug: 42 6042 breakpoints.c:328 breakpoint_remove_all_internal(): [rp2040.core0] Delete all breakpoints
Debug: 43 6042 breakpoints.c:328 breakpoint_remove_all_internal(): [rp2040.core1] Delete all breakpoints
Debug: 44 6042 target.c:2182 target_free_all_working_areas_restore(): freeing all working areas
Debug: 45 6042 breakpoints.c:328 breakpoint_remove_all_internal(): [rp2040.core1] Delete all breakpoints
Debug: 46 6042 target.c:2182 target_free_all_working_areas_restore(): freeing all working areas

Activity

  1. P33M commented on Mar 23, 2026

    @P33M
    Contributor

    I'm afraid I can't reproduce that here. I note the openocd build date is recent, so are you using top-of-tree rpi-common branch in https://github.com/raspberrypi/openocd ? My testing used that version.

    What stepping is the RP2040 - B1/B2?

  2. Elettronik commented on Mar 23, 2026

    @Elettronik
    Author

    I used the branch referenced in https://raw.githubusercontent.com/raspberrypi/pico-setup/master/pico_setup.sh so OPENOCD_TAG="sdk-2.2.0" .

    The label on RPI is B2

    Edit:
    if I switch openocd branch to the one @P33M refer to, the new probe firmware works perfectly.

  3. P33M commented on Mar 24, 2026

    @P33M
    Contributor

    That's somewhat concerning. No commits between the tag and the branch should have any impact on the early-probe behaviour (the very first CMSIS-DAP command is failing).

    What host system is in use? Does it aggressively autosuspend USB devices?

  4. Elettronik commented on Mar 24, 2026

    @Elettronik
    Author

    The behavior is tested both in a VM ( UTM on Mac so QEMU in virtualization mode) and on WSL with Usbipd.
    In both cases USB is passed throug raw to VM

  5. marcemmers commented on Apr 4, 2026

    @marcemmers

    I've also had issues with probe-rs not being able to connect to the probe on v2.3.0. Version 2.2.3 works fine for me.

    I am using the probe on WSL2 also with usbipd.

  6. agesome commented on Apr 28, 2026

    @agesome

    Same here, WSL2 + usbipd, Debug Probe, RP2040 B2, Open On-Chip Debugger 0.12.0-01004-g9ea7f3d64-dirty (2025-11-12-08:18).
    Dropping down to 2.2.3 helped.

  7. P33M commented on May 18, 2026

    @P33M
    Contributor

    I can reproduce this. Remoting the device from windows -> WSL2 means that it goes through a bus suspend then reset and re-enumeration. The UART remains functional after the switch, DAP dies on the first command.

    It's likely the DAP thread ends up in an inconsistent state after the suspend - on the face of it, not sure how.

  8. P33M commented on May 19, 2026

    @P33M
    Contributor

    The cause here is that tinyUSB doesn't explicitly communicate usb device state, instead relying on obliquely named callbacks. e.g. "unmount" appears nowhere in the USB specification. So you have to figure out what bus event corresponds to which N callbacks happen.

    There was a bug in the probe firmware where a bus reset wasn't treated the same as a physical disconnect/power-on reset, so it was in a half-configured state. It was hidden by direct thread suspend/resume calls in the main event loop(s) which hid the fact that the threads were incorrectly left halted.

  9. P33M commented on May 20, 2026

    @P33M
    Contributor

    debugprobe.zip

    Please try the uf2 within this zip file - works for me on WSL.

  10. Elettronik commented on May 21, 2026

    @Elettronik
    Author

    @P33M Confirm it works. OpenOCD on branch rpi-common.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions