I Downloaded a sample workspace for MC9S12G128 controller named " MSCAN driver for S12(X) devices " from NXP website see link:
http://www.nxp.com/products/automotive-products/smart-power-drivers/high-side-switches/mc9s12g128-ul...
The workspace named " msCAN Driver S12G " for MC9S12G128 controller does not compile. I tried to fix it but couldn't get through it. Please help if someone can fix it.
Original Attachment has been moved to: MSCAN_S12_DEVD.zip
Hi Daniel,
Thanks for the support. it helped.
Regards,
Abhishek
Hi,
What message from CW do you get?
Regards,
Daniel
Hi Daniel,
It is a syntax type error. Please have have a look at attached snip below. Can you try compiling the same work-space which I downloaded from st website. Please refer this link and download the Work-space named " MSCAN driver for S12(X) devices " . See Link:
http://www.nxp.com/products/automotive-products/smart-power-drivers/high-side-switches/mc9s12g128-ul...
Hi,
There is a problem in header files.
Header file msCANReg.h defines unions (such as CANCTL0) that are already defined in the original S12G128 header file mc9s12g128.h and used in the mc9s12g128.c file.
I have commented all the declarations in the mc9s12g128.h, mc9s12g128.c files and the CW5.1 doesn’t complain anymore. But I haven't tested the driver after the modification.
Regards,
Daniel