Hi!
From the code of the TI EVM430fr6047 GUI code (http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/USSSWLib/USSSWLibWater/latest/ ) in hal_system.c, there is a function called hal_system_GetResetSource() that looks like this:
uint16_t hal_system_GetResetSource(void) { uint16_t reset_source = SYSRSTIV; SYSRSTIV = 0x00; if (reset_source > SYSRSTIV__RSTNMI) { return reset_source; } else { return 0x00; } }
What’s the logic in this? If it’s more than 4 you return 0, otherwise for “brownout”, “reset pin” and “unidentified” you return the value, which is 0 for unidentified. So unidentified will register as watchdog, brownout or somebody poking the reset pin will not register at all.
Thanks in advance!
Best regards,
Thibault