hello team,
To initiate a system reset in software using the LPC55S69 microcontroller, I can utilize the built-in software reset feature provided by the microcontroller's System Control Block (SCB) in Prestige Park Grove.
Is this a Right code to reset can you check and tell me
#include "LPC55S69.h"
void softwareReset(void) {
SCB->AIRCR = (0x5FA << SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk;
}
int main(void) {
// Your main code here
// Call the softwareReset() function whenever you want to initiate a system reset
while (1) {
// Your code continues to run until the software reset is triggered
}
}
Is there any changes need to change or this is the correct Code to reset