This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Help! Some runtime problems & Linking
- From: Robert Allen <rba_ny at yahoo dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 3 Aug 2004 14:40:15 -0700 (PDT)
- Subject: Re: [ECOS] Help! Some runtime problems & Linking
Hi,
I followed the advice given by Gary and Nick. It
makes fine and the program looks to eecute fine. But
its only when I specify some breakpoints, I get weird
things, like I'm not being able to see the step by
step execution. Sometimes I get the following error:
Breakpoint 1, cyg_user_start () at mcu_firmware.cc:35
35 mcu_firmware.cc: No such file or directory.
in mcu_firmware.cc
I have attached the makefile below.
Thanks for your help in advance.
Rob.
Makefile:
include $(INSTALL_DIR)/include/pkgconf/ecos.mak
XCC = $(ECOS_COMMAND_PREFIX)gcc
XCXX = $(XCC)
XLD = $(XCC)
CFLAGS = -I$(INSTALL_DIR)/include
CXXFLAGS = $(CFLAGS)
LDFLAGS = -nostartfiles -L$(INSTALL_DIR)/lib
-Ttarget.ld
OBJ = codes.o init.o io_lookup.o worker.o
iterator.o
# RULES
.PHONY: all clean
all: mcu
clean:
-rm -f $(OBJ) mcu_firmware.o mcu_firmware
a.out mcu
init.o: init.cc mcu_firmware.h
$(XCC) -c init.cc -o init.o $(CFLAGS)
$(ECOS_GLOBAL_CFLAGS)
io_lookup.o: io_lookup.cc init.o mcu_firmware.h
$(XCC) -c io_lookup.cc -o io_lookup.o
$(CFLAGS) $(ECOS_GLOBAL_CFLAGS)
iterator.o: iterator.cc init.o mcu_firmware.h
$(XCC) -c iterator.cc -o iterator.o $(CFLAGS)
$(ECOS_GLOBAL_CFLAGS)
codes.o: codes.cc init.o mcu_firmware.h
$(XCC) -c codes.cc -o codes.o $(CFLAGS)
$(ECOS_GLOBAL_CFLAGS)
worker.o: worker.cc mcu_firmware.h
$(XCC) -c worker.cc -o worker.o $(CFLAGS)
$(ECOS_GLOBAL_CFLAGS)
mcu_firmware.o: mcu_firmware.cc $(OBJ) mcu_firmware.h
$(XCC) -c mcu_firmware.cc -o mcu_firmware.o
$(CFLAGS) $(ECOS_GLOBAL_CFLAGS)
mcu_firmware: mcu_firmware.o mcu_firmware.h
$(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o
mcu_firmware mcu_firmware.o $(OBJ)
--- Robert Allen <rba_ny@yahoo.com> wrote:
> Thanks Gary and Nick. Now it looks fine.
>
> Rob.
>
> --- Gary Thomas <gary@mlbassoc.com> wrote:
>
> > On Mon, 2004-08-02 at 11:41, Robert Allen wrote:
> > > Thanks Nick. But still I couldn't figure out
> where
> > I'm
> > > going wrong. Please look below for the Makefile
> > I'm
> > > using for my application. Can someone point to
> me
> > > where I'm going wrong.
> >
> > Try using my build_Makefile scripts - this makes
> > building eCos
> > application makefiles much simpler (and they work
> > :-)
> > http://www.mlbassoc.com/examples/
> > There are a couple of different examples, using
> > different approaches
> > to Makefile construction.
> >
> > --
> > Gary Thomas <gary@mlbassoc.com>
> > MLB Associates
> >
> >
> > --
> > Before posting, please read the FAQ:
> > http://ecos.sourceware.org/fom/ecos
> > and search the list archive:
> > http://ecos.sourceware.org/ml/ecos-discuss
> >
> >
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail
>
> --
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss