2020-09-03 02:20 PM
Scope is configured correctly. Reading of CSR register is done way early in the code and is reliable. Register is cleared after reading. Scope is configured correctly.
When we trigger pin reset externally, we can catch it on the scope. When we trigger Watchdog reset, we can see the pulse on the pin but not when device is taking a reset on it's own.
What could it be?
2020-09-03 04:28 PM
Do you have a 0.1uF cap on the NRST pin? Could be quick enough that you don't see it. Although that seems far fetched.
Is the reset correlated with any program behavior?
2020-09-04 04:24 PM
2020-09-04 04:56 PM
I would put a 0.1uF to ground on the NRST pin to see if that fixes it. Could be something causing noise on that wire. Since you have no capacitance and just a weak pullup, it's going to be susceptible to noise. If that's not it, I'm not sure what else could be causing it.
2020-09-09 10:25 AM
Putting 0.1uF appears to have fixed it. I will keep monitoring and update here for everybody's benefit.