Hi,
I was reading through the errata for SoftReset and see a note: [161] RESET: Network core is not fully reset after Force-OFF
Can you please clarify how to reset both the Application and Network core on nRF5340.
Should I call NVIC_SystemReset() first and then the reset sequence mentioned in the Errata?
If so what is the way to detect that there was a SoftReset called by me? Is there a register to detect this? Or should I call the code below before NVIC_SystemReset()
*(volatile uint32_t *) 0x50005618ul = 1ul;
NRF_RESET->NETWORK.FORCEOFF = (RESET_NETWORK_FORCEOFF_FORCEOFF_Release <<
RESET_NETWORK_FORCEOFF_FORCEOFF_Pos);
delay_us(5); // Wait for at least five microseconds
NRF_RESET->NETWORK.FORCEOFF = (RESET_NETWORK_FORCEOFF_FORCEOFF_Hold <<
RESET_NETWORK_FORCEOFF_FORCEOFF_Pos);
delay_us(1); // Wait for at least one microsecond
NRF_RESET->NETWORK.FORCEOFF = (RESET_NETWORK_FORCEOFF_FORCEOFF_Release <<
RESET_NETWORK_FORCEOFF_FORCEOFF_Pos);
*(volatile uint32_t *) 0x50005618ul = 0ul;
Please let me know what is a graceful way to Reset;