Keil Stm32 在线仿真出现卡在0x20000000 BE00 B 0X2000001A
通过调试发现,仿真时无法仿真,但拔掉下载线重新上电程序正常运行。
最终发现设置Reset选项框,选择图中设置(原来为Autodetect):
问题解决。
网上查到:
- Reset — HW RESET performs a hardware reset by asserting the hardware reset (HW RESET) signal.
- Reset — SYSRESETREQ performs a software reset by setting the SYSRESETREQ bit. The Cortex-M core and on-chip peripherals are reset.
- Reset — VECTRESET performs a software reset by setting the VECTRESET bit. Only the Cortex-M core is reset. The on-chip peripherals are not affected. For some Cortex-M devices, VECTRESET is the only way to reset the core. VECTRESET is not supported on Cortex-M0 and Cortex-M1 cores.
- Reset — Autodetect selects one of the above reset methods based on the target device. The SYSRESETREQ method is used if an unknown device is detected.
作为参考。