From 40109263f0efd73fb4fab78f03f9222045ae4165 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 2 Nov 2019 23:09:56 +0200 Subject: [PATCH] Fix initial debug configuration for J-Link --- platformio/commands/debug/initcfgs.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platformio/commands/debug/initcfgs.py b/platformio/commands/debug/initcfgs.py index e80b8604..5596ffa3 100644 --- a/platformio/commands/debug/initcfgs.py +++ b/platformio/commands/debug/initcfgs.py @@ -39,16 +39,15 @@ define pio_reset_target end target extended-remote $DEBUG_PORT -$INIT_BREAK pio_reset_halt_target $LOAD_CMDS -pio_reset_halt_target +$INIT_BREAK """ GDB_JLINK_INIT_CONFIG = """ define pio_reset_halt_target - monitor halt monitor reset + monitor halt end define pio_reset_target @@ -56,6 +55,8 @@ define pio_reset_target end target extended-remote $DEBUG_PORT +monitor clrbp +monitor speed auto pio_reset_halt_target $LOAD_CMDS $INIT_BREAK