How to generate s12g64 mxCAN with PE in CW5.2

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

How to generate s12g64 mxCAN with PE in CW5.2

700 Views
yikunliu
Contributor II

hi

   i want to use s12g64 mxCAN module,but PE can`t generate code completely

   E.g     no mxCAN rx/tx interrupt code in Event.c

              or  no External_clock_enable code in Cpu,c 

   i need add  " setReg8(CPMUOSC, 0x80U);" in EntryPoint() when i use oscillator clock.

   but sometimes PE could cover my code in generate c file and i need to add " setReg8(CPMUOSC, 0x80U);" again.

   so angry

   i need help

   thank you

pastedImage_1.png

Labels (1)
0 Kudos
Reply
1 Reply

612 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello yikun liu,

Which License of CW do you used ? Special , Basic , Standard , Professional ?

If use Professional , you can use the  FreescaleCAN component,  it includes the interrupt code in event .c :

pastedImage_1.png

other versions only have the component of Init_MSCAN, this component only do some initialization function.


Have a great day,
TIC

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