'SCB_AIRCR' undeclared

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

'SCB_AIRCR' undeclared

跳至解决方案
3,561 次查看
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.

标记 (1)
0 项奖励
回复
1 解答
3,455 次查看
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 项奖励
回复
2 回复数
3,456 次查看
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 项奖励
回复
3,455 次查看
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 项奖励
回复