I tried to implement a software reset for my LPCXpresso54628 development board using MCUXpresso IDE V10.3.0.
I am using this macro that I saw from one post:
#define Reset() (SCB_AIRCR = (0x5FA<<SCB_AIRCR_VECTKEY_Pos) | SCB_AIRCR_SYSRESETREQ_Msk)
I also used this 'include' file:
#include "core_cm4.h"
But when I compiled, I got this error:
'SCB_AIRCR' undeclared
Please anyone tell me where I can find the definition of this SCB_AIRCR register.
Thanks.
Solved! Go to Solution.
I'm using the LPC55S69, and there it is in the core header file:
I hope this helps,
Erich
I'm using the LPC55S69, and there it is in the core header file:
I hope this helps,
Erich
Hi Erich,
I still have a problem declaring this AIRCR register while compiling. In the mean time I found another suggestion on the Software Reset:
__NVIC_SystemReset()
This works fine for me. So that's all I need. Thanks.