How to generate s12g64 mxCAN with PE in CW5.2

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

How to generate s12g64 mxCAN with PE in CW5.2

843 次查看
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

标签 (1)
0 项奖励
回复
1 回复

755 次查看
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!
-----------------------------------------------------------------------------------------------------------------------