2020-11-17 08:14 PM
Hi
I was using Keil 5 to debug my code on #1 board, somehow the code was kind of stuck, it has no response to reset, and cannot run anywhere, the same code works with no issue on the other self-build board(these two are basically the same), this #1 board works also with no issue earlier today, this situation just suddenly happened. It has no problem with compile, download, enter debug mode.... I`ve drained my brain and cannot figure out what is wrong,,, any suggestions??
Thanks in advance.
Solved! Go to Solution.
2020-11-26 12:39 PM
Make sure BOOT0 pin is pulled low.
Check clock settings and sources.
Add code to report if Error_Handler or HardFault_Handler are entered.
Check you are reconfiguring debug pins or entering low power states.
2020-11-26 11:14 AM
Hello @ZYang.2 ,
Welcome to the STM32 Community :)
Please share as much details as possible to help you solve your issue.
Which device are you using ? Localize where the code hangs/stop, identify what is the problem that you see and when it occurs.
You can share a screenshot, or your code if this issue is not resolved.
Imen
2020-11-26 12:39 PM
Make sure BOOT0 pin is pulled low.
Check clock settings and sources.
Add code to report if Error_Handler or HardFault_Handler are entered.
Check you are reconfiguring debug pins or entering low power states.
2020-11-26 01:26 PM
Thanks clive1
The BOOT0 is exactly the reason why the code couldn`t run. I noticed that the voltage on BOOT0 was somehow pull to 2.7V.