Dear pablo,
I am very glad to receive your reply. At present, the wireless IC of my project needs to restart the device after being connected, so I need to judge the startup mode of lpc55s28. The following is the code I use to judge the restart.
power_device_reset_cause_t p_reset_cause;
power_device_boot_mode_t p_boot_mode;
uint32_t p_wakeupio_cause;
POWER_GetWakeUpCause(&p_reset_cause, &p_boot_mode, &p_wakeupio_cause);
if (p_reset_cause == kRESET_CAUSE_POR) {
power_on_flag = true;
}
Best wishes!