It is an STM32L452RE connected to with a Nucleo-64 external board for debugging
With these board.txt settings
Quote:# Sketch1 build property overrides
#
tools.stlinkv2.path={runtime.tools.xpack-arm-none-eabi-gcc.path}/bin
tools.stlinkv2.server.targetCmd= -f "board/st_nucleo_f0.cfg"
Openocd log:
Quote:Warn : Interface already configured, ignoring
Error: already specified hl_layout stlink
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : clock speed 1000 kHz
Info : STLINK V2J37M26 (API v2) VID:PID 0483:374B
Info : Target voltage: 6.082431
Warn : unexpected idcode: 0x2ba01477
Error: expected 1 of 1: 0x0bb11477
The output is:
"Unable to start debugging, GDB exited unexpectedly with exit code 1 (0x1).
The debug console prints:
Quote:openocd: Open On-Chip Debugger 0.10.0+dev-01058-g853a05287 (2020-02-13-16:41)
openocd: Licensed under GNU GPL v2
openocd: For bug reports, read
openocd:
http://openocd.org/doc/doxygen/bugs.html openocd: debug_level: 2
openocd:
=thread-group-added,id="i1"
GNU gdb (xPack GNU Arm Embedded GCC, 32-bit) 8.3.0.20190709-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<
http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<
http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
=cmd-param-changed,param="pagination",value="off"
SystemClock_Config () at nts\NUCLEO_F030R8\variant.cpp:145
145 while (1);
Note: automatically using hardware breakpoints for read-only addresses.
Program received signal SIGINT, Interrupt.
SystemClock_Config () at nts\NUCLEO_F030R8\variant.cpp:145
145 while (1);
Kill the program being debugged? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) killed]
The program '' has exited with code 0 (0x0).
With these board.txt commands
Quote:# Sketch1 build property overrides
#
tools.stlinkv2.path={runtime.tools.xpack-arm-none-eabi-gcc.path}/bin
tools.stlinkv2.server.targetCmd= -f "board/st_nucleo_l4.cfg"
tools.stlinkv2.server.initCmd=-c "init"
The DebugOpenOCD.log contains
Quote:Warn : Interface already configured, ignoring
Error: already specified hl_layout stlink
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : clock speed 500 kHz
Info : STLINK V2J37M26 (API v2) VID:PID 0483:374B
Info : Target voltage: 6.079260
Info : stm32l4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Listening on port 3333 for gdb connections
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting 'gdb' connection on tcp/3333
target halted due to debug-request, current mode: Thread
xPSR: 0x21000000 pc: 0x08001e30 msp: 0x20001f90
Info : device idcode = 0x20016462 (STM32L45/L46xx - Rev: Y)
Info : flash size = 256kbytes
Info : flash mode : single-bank
Info : dropped 'gdb' connection
The Debug log:
Quote:openocd: Open On-Chip Debugger 0.10.0+dev-01058-g853a05287 (2020-02-13-16:41)
openocd: Licensed under GNU GPL v2
openocd: For bug reports, read
openocd:
http://openocd.org/doc/doxygen/bugs.html openocd: debug_level: 2
openocd:
=thread-group-added,id="i1"
GNU gdb (xPack GNU Arm Embedded GCC, 32-bit) 8.3.0.20190709-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<
http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<
http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
=cmd-param-changed,param="pagination",value="off"
SystemClock_Config () at nts\NUCLEO_F030R8\variant.cpp:145
145 while (1);
Note: automatically using hardware breakpoints for read-only addresses.
Program received signal SIGINT, Interrupt.
SystemClock_Config () at nts\NUCLEO_F030R8\variant.cpp:145
145 while (1);
Kill the program being debugged? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) killed]
The program '' has exited with code 0 (0x0).