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.
评分
查看全部评分
确实。如何设置这个调式口??请详细指点下,非常感谢
把这选上就是SWD 模式了.
大神,我照这样子试过了,还是不行。能不能给个STM32CuteMX 的设置文件呀?
这个是复位方式设置问题
我在keil下用ulink下载的时候,刚开始也是要按住复位,点下载,马上松开才能下载成功。
但是同事用jlink就好用,所以很纳闷。后了经测试,是我的复位方式有问题。
复位方式一共有4种,Auto detect、HW RESET、SYSRESETREQ、VECTRESET。
没有硬件复位信号的情况下,要选择SYSRESETREQ才可以。具体在你的环境下,选项在哪不清楚,但是这几种方式应该是有的吧。
这四个选项的定义:
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.
HW RESET意思就是硬件复位,SYSRESETREQ就是只给M内核和片上外设复位,VECTRSET就是只给M核复位。Auto detect就是自动选择上面的三个中的一个复位。
评分
查看全部评分
大神,能不能详细下下,如何选择SYSRESETREQ,我是新手,现在工程都是使用STM32CuteMX 生成的。
不行就检查你板子问题了,或者你是不是用杜邦线的
评分
查看全部评分
没用过STM32CuteMX,这只根仿真和下载有关系,你找找相关选项
评分
查看全部评分
评分
查看全部评分