Skip to main content
HHich.1
Associate
June 7, 2023
Solved

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

  • June 7, 2023
  • 4 replies
  • 4543 views

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

This topic has been closed for replies.
Best answer by HHich.1

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

4 replies

TDK
June 9, 2023

> 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
HHich.1Author
Associate
June 10, 2023

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
Principal III
June 10, 2023

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

HHich.1
HHich.1AuthorBest answer
Associate
July 24, 2023

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