cancel
Showing results for 
Search instead for 
Did you mean: 

Enter the interrupt handler when stepping

Ebun.1
Senior

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.

1 ACCEPTED SOLUTION

Accepted Solutions
KnarfB
Principal III

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

View solution in original post

2 REPLIES 2
KnarfB
Principal III

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

Hi KnarfB

Sounds like a chip-dependent bug.

I understood.

Thank you for information.