Bootup detection

#1

Hiya,

How can my legato app determine if the processor has booted from been ‘reset’ (i.e. power cycle or reset) or has woken up from ULPM?

The boot reason API only appears to provide info for ULPM wakeup.

ciao, Dave

#2

le_info_GetResetInformation() can let you know more about reset cause.
https://docs.legato.io/latest/le__info__interface_8h.html#ade02c6bc81df0f95a321ba3823d34ae1

You can test this with “cm info”.

#3

Cool, thanks.

I’ll look into it and see if it does what I need.

ciao, Dave

#4

Hi @davidc,
did you find the information you needed?
best regards,

#5

Hi,

I’m still working through it.

ciao, Dave