cancel
Showing results for 
Search instead for 
Did you mean: 

restart chip and restart debug session button doesn't reset MCU to startp in STM32cubeIDE

HHich.1
Associate II

Hello,

The debug reset button is supposed to reset the MCU to project start it which is main()

In my project, it was working fine until for no clear reason it stopped and now it throughs me to some random address.

I'm using STM32CubeIDE

Version: 1.12.1

Build: 16088_20230420_1057 (UTC)

STLink and STM32F407


_legacyfs_online_stmicro_images_0693W00000dDKLkQAO.png 

Any idea on how to fix this issue ?

thx

1 ACCEPTED SOLUTION

Accepted Solutions
HHich.1
Associate II

Thank you all for your feedback.
Issue found. The bootloader was missing after full erase of the chip

View solution in original post

4 REPLIES 4
TDK
Guru

> In my project, it was working fine until for no clear reason it stopped and now it throughs me to some random address.

Should work. What address? Sounds like it's doing something. Perhaps a bootloader is being run instead.

Try on a different board/project.

If you feel a post has answered your question, please click "Accept as Solution".
HHich.1
Associate II

Thank you for your feedbakc,

I created a new project using CubeMX and it is working fine but in my main project it doesn't work.

No bootlaoder involved here.

How would I investigate this issue further ?

Piranha
Chief II

Can be related to low-power modes. Try setting the debugger to a hardware reset type.

HHich.1
Associate II

Thank you all for your feedback.
Issue found. The bootloader was missing after full erase of the chip