Workspace does not compile

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Workspace does not compile

878件の閲覧回数
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 返答(返信)

670件の閲覧回数
abhi1992
Contributor II

Hi Daniel,

Thanks for the support. it helped.

Regards,

Abhishek

0 件の賞賛
返信

670件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

What message from CW do you get?

Regards,

Daniel

670件の閲覧回数
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 件の賞賛
返信

670件の閲覧回数
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 件の賞賛
返信