×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Please help me compile this firmware

Please help me compile this firmware

Please help me compile this firmware

(OP)
I have the following makefile in my project listed at the bottom of this post.  I need to compile this so it produces a motorola S-19 record, which I believe is already set as an option in the makefile.

I'm trying to compile the following way from the command prompt.

imakew -f makefile.mak

where imakew is a makefile compiler from ImageCraft, where I belive the engineers who wrote the code got their compiler.

But I get the following error:

"cd usb; make all
The system cannot find the path specified.
imakew.exe Error Code 1"

I tried using GNU make like this:

make -f makefile.mak

and I get a similar error message:

"cd usb; make all
The system cannot find the path specified.
MAKE: *** [usb_lib] Error 1"

What can I be doing wrong?  How can I compile this?? Please Help!!  I can provide more information if needed, thanks in advance.

Here is the makefile:
-----------------------

# -lc12p

CC     = icc12w
CFLAGS =  -DDEBUG -Ic:\\progra~1\\icc12\\include -e  -l -v -Wf-cpdon
LFLAGS =  -Lc:\\progra~1\\icc12\\lib -m -btext:0xc000 -bdata:0x0800 -bextcode:0x0.0x1FFFF -dinit_sp:0x0c00 -fmots19
OBJS   = main.o gpio.o eeprom.o soundbank.o version.o update.o security.o termio.o queue.o vectors.o

.c.o:
    $(CC) $(CFLAGS) -c $?

impro:    $(OBJS) usb_lib imcore_lib i2c_lib
    $(CC) -o impro $(LFLAGS) $(OBJS) -llp12p -lc12p -lusb -limcore -li2c -lspi


usb_lib:
    cd usb; make all

imcore_lib:
    cd imcore; make all
    
i2c_lib:
    cd i2c/asm; make all    

clean:
    rm -rf *.o *.s19 *.lis *.lk *.s *.dp2 *.src *.lst *.mp *.i *.a

RE: Please help me compile this firmware

I assume you are trying to run this from windows no?

The command syntax shown here is done for unix. On unix, you can separate commands using ";". On dos, this is not feasible.

If I remember well, using gnu, you could try to replace the lines that way:

instead of:
     cd usb; make all
try:
     make -C usb all

Do the same for
      cd imcore; make all
      cd i2c/asm; make all

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources