diff --git a/platformio/commands/debug/client.py b/platformio/commands/debug/client.py index a0bcc61b..7e9aebb9 100644 --- a/platformio/commands/debug/client.py +++ b/platformio/commands/debug/client.py @@ -111,7 +111,7 @@ class GDBClient(BaseProcess): # pylint: disable=too-many-instance-attributes elif "st-util" in server_exe: cfg = initcfgs.GDB_STUTIL_INIT_CONFIG elif "mspdebug" in server_exe: - cfg = initcfgs.MSPDEBUG_INIT_CONFIG + cfg = initcfgs.GDB_MSPDEBUG_INIT_CONFIG elif self.debug_options['require_debug_port']: cfg = initcfgs.GDB_BLACKMAGIC_INIT_CONFIG else: diff --git a/platformio/commands/debug/initcfgs.py b/platformio/commands/debug/initcfgs.py index 81af4a21..62f36c0d 100644 --- a/platformio/commands/debug/initcfgs.py +++ b/platformio/commands/debug/initcfgs.py @@ -94,7 +94,7 @@ end set language auto """ -MSPDEBUG_INIT_CONFIG = """ +GDB_MSPDEBUG_INIT_CONFIG = """ define pio_reset_halt_target end