Getting some erratic RTT output when I added sleep (WFI) to my stm32f411re design. Basically when I start a debug session, I don't see any RTT output (as the code basically starts up and goes into SLEEP (not stop or standby).. It stays in Sleep until an RTC wake up interrupt occurs. The code has RTT output leading up to this point, but none of it is shown. However if I pause the debugger and resume it'll print out all the outputs that didn't come out to begin with.
I see some previous forum posts in 2016 regarding stm32 issues with sleep and J-Link not able to read data.
I have turned on the DBGMCU during sleep mode, so HCLK stays attached to the debugging unit on the MCU.
are we still in the same boat with regards to being unable to debug stm32's with sleep mode enabled? it would sure be useful.. Do some of the newer stm32L4 parts have the same problems? Or is this in general a problem across all the cortex-M4 variants?
cheers,
Paul
I see some previous forum posts in 2016 regarding stm32 issues with sleep and J-Link not able to read data.
I have turned on the DBGMCU during sleep mode, so HCLK stays attached to the debugging unit on the MCU.
cheers,
Paul