cancel
Showing results for 
Search instead for 
Did you mean: 

Is anybody able to debug application with STM32H7 and STOP mode?

PHlin.1
Associate III

Hello,

I'm working on low power application based on STM32H7A3 and I'm not able to get to work debugging together with STOP mode. When the MCU finish the STOP mode, next time I click on resume button the debugger give me message "Program received signal SIGTRAP, Trace/breakpoint trap. 0xa05f0000 in ?? ()" and according the debugger whole MCU memory is overwritten with value "01005FA0" (based on memory view window)

here is my thread with additional information:

https://community.st.com/s/question/0D73W000000PEtU/unable-to-debug-in-stop-mode-break-at-address-0xa05f0000-with-no-debug-information-available

I'm using RTC to wake up the MCU after some time. I tested it also on STM32H757 and got the some result so it will be general problem with STM32H7 or something I'm doing wrong.

Using STM32CubeIDE 1.3.0, content of debug control register is "0x6001bf" which should be fine for debugging in low power mode.

I'll appreciate any help or hints.

Thanks,

Petr

2 REPLIES 2
Uwe Bonnes
Principal III

Did you enable the needed bits in DBGMCU_CR of the needed CPUs?

yes, it's in the text above, that content of debug control register is "0x6001bf"

0693W000000U6WhQAK.png