--- **[tickets:#399] target-detach not handled correctly** **Status:** new **Milestone:** 0.11.0 **Created:** Mon Jun 05, 2023 10:20 AM UTC by Jonatan Liljedahl **Last Updated:** Mon Jun 05, 2023 10:20 AM UTC **Owner:** nobody When disconnecting a debug session, openocd halts the MCU. See my reported issue for cortex-debug VSCode extension: https://github.com/Marus/cortex-debug/issues/894 Their response was "This is an issue with openocd. It is not compliant with gdb for -target-detach." And: > The stock openocd does not do everything needed to do a proper detach. It > needs to > 1. Remove all break/watch points (we already do this because of bugs in gdb > servers) > 2. Resume if the program is halted > 3. Clear the debug flags in the ARM debug HW > 4. Disconnect from SWD > 5. etc. --- Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is subscribed to https://sourceforge.net/p/openocd/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.