cancel
Showing results for 
Search instead for 
Did you mean: 

Code doesn't execute after upload

kb24
Senior

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
kb24
Senior

Thank you.