大家好,请教一个问题:我使用的是HC32F4A0芯片,板子上芯片原来GD32F407的,替换成了HC32,在仿真时,发现无法下载和仿真,log显示是无法复位和停止芯片,大概如下:
Mon Apr 18, 2022 13:22:50: Reset: S_RESET_ST never gets cleared. CPU seems to be kept in reset forever.
Mon Apr 18, 2022 13:22:50: Reset: Using fallback: Reset pin.
Mon Apr 18, 2022 13:22:50: Reset: Halt core after reset via DEMCR.VC_CORERESET.
Mon Apr 18, 2022 13:22:50: Reset: Reset device via reset pin
Mon Apr 18, 2022 13:22:50: RESET (pin 15) high, but should be low. Please check target hardware.
Mon Apr 18, 2022 13:22:50: Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).
Mon Apr 18, 2022 13:22:50: Reset: Reconnecting and manually halting CPU.
。。。。
Mon Apr 18, 2022 13:22:58: Found SW-DP with ID 0x2BA01477
Mon Apr 18, 2022 13:22:58: Unknown DP version. Assuming DPv0
Mon Apr 18, 2022 13:22:58: AP map detection skipped. Manually configured AP map found.
Mon Apr 18, 2022 13:22:58: AP[0]: AHB-AP (IDR: Not set)
Mon Apr 18, 2022 13:22:58: AP[0]: Core found
Mon Apr 18, 2022 13:22:58: AP[0]: AHB-AP ROM base: 0xE00FF000
Mon Apr 18, 2022 13:22:58: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Mon Apr 18, 2022 13:22:58: Found Cortex-M4 r0p1, Little endian.
Mon Apr 18, 2022 13:22:58: CPU could not be halted
Mon Apr 18, 2022 13:22:58: CPU could not be halted
Mon Apr 18, 2022 13:22:58: Warning: Failed to halt CPU.
Mon Apr 18, 2022 13:22:58: Hardware reset with strategy 0 was performed
Mon Apr 18, 2022 13:22:58: Warning: Cannot read register 15 (R15) while CPU is running
Mon Apr 18, 2022 13:22:58: Warning: Cannot read register 17 (MSP) while CPU is running
Mon Apr 18, 2022 13:22:58: Warning: Cannot read register 18 (PSP) while CPU is running
Mon Apr 18, 2022 13:22:58: Warning: Cannot read register 20 (CFBP) while CPU is running
Mon Apr 18, 2022 13:22:58: Target reset
Mon Apr 18, 2022 13:22:58: Warning: Cannot read register 15 (R15) while CPU is running
Mon Apr 18, 2022 13:22:59: There was 1 warning during the initialization of the debugging session.
Mon Apr 18, 2022 13:22:59: Warning: CPU is not halted
板子上NRST引脚是电容接地的,是存在硬件问题吗?大家有什么建议?谢谢! |