Thanks for that, tried that code but the SRSR is always 1 on power off\on, won't work in this case with the T4.x
if (SRSR & SRC_SRSR_IPP_USER_RESET_B) {
// This case probably can't occur on Teensy 4.x
// because the bootloader chip...
let me know what you think of this,
as a test setup to start with
I know this only gives me hardware/software or watchdog flag
But since I don't have any software reboots in my code this is a work around... maybe
only question is wdt.expired()...
I'm looking for help in detecting when the teensy is powered off/on vs a software reset.
This is so I can keep track of the power cycles. I tried to just inc a counter in setup() but I
need to know if the unit was unpluged (hard reset) and keep a...