STM32
直播中

杨帆

7年用户 1409经验值
私信 关注
[问答]

mp157 m4内核开发,不能在线仿真报错了怎么解决?

Open On-Chip Debugger 0.12.0-00024-gc3ff39f8b (2023-06-26-16:51) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.htmlsrst_only srst_pulls_trst srst_gates_jtag srst_open_drain connect_deassert_srst
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : STLINK V2J43M28 (API v2) VID:PID 0483:3752
Info : Target voltage: 3.219856
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : clock speed 4000 kHz
Info : stlink_dap_op_connect(connect)
Info : SWD DPIDR 0x6ba02477
Info : stlink_dap_op_connect(connect)
Info : SWD DPIDR 0x6ba02477
Info : [STM32MP157DACx.cm4] Cortex-M4 r0p1 processor detected
Info : [STM32MP157DACx.cm4] target has 6 breakpoints, 4 watchpoints
Info : STM32MP157DACx.cpu0: hardware has 6 breakpoints, 4 watchpoints
Info : STM32MP157DACx.cpu1: hardware has 6 breakpoints, 4 watchpoints
Info : gdb port disabled
Info : gdb port disabled
Info : gdb port disabled
Info : starting gdb server for STM32MP157DACx.cpu0 on 3334
Info : Listening on port 3334 for gdb connections
Info : starting gdb server for STM32MP157DACx.cm4 on 3333
Info : Listening on port 3333 for gdb connections
Info : [STM32MP157DACx.cm4] external reset detected
Info : accepting 'gdb' connection on tcp/3333
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted
Error executing event gdb-attach on target STM32MP157DACx.cm4:
Info : New GDB Connection: 1, Target STM32MP157DACx.cm4, state: reset
Warn : GDB connection 1 on target STM32MP157DACx.cm4 not halted
Warn : negative reply, retrying
Warn : negative reply, retrying
Info : accepting 'gdb' connection on tcp/3333
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted
Error executing event gdb-attach on target STM32MP157DACx.cm4:
Info : New GDB Connection: 2, Target STM32MP157DACx.cm4, state: reset
Warn : GDB connection 2 on target STM32MP157DACx.cm4 not halted
Warn : negative reply, retrying
Warn : negative reply, retrying
Info : stlink_dap_op_connect(connect)
Info : SWD DPIDR 0x6ba02477
Info : Deferring arp_examine of STM32MP157DACx.cm4
Info : Use arp_examine command to examine it manually!
Info : stlink_dap_op_connect(reconnect)
Info : SWD DPIDR 0x6ba02477
Info : stlink_dap_op_connect(connect)
Info : SWD DPIDR 0x6ba02477
Info : [STM32MP157DACx.cm4] Cortex-M4 r0p1 processor detected
Info : [STM32MP157DACx.cm4] target has 6 breakpoints, 4 watchpoints
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted
Error: Failed to write memory at 0x10006e40
Error: Failed to write memory at 0x10007900
Polling target STM32MP157DACx.cpu0 failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
Polling target STM32MP157DACx.cpu1 failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
Info : dropped 'gdb' connection
Polling target STM32MP157DACx.cpu0 failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 300ms
Polling target STM32MP157DACx.cm4 failed, trying to reexamine
Error: Failed to read memory at 0xe000ed00
Examination failed, GDB will be halted. Polling again in 100ms
shutdown command invoked
Info : dropped 'gdb' connection



回帖(1)

一曲作罢

2024-7-2 16:50:45
从您提供的错误信息来看,您正在使用OpenOCD进行MP157 M4内核的在线仿真,但是遇到了一些问题。以下是一些建议来解决这个问题:

1. 确保您的硬件连接正确:检查您的MP157开发板与计算机之间的连接是否正确,确保所有的接线都已正确连接。

2. 检查OpenOCD配置文件:确保您使用的OpenOCD配置文件与您的MP157开发板和目标芯片兼容。您可能需要根据您的开发板和芯片型号调整配置文件。

3. 更新OpenOCD:您当前使用的OpenOCD版本是0.12.0-00024-gc3ff39f8b,尝试更新到最新版本,以解决可能的已知问题。

4. 检查ST-LINK驱动程序:确保您的ST-LINK驱动程序已正确安装并更新到最新版本。这可以通过访问STMicroelectronics官方网站下载并安装最新的驱动程序来完成。

5. 检查电源:确保您的开发板电源稳定,因为不稳定的电源可能会影响仿真过程。

6. 使用其他仿真工具:如果问题仍然存在,您可以尝试使用其他仿真工具,如Keil MDK或IAR Embedded Workbench,看看是否能够解决问题。


举报

更多回帖

发帖
×
20
完善资料,
赚取积分