Codewarrior interruption syntax

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

Codewarrior interruption syntax

跳至解决方案
1,659 次查看
alexishernandez
Contributor III

Hi community,
I'm using CodeWarrior 11.0 and when trying to run an example for the s12zvl found out a syntax error:
interrupt VectorNumber_Vtim0ch3 void TIMER0_CHANNEL3_ISR(void)
Why is this marked as a syntax error?, How should be the correct declaration? 

Best regards 

标签 (1)
标记 (2)
1 解答
1,346 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Alexis Hernandez,

What about the syntax error message?

There is a DOC about how to configure the interrupt function on CW for S12Z ,

you can have a look :

How to write interrupt function in codewarrior10.7 

Or you can also refer to the demo code under CodeWarrior:

CW MCU v11.0\MCU\CodeWarrior_Examples\Processor_Expert\HCS12Z 


Have a great day,
TIC

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

在原帖中查看解决方案

3 回复数
1,347 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Alexis Hernandez,

What about the syntax error message?

There is a DOC about how to configure the interrupt function on CW for S12Z ,

you can have a look :

How to write interrupt function in codewarrior10.7 

Or you can also refer to the demo code under CodeWarrior:

CW MCU v11.0\MCU\CodeWarrior_Examples\Processor_Expert\HCS12Z 


Have a great day,
TIC

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

1,346 次查看
alexishernandez
Contributor III

Hi Alice,
It's nice to hear from you again. Indeed, my question is the same as the one showed in the Link that you provided (sorry, i looked for something similar but didn't find that post, otherwise i would not asked the same).
  The sysntax error message just appears in the editor (nothing in the Console or "Problems" Tab):
pastedImage_1.png
The provided Technical Note TN101 was really clear, now this syntax has completely sense for me.
Is there any other technical note or any other kind of documentation regarding the creation/ modification of a PRM file?.
(I will mark this thread as answered because the information required was already solved, that last comment about the PRM files is just a "nice to have" combined with the Technical Note).

Thanks for your support! :smileyhappy:


Best Regards

0 项奖励
1,346 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Alexis,

Sorry there isn't a DOC describe the .prm file in detail, I think you can refer to

"MCU_Build_Tools_Utilities" under CW , about the Linking Issues part.

BR

Alice