Failed to execute MI command: target remote 192.168.1.244:4242
Error message from debugger back end: Non-stop mode requested, but remote does not support non-stop Failed to execute MI command: target remote 192.168.1.244:4242
Error message from debugger back end: Non-stop mode requested, but remote does not support non-stop Non-stop mode requested, but remote does not support non-stop
2021-01-15T08:07:36 INFO common.c: Loading device parameters.... 2021-01-15T08:07:36 INFO common.c: Device connected is: F4 device, id 0x10076413 2021-01-15T08:07:36 INFO common.c: SRAM size: 0x30000 bytes (192 KiB), Flash: 0x100000 bytes (1024 KiB) in pages of 16384 bytes 2021-01-15T08:07:36 INFO gdb-server.c: Chip ID is 00000413, Core ID is 2ba01477. 2021-01-15T08:07:36 INFO gdb-server.c: Listening at *:4242... 2021-01-15T08:08:05 INFO gdb-server.c: Found 6 hw breakpoint registers #此行开始 2021-01-15T08:08:05 INFO gdb-server.c: GDB connected. 2021-01-15T08:08:06 ERROR gdb-server.c: cannot recv: -2
pi@raspberrypi:/ $ openocd -f /usr/share/openocd/scripts/interface/stlink-v2-1.cfg -f /usr/share/openocd/scripts/target/stm32f4x.cfg Open On-Chip Debugger 0.10.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD adapter speed: 2000 kHz adapter_nsrst_delay: 100 none separate Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : clock speed 1800 kHz Info : STLINK v2 JTAG v37 API v2 SWIM v26 VID 0x0483 PID 0x374B Info : using stlink api v2 Info : Target voltage: 3.234714 Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints Info : accepting 'gdb' connection on tcp/3333 Info : device id = 0x10076413 Info : flash size = 1024kbytes undefined debug reason 7 - target needs reset Info : rejected 'gdb' connection, no more connections allowed Info : dropped 'gdb' connection
但是直接用arm-none-eabi-gdb裸连也可以
分析日志
您好!您提供的日志显示,您正在使用 Open On-Chip Debugger 0.10.0。根据日志,您的设备自动选择了第一个可用的会话传输 “hla_swd”。但是,系统无法匹配请求的速度 2000 kHz,因此使用了 1800 kHz。