Skip to main content
Ebun.1
Senior
January 8, 2021
Solved

Enter the interrupt handler when stepping

  • January 8, 2021
  • 2 replies
  • 855 views

Thank you for helping.

environment:

stm32CubeIDE Ver1.3.0

TouchGFX Ver4.15.0

Board: STM32F746G-DISCO

When I step, it just enters the interrupt handler

I can't move on.

With STM32F769I-DISCO, there is no such symptom.

Is it a problem with the microcomputer?

Please tell me how to solve it.

This topic has been closed for replies.
Best answer by KnarfB

OpenOCD says while starting debugging the board.

...

Warn : Silicon bug: single stepping may enter pending exception handler!

...

And that's true. Has been discussed here and elsewhere before.

Edit: Some debuggers have workarounds (OpenOCD, Segger?), see e.g. http://openocd.zylin.com/gitweb?p=openocd.git;a=commit;h=a4ac56152d9fc13c3fa479397407d9b86ffb13d8

You can mask out a number of interrupts by using for example

__HAL_DBGMCU_FREEZE_TIM6();

at the beginning of main(), but not all.

hth

KnarfB

2 replies

KnarfB
KnarfBBest answer
Super User
January 8, 2021

OpenOCD says while starting debugging the board.

...

Warn : Silicon bug: single stepping may enter pending exception handler!

...

And that's true. Has been discussed here and elsewhere before.

Edit: Some debuggers have workarounds (OpenOCD, Segger?), see e.g. http://openocd.zylin.com/gitweb?p=openocd.git;a=commit;h=a4ac56152d9fc13c3fa479397407d9b86ffb13d8

You can mask out a number of interrupts by using for example

__HAL_DBGMCU_FREEZE_TIM6();

at the beginning of main(), but not all.

hth

KnarfB

Ebun.1
Ebun.1Author
Senior
January 19, 2021

Hi KnarfB

Sounds like a chip-dependent bug.

I understood.

Thank you for information.