How to use the makefile to build the XGATE application?

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

How to use the makefile to build the XGATE application?

Jump to solution
1,151 Views
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
Labels (1)
Tags (1)
0 Kudos
1 Solution
327 Views
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

 

View solution in original post

0 Kudos
1 Reply
328 Views
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 Kudos