How to use the makefile to build the XGATE application?

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

How to use the makefile to build the XGATE application?

跳至解决方案
1,546 次查看
admin
Specialist II

Hi,

 

I plan to use the makefile (batch mode) to build my XGATE application. First I create my project by using the CodeWarrior IDE's new project wizard and it works. Then I try to port it to the batch mode by manually creating the makefile, but it always failed. Because I didn't make any change to the source code, so I think there should be something that IDE has done for me.

 

Attached pls find my projects, one is "XGATE_IDE" which can work on the freescale's demo board DEMO9S12XEP100 (I use the PIT0 interrupt in the XGATE module and control the LED to flash). The other project is "XGATE_MakeFile" which failed to compile.

 

Thanks,

Simon

 

xgate.zip

Message Edited by t.dowe on 2009-09-03 04:35 PM
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
722 次查看
CrasyCat
Specialist III

Hello

 

There are  two problems in your .mak file:

   1- the command line for the burner should be

             $(BB) $(BBFLAGS) -F=.\prm\project.bbl

       instead of

               $(BB) $(BBFLAGS) -F=project.bbl

   2- As you are using some I/O registers in your application you need to add the file 

       MC9S12XEP100.c to your project's source files.

       Apparently in your make file you are not specifying the list of source files to link to the

       application. So you may need to duplicate the file MC9S12XEP100.c from

       {Install}\lib\hc12c\src into your project's Sources directory. Alternatively you have to change

       your make file to the the linker you want to add a source file from  {Install}\lib\hc12c\src to

       your project.

 

CrasyCat

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
723 次查看
CrasyCat
Specialist III

Hello

 

There are  two problems in your .mak file:

   1- the command line for the burner should be

             $(BB) $(BBFLAGS) -F=.\prm\project.bbl

       instead of

               $(BB) $(BBFLAGS) -F=project.bbl

   2- As you are using some I/O registers in your application you need to add the file 

       MC9S12XEP100.c to your project's source files.

       Apparently in your make file you are not specifying the list of source files to link to the

       application. So you may need to duplicate the file MC9S12XEP100.c from

       {Install}\lib\hc12c\src into your project's Sources directory. Alternatively you have to change

       your make file to the the linker you want to add a source file from  {Install}\lib\hc12c\src to

       your project.

 

CrasyCat

 

0 项奖励
回复