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
Solved! Go to Solution.
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
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