2024-03-28 07:16 PM
Hi guys,
I am using the stm32f103rct6 microcontroller, and there is a hardware watchdog in the peripheral circuit to monitor the operation of the program, but after my program runs away, the watchdog will pull down the nrst pin flat, and sometimes the mcu cannot be started after reset. I would like to ask if anyone has encountered a similar situation and how to solve it.
THANKS!!!
2024-03-28 07:20 PM
Make sure the NRST is released
Make sure the BOOT0 pin is pulled low, and not floated, to ensure your code runs.
2024-03-28 07:47 PM
I'm sure the nrst pin is released and the boot0 pin keeps being pulled low. In order to solve this problem, I designed a circuit that outputs a reset signal to the MCU every 3 seconds, at first the MCU can be reset and restarted, but later the MCU cannot be restarted.
2024-03-28 08:35 PM
Disconnect your daplink , stlink or jtag, and try again later
2024-03-28 10:19 PM
Nothing connected, but the question still exist.
2024-03-28 10:24 PM
Is this board made by yourself or the official board of ST? If it is made by yourself, is it convenient to send the screenshot of the relevant part of NRST pin
2024-03-28 10:54 PM
2024-03-28 11:05 PM
感觉没什么问题,但是我建议你可以把TPL5010 R146 R151拆了试试,只留下R101和C126,先排除是NRST引脚硬件引起的问题。如果拆了还不好使,那估计就是你软件可能没写对了。
2024-03-28 11:23 PM
嗯嗯,好的,谢谢。大概率是软件问题,但软件问题无法被硬件复位这个有点奇怪,我一直没有找到原因,只有断电重新上电才能解决这个问题。
2024-03-28 11:24 PM
这种感觉像是复位电路的问题,我建议你试一试,毕竟软复位就一句语句就完事了,除非硬件问题否则都会成功复位的