Photon 2 won't go into DFU mode

My shiny new Photon 2 occasionally won't go into DFU mode (although I can force it with the physical buttons), and I've been getting messages that are totally foreign to me. Can anyone make heads or tails of this?

Cortex-Debug: VSCode debugger extension version 1.12.1 git(652d042). Usage info: https://github.com/Marus/cortex-debug#usage

Reading symbols from /Users/me/.particle/toolchains/gcc-arm/10.2.1/bin/arm-none-eabi-objdump --syms -C -h -w /Users/me/Dropbox/Courses/480.s24/doodles/SD_1306_Working_Demo/target/5.6.0/p2/SD_1306_Working_Demo.elf

Reading symbols from /Users/me/.particle/toolchains/gcc-arm/10.2.1/bin/arm-none-eabi-nm --defined-only -S -l -C -p /Users/me/Dropbox/Courses/480.s24/doodles/SD_1306_Working_Demo/target/5.6.0/p2/SD_1306_Working_Demo.elf

Launching GDB: /Users/me/.particle/toolchains/gcc-arm/10.2.1/bin/arm-none-eabi-gdb -q --interpreter=mi2

 IMPORTANT: Set "showDevDebugOutput": "raw" in "launch.json" to see verbose GDB transactions here. Very helpful to debug issues or report problems

Launching gdb-server: /Users/me/.particle/toolchains/openocd/0.11.0-particle.4/bin/openocd -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /Users/me/.particle/toolchains/openocd/0.11.0-particle.4/share/openocd/scripts -f /Users/me/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl -f interface/cmsis-dap.cfg -f target/rtl872x_km4_debug.cfg -c "CDRTOSConfigure FreeRTOS"

Please check TERMINAL tab (gdb-server) for output from /Users/me/.particle/toolchains/openocd/0.11.0-particle.4/bin/openocd

Finished reading symbols from objdump: Time: 29 ms
Finished reading symbols from nm: Time: 62 ms

OpenOCD: GDB Server Quit Unexpectedly. See gdb-server output in TERMINAL tab for more details.

In the terminal tab it showed the following:

| [2024-01-17T23:21:15.441Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.

/Users/me/.particle/toolchains/openocd/0.11.0-particle.4/bin/openocd -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /Users/me/.particle/toolchains/openocd/0.11.0-particle.4/share/openocd/scripts -f /Users/me/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl -f interface/cmsis-dap.cfg -f target/rtl872x_km4_debug.cfg -c "CDRTOSConfigure FreeRTOS"

xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2022-03-25-19:34)

Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
CDLiveWatchSetup
/Users/me/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl: rtl872x.cpu configure -rtos FreeRTOS
Info : Listening on port 50001 for tcl connections
Info : Listening on port 50002 for telnet connections
Error: unable to find a matching CMSIS-DAP device
[2024-01-17T23:21:15.566Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...

Do you see this problem when you are not using debugger?