This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
arm-elf-gdb message <address> in ??()
- From: ananda dot motte at philips dot com
- To: gdb at sources dot redhat dot com, binutils at sources dot redhat dot com
- Date: Fri, 21 Dec 2001 12:17:23 +0100
- Subject: arm-elf-gdb message <address> in ??()
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, BelgiumAttachment:
memmap2.ld
Description: Binary data