From: Christoph K. <ku...@ku...> - 2020-12-08 14:57:54
|
I have the following setup: Nucleo stm32f411 board. ST-LINK on board wired to external device. Attached as the external target is a cheapo china board (STM32-407-DIYMORE) . Attached is the OpenOCD server log as well as the gdb session. I’m wondering about the following effect/message: $ ./GDB GNU gdb (GNU Tools for Arm Embedded Processors 8-2018-q4-major) 8.2.50.20181213-git Copyright (C) 2018 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=x86_64-apple-darwin10 --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". warning: No executable has been specified and target does not support determining executable automatically. Try using the "file" command. 0x60383f04 in ?? () Loading section .text, size 0x3b80 lma 0x0 Start address 0x3a0e, load size 15232 Transfer rate: 121856 bits in <1 sec, 15232 bytes/write. Unable to match requested speed 2000 kHz, using 1800 kHz Unable to match requested speed 2000 kHz, using 1800 kHz timed out while waiting for target halted TARGET: stm32f4x.cpu - Not halted (gdb) OpenOCD: $ ./DEBUG xPack OpenOCD, x86_64 Open On-Chip Debugger 0.10.0+dev-00378-ge5be992df (2020-06-26-12:31) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html 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 : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : clock speed 2000 kHz Info : STLINK V2J34M25 (API v2) VID:PID 0483:374B Info : Target voltage: 3.231979 Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints Info : starting gdb server for stm32f4x.cpu on 4242 Info : Listening on port 4242 for gdb connections Info : accepting 'gdb' connection on tcp/4242 target halted due to debug-request, current mode: Handler HardFault xPSR: 0x01000003 pc: 0xfffffffe msp: 0x0cfec498 Info : device id = 0x10076413 Info : flash size = 1024 kbytes Info : flash size = 512 bytes Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz Error: timed out while waiting for target halted TARGET: stm32f4x.cpu - Not halted Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz Error: timed out while waiting for target halted TARGET: stm32f4x.cpu - Not halted in procedure 'ocd_gdb_restart' Warn : target stm32f4x.cpu is not halted (add breakpoint) Error: can't add breakpoint: target running Warn : target not halted Info : target stm32f4x.cpu was not halted when step was requested Info : halted: PC: 0x00003a0e Info : dropped 'gdb' connection Info : accepting 'gdb' connection on tcp/4242 Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz Error: timed out while waiting for target halted TARGET: stm32f4x.cpu - Not halted Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz Error: timed out while waiting for target halted TARGET: stm32f4x.cpu - Not halted Info : dropped 'gdb' connection Info : accepting 'gdb' connection on tcp/4242 target halted due to debug-request, current mode: Handler HardFault xPSR: 0x00000003 pc: 0x60383f04 msp: 00000000 Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz Error: timed out while waiting for target halted TARGET: stm32f4x.cpu - Not halted .gdbinit: target extended-remote :4242 file ./firmware.elf load mon reset halt — Christoph |