Hello,
Is is possible to read MCU reset reason during operation inside main()?
I am using SDL and SL_Init_ResetReason(). Inside this function SYSESR is being cleared. Off course I can read value of this register before calling SL_Init_ResetReason(). But how can this value be passed to main()?
I am conscious that I can use type=NOINIT for some data but unfortunately, this solution works only after SL_Init_Memory(RAMTYPE_RAM) is being called.
Is there any solution to keep any data recorded before executing SL_Init_Memory(RAMTYPE_RAM)?