Codewarrior interruption syntax

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Codewarrior interruption syntax

Jump to solution
1,622 Views
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 

Labels (1)
1 Solution
1,309 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

3 Replies
1,310 Views
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,309 Views
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 Kudos
1,309 Views
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