Workspace does not compile

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

Workspace does not compile

713 Views
abhi1992
Contributor II

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

4 Replies

505 Views
abhi1992
Contributor II

Hi Daniel,

Thanks for the support. it helped.

Regards,

Abhishek

0 Kudos

505 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

What message from CW do you get?

Regards,

Daniel

505 Views
abhi1992
Contributor II

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...

Capture1.JPG

0 Kudos

505 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

0 Kudos