This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RedBoot for EPXA1


Dear QiangHuang:

First, Thank you for your patience. :-)

I installed this epk by admistration tool, and choosen EPXA1 template
to build eCos lib. Then I maked simple test program to link eCos lib, and
got a srec file. Last, I use terminal software to load this srec file by
following
command. Are all steps correct ? The executed result seems wrong.

The eCos version I use is 2.0.

<------------->
+FLASH configuration checksum error or invalid key

RedBoot(tm) bootstrap and debug environment [REDBOOT]
Non-certified release, version UNKNOWN - built 12:26:44, Feb 23 2003

Platform: EPXA1 system (ARM9)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x02000000, 0x00002000-0x01f21000 available
FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
RedBoot> load -v -b 0x40000
CCEntry point: 0x00040040, address range: 0x00040000-0x000becc4
xyzModem - CRC mode, 11667(SOH)/0(STX)/0(CAN) packets, 4 retries
RedBoot> go 0x400040
$T0a0f:e4ba31ff;0d:b48cf401;#b1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  <----- very strange ? what is this ?
<------------->

The attached is the simple test program from book's CD. Thank you.

> The attached is the port I developped for Altera EPXA1 platform.

> How should I do next step ? Please help me.
> > That is not compatitable with EPXA1.
>
> > I use Altera ARM9/Excalibur board template from ecosconfig directly.
> > I think there should be some difference between that template and EPXA1,
> but
> > I don't know how can I patch it.
> >
> > My test program is very simple. I get it from a book "Embedded Software
> > Development with eCos" which is in Chap 12. The following is the
makefile.
> >
> > <------------->
> > PKG_INSTALL_DIR = /opt/ecos/ecos_install
> > XCC = /opt/ecos/gnutools/arm-elf/bin/arm-elf-gcc
> >
> > ## Build flags.
> > CFLAGS
> >
>
= -g -Wall -I$(PKG_INSTALL_DIR)/include -ffunction-sections -fdata-sections
> > LDFLAGS
> >
>
= -nostartfiles -L$(PKG_INSTALL_DIR)/lib -Wl,--gc-sections -Wl,--Map -Wl,bas
> > ic1.map
> > LIBS = -Ttarget.ld -nostdlib
> > LD  = $(XCC)
> >
> > ## Build rules.
> > all: basic1
> >
> > basic1.o: basic1.c
> >  $(XCC) -c -o $*.o $(CFLAGS) $<
> >
> > basic1: basic1.o
> >  $(LD) $(LDFLAGS) -o $@ $@.o $(LIBS)
> >
> > clean:
> >  -rm -f basic1.exe basic1.o basic1.map
> > <------------->
> >
> >
> > > yes, everything is working fine. try to run the test program
> individually
> > > and see the result.
> > > BTW how did you build the ecos test program? which template did u use?
> >
> > > I use the following command
> > >
> > > <arm-elf-objcopy -O ihex --change-address 0xc0000000 redboot.elf
> > > redboot.hex>
> > >
> > > to convert the redboot.elf (form your mail) to redboot.hex, and use
the
> > > following command
> > > to program into flash.
> > >
> > > <exc_flash_programmer -p -g -v -f redboot.hex>
> > >
> > > It appears the following message:
> > >
> > > <------------->
> > > Altera Excalibur Flash Programmer
> > > Version 2.2 Build 147 12/02/2002 SJ Full Version
> > > Copyright (C) 1991-2002 Altera Corporation
> > >
> > > Using JTAG cable "ByteBlasterMV [LPT1]"
> > > Using Excalibur EPXA1 (device 1 of 2)
> > > Detected input clock reference at 24.999076MHz
> > > Using 4MByte device (Bottom Boot, Intel compatible) attached to EBI0
> > >
> > > Programming (with verify) offsets 00000000h to 000188a3h
> > > from file: redboot.hex
> > >
> > > Percent Complete:  0__________25__________50__________75__________100
> > >                    .................................................
> > >
> > > Warning: The hex file has specified an non-zero execution start
address
> > > of c1f40040h, which is beyond the maximum offset of 000188a3h
> > >
> > > Flash programmed and verified successfully
> > > <------------->
> > >
> > > Then, I can use termial software to get response by setting 57600
8,N,1,
> > but
> > > the console
> > > appears the following message:
> > >
> > > <------------->
> > > +FLASH configuration checksum error or invalid key
> > >
> > > RedBoot(tm) bootstrap and debug environment [REDBOOT]
> > > Non-certified release, version UNKNOWN - built 12:26:44, Feb 23 2003
> > >
> > > Platform: EPXA1 system (ARM9)
> > > Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
> > >
> > > RAM: 0x00000000-0x02000000, 0x00002000-0x01f21000 available
> > > FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
> > > RedBoot>
> > >
> > > <------------->
> > >
> > > Is it everything OK?
> > >
> > > When I try to load the test program, but it seems no response. How
> should
> > > I do next step? Thank you in advance.
> > >
> > >
> > > > the redboot I made is configured at speed: 57600 so probably you can
> try
> > > to
> > > > set the speed.
> > > >
> > > >
> > > >
> > > > Dear QiangHuang:
> > > >
> > > > Thank you for your help. I've installed the redboot in EPXA1, and
> > > > I got response from console.
> > > >
> > > > Next step, I want to use eCos configuration tools to run tests, but
> > > > the output window told some error messages as the folloing. I have
> > > > no idea to slove it. Does anything wrong I do ?
> > > >
> > > > ps. Would you kind to send me the redboot.ecc you use for reference?
> > > > Thank you again.
> > > >
> > > > Run started
> > > > (gdb) set height 0
> > > > (gdb) set debug remote 0
> > > > (gdb) set remotebaud 56000
> > > > (gdb) target remote COM1
> > > > warning: Invalid baud rate 56000.  Closest values are 38400 and
57600.
> > > > COM1: Invalid argument.
> > > > (gdb) load
> > > > You can't do that when your target is `exec'
> > > > (gdb) break cyg_test_exit
> > > > Breakpoint 1 at 0x325c4: file
> > > > /ecos-c/cygwin/opt/ecos/ecos-2.0/packages/infra/v2_0/src/tcdiag.cxx,
> > line
> > > > 260.
> > > > (gdb) break cyg_assert_fail
> > > > Function "cyg_assert_fail" not defined.
> > > > (gdb) break cyg_test_init
> > > > Breakpoint 2 at 0x324d4: file
> > > > /ecos-c/cygwin/opt/ecos/ecos-2.0/packages/infra/v2_0/src/tcdiag.cxx,
> > line
> > > > 192.
> > > > (gdb) cont
> > > > The program is not being run.
> > > > (gdb) set cyg_test_is_simulator=0
> > > > Address of symbol "cyg_test_is_simulator" is unknown.
> > > > (gdb) cont
> > > > The program is not being run.
> > > > (gdb) bt
> > > > No stack.
> > > > (gdb) Run complete
> > > >
> > > >
> > > > best regards,
> > > > Gary
> > > >
> > > > ----- Original Message -----
> > > >
> > > > > I have made one. attached with this email
> > > > > I'm looking for RedBoot of Altera Excalibur EPXA1 Development
Board.
> > > > > Does anyone have it? Thank you in advance.
> > > >
>
>
>

Attachment: basic1.c
Description: Binary data

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]