This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
RE: [ECOS] how to build an eCos library for ARM7tdmi simulator
- From: "Robert Cragie" <rcc at jennic dot com>
- To: "Gary Thomas" <gthomas at ecoscentric dot com>, "Satish Kumar" <satishkumar at sanyo dot co dot in>
- Cc: <ijsung at csie dot nctu dot edu dot tw>, <ecos-discuss at sources dot redhat dot com>, <sid at sources dot redhat dot com>
- Date: Mon, 16 Sep 2002 10:49:28 +0100
- Subject: RE: [ECOS] how to build an eCos library for ARM7tdmi simulator
> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Gary Thomas
> Sent: 13 September 2002 13:33
> To: Satish Kumar
> Cc: 'Robert Cragie '; 'ijsung@csie.nctu.edu.tw ;
> 'ecos-discuss@sources.redhat.com'; 'sid@sources.redhat.com'
> Subject: RE: [ECOS] how to build an eCos library for ARM7tdmi simulator
>
>
> On Fri, 2002-09-13 at 00:16, Satish Kumar wrote:
> >
> > Hi,
> >
> > i followed the build procedure of sid, as stated in ur mails
> > was able to finish it sucessfully. but i m not able to connect to the
> > target board. i.e initially i tried this command:
> > arm-elf-sid --board=arm7t-normalmap -gdb=2000 -EL --tksm &
> > i got a message stating 'Unknown board arm7t-normalmap'
[RCC] The original document was wrong - I posted an update.
> >
> > later i tried a different command:
> > arm-elf-sid --board=pid7t-normalmap -gdb=2000 -EL --tksm &
> > this time,i got a message stating : [1] 816
[RCC] This is what you would expect.
> > well next when i run the command
> > arm-elf-gdb twothread.x
> > the debugger window opened with the source file displyed in the source
> > window, now i clicked on Run->Connect to target. and i used the same
> > settings as stated:
> > Target: Remote/TCP.
> > Host:localHost.
> > port:2000
> >
> > set breakpoint at 'cyg_user_start'
> > and other breakpoint at the exit.
> >
> > on pressing ok, i get an Error message stating:
> > Error:bad option "-modal" : must be
> -default,-icon,-message,-parent,-title,
> > or -type..
[RCC] Sounds like you may have a Tcl/Tk compatibility issue here. What
version of Tcl/Tk are you using? On what platform? What version of Insight
are you using?
You can always use the console and enter the gdb commands explicitly:
(gdb) target remote localhost:2000
(gdb) load
(gdb) break cyg_user_start
(gdb) cont
> > and i m not able to run the program..plz kindly tell me how to run the
> > sid simulator for arm7tdmi and how to run my application programs once
> > they are compiled using the ecos library built for pid.
> >
>
> Try running without "--tksm". This only turns on the Tk (GUI)
> configuration tool, which you can do without [at least for the start].
[RCC] This is needed for the UART output with the specified command line,
however you can send the UART output to the console by changing the --board
option in the SID command line to:
--board=pid7t-normalmap-uart1:stdio
If you do this you don't need the --tksm option.
AFAICT (by looking at configrun-sid), other options for where to send the
UART output include gdb, a socket or the serial port on the PC. If you want
the output to a file, I guess the easiest way is to use the stdio option
specified above and redirect stdout, or pipe to tee <file>.
Robert Cragie, Design Engineer
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
http://www.jennic.com Tel: +44 (0) 114 281 2655