'SCB_AIRCR' undeclared

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

'SCB_AIRCR' undeclared

Jump to solution
2,435 Views
vn2000
Contributor I

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.

Tags (1)
0 Kudos
Reply
1 Solution
2,329 Views
BlackNight
NXP Employee
NXP Employee

I'm using the LPC55S69, and there it is in the core header file:

pastedImage_1.png

I hope this helps,

Erich

View solution in original post

0 Kudos
Reply
2 Replies
2,330 Views
BlackNight
NXP Employee
NXP Employee

I'm using the LPC55S69, and there it is in the core header file:

pastedImage_1.png

I hope this helps,

Erich

0 Kudos
Reply
2,329 Views
vn2000
Contributor I

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.

0 Kudos
Reply