Interrupts with KDS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,565件の閲覧回数
JohnMusselman
Contributor II

HI,

I am moving some code from an MK20 part (written with Code Warrior 10.6) to the MK22FN512 and using KDS.  Apparently KDS handles interrupts differently than CW and I am having trouble.  KDS does not give me access to the NVICICPR and NVICISER registers.  I need to know how to 1) enable an interrupt in the NVIC and 2) to point the interrupt vector to my interrupt routine.

Can anyone help?  Sorry for such a simple question, but I'd rather just translate these two tiny bits of code and be on my way rather than spend a week figuring out processor expert or digging through the overwhelming documentation.

Thanks in advance!

John

0 件の賞賛
返信
1 解決策
1,254件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello John:

You may refer to the following thread about the same question:

Re: setup interrupts KDS


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,255件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello John:

You may refer to the following thread about the same question:

Re: setup interrupts KDS


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,254件の閲覧回数
JohnMusselman
Contributor II

Jorge,

Thanks.  Yes, with KDS the definition of the NVIC registers has changed.  NVICISER1 is now NVIC-->ISER[1], for example.  The proper files are already included in the project.  I'm still trying to get the board to work so can't verify that this and the interrupt vector actually work, but it does build now.

John

0 件の賞賛
返信