'SCB_AIRCR' undeclared

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

'SCB_AIRCR' undeclared

ソリューションへジャンプ
3,519件の閲覧回数
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,413件の閲覧回数
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,414件の閲覧回数
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,413件の閲覧回数
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 件の賞賛
返信