2025-06-19 3:44 AM
Hello All,
I am working on STM32WLE5 , and low power mode used for controller is stop 2 mode. And I am using MSI at 4Mhz as system clock. When i enable debugger mode, controller takes reset after a while and reset type shown is also not correct. While controller is in stop 2 mode, 3 timers are running for the walk by purpose . I have gone through debug configurations and they are ok i think.
Can you please help, what might be the issue?
Thanks
2025-06-20 10:33 PM - edited 2025-06-20 10:51 PM
Hello community Members,
I have one more doubt on this-
I have make this DBG_WWDG_STOP high in DBGMCU_APB1FZR1 register which means WWDG is frozen while CPU is in debug mode but i am refreshing at some times.
Can this create problem ? Could this be the reason of reset or something else.
Waiting for fruitful response.
Thanks & Regards
Rohan Sharma
2025-06-21 1:48 AM
@Ronik_123 wrote:When i enable debugger mode, controller takes reset after a while
Not sure what you mean by "enable debugger mode" or by "controller takes reset" ?
How long is "a while" - seconds? minutes? hours? days? is it repeatable?
Please provide some more detail - ideally, a minimum but complete example which illustrates the problem.
@Ronik_123 wrote:reset type shown is also not correct.
Shown where?
What is shown?
What were you expecting?
@Ronik_123 wrote:for the walk by purpose .
Do you mean for stepping in the debugger?
@Ronik_123 wrote:I have gone through debug configurations and they are ok i think.
You could post them for people to see & check?
2025-06-23 10:35 PM - edited 2025-06-24 1:19 AM
Hi,
FYI, system configuration is as per below,
-> clock MSI 4 MHz,
-> LPM enabled with stop 2 mode,
-> time base is RTC,
-> radio is used in FSK mode, walk-by* mode is enabled
-> WWDG is enabled
-> DEBUG mode is enabled
-> LPUART is enabled, clock source is LSE with wakeup on start bit
*walk-by means radio is sending data in every 15 seconds
Now the problem statement is, we have seen reset during DEBUG mode enabled and this behavior is random. If we disable the DEBUG mode then there is no problem.
Reset reason is WWDG, but don't know why? FYI, DBG_WWDG_STOP is set i.e. WWDG should be disable in DEBUG mode.
Thanks & Regards
Piyush
2025-06-24 8:06 AM
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly