From 3f4677f8b40b2f45d3ae9c8b03b8f09f841ffc2d Mon Sep 17 00:00:00 2001 From: Techy <jk-suess@web.de> Date: Tue, 3 Sep 2019 16:03:55 +0000 Subject: [PATCH] fix(openocd-scripts): Always use SWD OpenOCD tried Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'. using a JLink debugger. Overriding it with SWD is what I did. With the CMSIS debugger OpenOCD you get lucky: Info : auto-selecting first available session transport "swd". Hope forcing it always to SWD will make it easier for others using different debuggers. --- Documentation/debugger.rst | 6 ++++++ openocd/scripts/target/max32665.cfg | 3 +++ 2 files changed, 9 insertions(+) diff --git a/Documentation/debugger.rst b/Documentation/debugger.rst index b0207c48..4c34ca02 100644 --- a/Documentation/debugger.rst +++ b/Documentation/debugger.rst @@ -115,6 +115,12 @@ command to soft-reset card10. ... (gdb) +.. note:: + You will also find the following self-describing gdb files in the firmware + root directory, which do not require additional arguments: + ``flash-all.gdb, flash-bootloader.gdb, + flash-both.gdb, flash-epicardium.gdb, flash-pycardium.gdb`` + .. warning:: If you are used to use ``mon reset halt``, be aware that the card10 prototypes do not connect the reset line to the debugger. OpenOCD is configured to only do diff --git a/openocd/scripts/target/max32665.cfg b/openocd/scripts/target/max32665.cfg index c79eb6fc..4a3487e4 100644 --- a/openocd/scripts/target/max32665.cfg +++ b/openocd/scripts/target/max32665.cfg @@ -1,6 +1,9 @@ # Maxim Integrated MAX32665 OpenOCD target configuration file # www.maximintegrated.com +# selecting transport method, to prevenet auto-selecting something else +transport select swd + # Set the reset pin configuration reset_config none -- GitLab