Skip to main content
arjun.binu
Associate III
November 1, 2023
Solved

MCU hung after staying idle for hours

  • November 1, 2023
  • 1 reply
  • 991 views

In our system with SMT32G041F6P6 powered by a battery, device gets to hung state when kept idle for few hours or days (randomly). We have already implemented a window  watchdog to detect any faults. Even with watchdog enabled, we are getting this hang issue. ( In this hang state, we couldn't see any kind of LED UI indications upon pressing the button which is the expected behaviour in idle state)

When the NRST was checked , it was HIGH at that instant. At the instant, battery level is adequate. The device was only recovered by doing software reset. 

Best answer by arjun.binu

We've identified the issue, which stemmed from a corner case in the application where peripherals were being re-initialized unnecessarily. After debugging, we've addressed the corner case to prevent recurrence.

Thank you @Tesla DeLorean  for your earlier response regarding this matter.

1 reply

Tesla DeLorean
Guru
November 1, 2023

S T M 3 2

May be you're kicking the window watchdog. Look at how that's working, and perhaps pulse a GPIO so you can see it. Create some other signs-of-life indicators.

What about a regular watchdog? How is this "Software Reset" being initiated?

Or adding an external one for testing / evaluation. You're likely going to need to output some diagnostic/telemetry to understand what's happing internally.

Got some external inputs with high voltages? Perhaps you've got a latch-up situation?

 

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
arjun.binu
arjun.binuAuthorBest answer
Associate III
February 29, 2024

We've identified the issue, which stemmed from a corner case in the application where peripherals were being re-initialized unnecessarily. After debugging, we've addressed the corner case to prevent recurrence.

Thank you @Tesla DeLorean  for your earlier response regarding this matter.