cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with debugging using keil

ZYang.2
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

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.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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.