Skip to main content
kb24
Senior
May 10, 2020
Solved

Code doesn't execute after upload

  • May 10, 2020
  • 2 replies
  • 1426 views

I am using stm32G031K8 nucleo board. The board was working well, it started to reset itself continuously for some time, I could only see my uart message that says started, every time I erased the code and upload previously working versions. Then it started to not execute code, now I upload led blink project but still doesnt work. I can erase the flash then upload new code.

0693W000000X9hyQAC.png

0693W000000X9i3QAC.png

When I try to debug it, run button is passive at the beginning.

0693W000000X9iNQAS.png

When I press the reset button registers filled with 0xffff.

0693W000000X9iXQAS.png

It cant go to reset handler at the beginning, how can I fix it? Thanks.

This topic has been closed for replies.
Best answer by Tesla DeLorean

PC suggests running from ROM

Make sure BOOT0 pin (or options) are LOW to run user code.

If flash was previously empty you'll probably need to cycle the power.

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
May 10, 2020

PC suggests running from ROM

Make sure BOOT0 pin (or options) are LOW to run user code.

If flash was previously empty you'll probably need to cycle the power.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
kb24
kb24Author
Senior
May 10, 2020

Thank you.