Using makefile

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

Using makefile

1,987 Views
Ansi_Cartman
Contributor I

Hi everyone,

 

I am using a CodeWarrior Development Studio for DSC56800/E version 8.1.1a. (56F8037, 56F8025 etc dscs).
I want to be able to compile and create an elf and .S file without using IDE.  I was able to create a makefile
using Project - Export Project as GNU Makefile. The question is how do I use this file to compile and create .elf and .S?

 

Thanks,
Ansi_Cartman

Labels (1)
Tags (1)
0 Kudos
3 Replies

592 Views
J2MEJediMaster
Specialist I

Look in the following directories:

 

{CodeWarrior Installation}\DSP56800x_EABI_Tools\command_line_tools\ and study the contents of mwld56800e.txt. This has information on using the command line linker and its control switches. The -srec switch should generate a S-record file for you.

 

In the {CodeWarrior Installation}\Help directory, look for the Build Tools Reference manual (56800x_Build_Tools_Reference.pdf) and check out the chapter, Using the Build Tools on the Command Line for more information.

 

---Tom

 

0 Kudos

592 Views
Ansi_Cartman
Contributor I

Hi Tom,

 

Can you give a simple example siting how this can be done. I have attached a sample code. Can you show how I can compile this and generate the -srec.

 

Thanks in advance,

Ansi_Cartman

 

sample.zip

Message Edited by t.dowe on 2009-09-30 11:29 AM
0 Kudos

592 Views
trytohelp
NXP Employee
NXP Employee

Hi,

 

Attached you will find an example.

 

Have a look to the .bat file.

 

Hope this will help you.

 

Regards

Pascal

command_file.zip

Message Edited by t.dowe on 2009-10-13 10:19 AM
0 Kudos