This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: arm-elf-gdb Cannot access memory at address ...[IXDP425]
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Antonello Lombardinilo <antonello at kasko dot it>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 24 Sep 2004 08:09:04 -0600
- Subject: Re: [ECOS] arm-elf-gdb Cannot access memory at address ...[IXDP425]
- Organization: MLB Associates
- References: <009801c4a23e$d6e85940$0601a8c0@antonb>
On Fri, 2004-09-24 at 08:00, Antonello Lombardinilo wrote:
> I have IXDP425 board (B0 step) with lastet redboot:
> ----------------------------------------------------------------------------
> ----
> +Ethernet eth0: MAC address 00:12:34:56:78:9a
> IP: 192.168.1.55/255.255.255.0, Gateway: 192.168.1.1
> Default server: 192.168.1.202
>
> RedBoot(tm) bootstrap and debug environment [ROM]
> Non-certified release, version UNKNOWN - built 14:32:40, Sep 24 2004
>
> Platform: IXDP425 Development Platform (XScale) BE
> Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
>
> RAM: 0x00000000-0x10000000, [0x0001fe20-0x0ffd0000] available
> FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each.
> RedBoot>
> ----------------------------------------------------------------------------
> ----
>
> I have used configtool to build library and test in following step:
> 1) Build->Templates and select "IXDP425 board" with default package
> 2) Build->Library
> 3) Build->Tests
> Now, I would like to use arm-elf-gdb to load and run the tests application:
>
> ----------------------------------------------------------------------------
> ----
> [root@KaskoPC002 tests]# arm-elf-gdb
> GNU gdb 5.3
> 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=arm-elf".
> (gdb) target remote 192.168.1.55:9000
> Remote debugging using 192.168.1.55:9000
> Cannot access memory at address 0xbcfefc0f <----- ?????
> 0x28550150 in ?? ()
> (gdb) load thread0
> Loading section .rom_vectors, size 0x40 lma 0x80000
> Loading section .text, size 0x6bf4 lma 0x80040
> Loading section .rodata, size 0x44c lma 0x86c34
> Loading section .data, size 0x34c lma 0x87080
> Start address 0x80040, load size 29644
> Transfer rate: 237152 bits/sec, 299 bytes/write.
> (gdb) continue
> Continuing.
>
> Program received signal SIGBUS, Bus error.
> Cannot access memory at address 0xbcfefc0f
> 0x00080040 in ?? ()
> (gdb)
> ----------------------------------------------------------------------------
> ----
>
> Where do I make a error?
This is an ancient bug in GDB (I reported it in 1998!)
Try running it this way:
# arm-elf-gdb thread0
(gdb) load
(gdb) continue
--
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