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: error: no memory region specified for loadable '.ram_vectors'


> Loading section .rom_vectors, size 0x1300 lma 0x40000000
> 
> Loading section .text, size 0xf9fc lma 0x40001300
> 
> Loading section .rodata, size 0x324 lma 0x40010cfc
> 
> Loading section .data, size 0x490 lma 0x40011020
> 
> Start address 0x40001300, load size 70832
> 
> Transfer rate: 566656 bits in <1 sec, 276 bytes/write.
> 
> (gdb) run
> 
> The program being debugged has been started already.
> 
> Start it from the beginning? (y or n) y
> 
> Starting program: 
> /home/agus/work/project-eCos/LEON/sparc-elf-3.2.3/hello.out
> 
> Program received signal SIGILL, Illegal instruction.
> 
> 0x00000008 in ?? ()

You loaded the program into memory at 0x40000000

I expect run starts from 0x0. Hence it is executing rubbish, not your
program.

try

set $pc=0x40000000
c

        Andrew

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