NMI/PA4 setup on the K26 using PE

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

NMI/PA4 setup on the K26 using PE

ソリューションへジャンプ
658件の閲覧回数
therealfreegeek
Contributor IV

System - KDS 3.1 with all the updates

 

I just started a new project using the K26 and tried to find where the NMI/PA4 is controlled within PE but could not find it.

 

I did find one of Erich's old blogs on the subject but it highlights this in an older version of PE. Can anyone help with this as it does not seem to be within the CPU component any more?

 

Thanks

Jim

ラベル(1)
1 解決策
533件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Jim,

pastedImage_0.png

I found that if you leave the default pin_mux Component has the NMI enabled with a function call from hardware_init() as shown above.

If you "un-check" the "Init" on the SCB tab of the pin_mux Component then the NMI is left to default state.

I didn't see option for disabling NMI specifically but in the pin_mux.c there is the following function you can call to disable NMI:

void deinit_scb_pins(uint32_t instance)

{

  PORT_HAL_SetMuxMode(PORTA,4UL,kPortPinDisabled);

}

Someone else might have another (better) answer.

Regards,

David

元の投稿で解決策を見る

2 返答(返信)
534件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Jim,

pastedImage_0.png

I found that if you leave the default pin_mux Component has the NMI enabled with a function call from hardware_init() as shown above.

If you "un-check" the "Init" on the SCB tab of the pin_mux Component then the NMI is left to default state.

I didn't see option for disabling NMI specifically but in the pin_mux.c there is the following function you can call to disable NMI:

void deinit_scb_pins(uint32_t instance)

{

  PORT_HAL_SetMuxMode(PORTA,4UL,kPortPinDisabled);

}

Someone else might have another (better) answer.

Regards,

David

533件の閲覧回数
therealfreegeek
Contributor IV

Thanks David, I had never noticed or looked in the SCB tab before.

0 件の賞賛