This is the mail archive of the ecos-discuss@sourceware.org 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: Power Pc simulator


Sorry , now am able to work when i provide arguments at target sim..like

(gdb)target sim -o '/iobus/pal@0xf0001000/reg 0xf0001000 32'

Now it works.. great..i tried all the examples... everything is fine..
Is this right..?Any suggestions are welcome.
Thanks.

On 11/23/05, Sridhar Sridhar <ksridhar231@gmail.com> wrote:
> Hi,
> Am trying to work on PPC sim. I have build the simultor from GDB -6.1
> And able to work on test files [psim/test/uea/ ] using the simulator.
> All are success.
> When am trying to work on hello world using eCos am getting errors.
> Please help me on this.
> here are the steps i followed.
>
> 1]Build the template using eCos configtool for the powerpc simulator
> and got all the rerequired files like cyg/kernel/kapi.h and targetld.a
> 2] powerpc-eabi-gcc -g using this , I compiled the helloworld .c
> program and got a.out
> 3]powerpc-eabi-gdb -nw a.out
> GNU gdb 5.3 (eCosCentric)
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "--host=i686-pc-linux-gnu
> --target=powerpc-eabi"...
> (gdb) target sim
> Connected to the simulator.
> (gdb) load
> (gdb) run
> Starting program: /root/download/ecos/ecos/examples/a.out
> core_find_mapping() - access to unmaped address, attach a default map
> to handle this - addr=0xf000101a nr_bytes=0x1 processor=0x403e3008
> cia=0x4548
> (gdb)
>
> I have seen some where in the discussion forum that we need to enable
> the sim before running by using
> http://ecos.sourceware.org/docs-latest/user-guide/setup-ppc-sim.html
>
> but am not able to locate .gdbinit file in my system.
> Please help me out.
>
> Thank you,
> Sridhar.
>

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


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