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: Re: Help enquiring thread info in ecos


On Thu, 2003-10-09 at 10:32, Hadi Dewan wrote:
> Gary,
> I think I understand my problem better. I was running
> a simulator called "tsim" which simulates a sparc
> target.  I can run my program on the RAM of the "tsim"
> 
> I startup the simulatar("tsim") using a gdb flag on a
> linux machine
> 
> (linux) tsim -gdb 
> TSIM/LEON SPARC simulator, version 1.2.4 (professional
> version)
> 
> using 64-bit time
> serial port A on stdin/stdout
> allocated 4096 K RAM memory, in 1 bank(s)
> allocated 2048 K ROM memory
> icache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total)
> dcache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total)
> gdb interface: using port 1234
> 
> 
> The simulator  start to listen on port 1234 for any
> gdb request. Using insight I can connect to the
> simulator and load my application program into memory.
> 
> 
> My application program is build only with
> "sparc-elf-gcc", this means I am not packaging all the
> OS code into this application code. 

Anytime you build an eCos application, it includes the 
eCos kernel as well as your application code.

> 
> I think I need to use "mkprom" or "redBoot" to include
> all the all the debug capabilities. 
> 
> Please let me know if this make sense. 
>         Hadi 
> ps : I have to read up on redBoot.
> 

Actually, you'll have to either add the thread support into
the simulator, or include GDB stubs in your application.

> 
> 
> --- Gary Thomas <gary@mlbassoc.com> wrote:
> > Note: please copy replies to the eCos mailing list
> > so that
> > all may benefit.  Private email is only available
> > with a
> > support contract.
> > 
> > On Thu, 2003-10-09 at 08:30, Hadi Dewan wrote:
> > > Hi Gary,
> > > Thanks for an quick response. Right now I am just
> > > using "configtool" and "ecosconfig" to create an
> > > configuration file. I dont think RedBoot is hooked
> > > into those tools. Following are the steps I do to
> > > create ecos library and an application program.
> > > 
> > > 1. mkdir /tmp/ecos_work 
> > > 2. cd ecos_work 
> > > 3. ecosconfig new leon 
> > > 4. ecosconfig tree 
> > > 5. make 
> > > 
> > > I have attached the configuration file with this
> > > email. As you can see the GDB_STUB is  faded out. 
> > > To compile an application. I do the following
> > > sparc-elf-gcc twoThread.c -o twoThread.out
> > > -L./install/lib -I./install/include -Ttarget.ld
> > > -nostdlib 
> > > 
> > > 
> > > Using insight software I can connect to the target
> > and
> > > set breakpoint/single step. Only with "info
> > thread" I
> > > get error. If gdb is disable nothing will work.
> > But it
> > > doesnt look at way. 
> > > 
> > > 
> > > Please let me know if I need to compile redboot to
> > go
> > > around it. And also have a quick look at the
> > attached
> > > file using "configtool". 
> > >    Thanks you 
> > >               Hadi 
> > 
> > More importantly, how was the debug environment on
> > your
> > processor built?  In other words, the device has
> > something
> > in FLASH/ROM - this may be RedBoot or simply GDB
> > stubs.
> > This is what has to be built with the thread support
> > present
> > since when Insight (or GDB) is talking to the
> > target, it's
> > talking to the GDB support (in RedBoot or stubs) and
> > not
> > directly to your application.
> > 
> > 
> > -- 
> > Gary Thomas <gary@mlbassoc.com>
> > MLB Associates
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
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]