arm-elf-gdb message <address> in ??()
ananda.motte@philips.com
ananda.motte@philips.com
Fri Dec 21 03:17:00 GMT 2001
I have been using ARM ADS tools till now to download applications and
debug them on the board.
I compiled and linked a small program with arm-elf-gcc stripping it of all
the standard libraries (no crt0.o ....and stuff) and the initial startup
routine is in assembly.
I can connect (EPI JEENI serial link) and download the sections defined in
my linker script onto the board via the gdb console.......
gdb console message "
load /cygdrive/c/Projects/UNIXProjs/GNUFLASHDEV/sw/comps/coffee_g.exe
Loading section .sram_bank0, size 0x235c lma 0x20001000
Loading section .sram_bank1, size 0x34 lma 0x2000335c
Start address 0x20001000, load size 9104
Transfer rate: 24277 bits/sec, 479 bytes/write.
"
but when I single step it to the next instruction I get:
0x20001004 in ?? ()
( running the program with the GUI gives a message ..sect_index_text not
initialized when I try to run it. at address 0x20001004 )
Remark: The entry point (startup code) in my linker script is defined at
the address 0x20001000.
Physical memory locations which have been set to a value are showing those
values after the download occured.......
I messed up something somewhere ( probably Startup code).
I'll really be grateful for any help as to where I am going wrong.
I've put the startup assembler file snipet and attached the linker script:
....
@ Startup Code (RO) starts here
.section .memory
.globl memory
.globl StartAgain
.globl Exception
memory:
@ Algorithm:
@ 1. Switch on Static Memory Controllers ( if we have external SRAM)
@ 2. Initialise Memory banks in static memory selected
@ 3. Initialise Internal Memory Controller
@ 4. Initialise Flash Memory Controller
@ 5. Remap External SRAM to 0x00 for systems not having internal SRAM
@ 6. Remap Internal SRAM to 0x00
@To switch on the Static Memory Controller initialise the extra memory
control bits in CTU
mov r0, #SMCNOMEM
orr r0,r0,#SDRAMNOMEM
orr r0,r0,#REAL24_SEL
orr r0,r0,#SREF_REQ
mov r1,#Peripherals
orr r1,r1,#CTU
orr r1,r1,#CTUMemControl
str r0,[r1]
....
Ir Motte dit Falisse Ananda
Embedded Software Engineer
Portable Audio
Philips Semiconductors Leuven, Belgium
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourceware.org/pipermail/gdb/attachments/20011221/83e8ae1a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memmap2.ld
Type: application/octet-stream
Size: 1549 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20011221/83e8ae1a/attachment.obj>
More information about the Gdb
mailing list