On 2011-01-28, Grant Edwards <grant.b.edwa...@gmail.com> wrote: >> With this modification the sections of the eCos components (from vectors.o, >> extras.o and libtarget.a) >> are placed in the flash region when loaded with the RedBoot ROM monitor and >> GDB, >> but a Bus error occurs in the reset_vector function: >> >> Loading section .rom_vectors, size 0x8 lma 0x8010000 >> Loading section .ecos.text, size 0x10bcc lma 0x8010008 >> Loading section .ecos.rodata, size 0x49dc lma 0x8020bd8 >> Loading section .ARM.exidx, size 0x10 lma 0x64008000 >> Loading section .text, size 0x924 lma 0x64008010 >> Loading section .rodata, size 0x108 lma 0x64008938 >> Loading section .data, size 0xdcc lma 0x68000000 >> Start address 0x8010009, load size 93624 >> Transfer rate: 9 KB/sec, 300 bytes/write. >> >> Program received signal SIGBUS, Bus error. >> reset_vector () at >> [snip]/repo/ecos/packages/hal/cortexm/arch/current/src/vectors.S:100 >> 100 ldr sp,=hal_startup_stack >> >> Is there a chance to get this working? > > I think so, yes. > > AFAIK, GDB stubs don't know how to program flash (and there's no > indication it attempted to do so),
I posted too quickly. It appears that gdb did try to load .rom_vectors .ecos.text .ecos.rodata into flash. After you do the load (but before you "continue"), can you verify that the code actually got loaded into flash? I didn't think that the gdb stubs knew how to write to flash. -- Grant Edwards grant.b.edwards Yow! DIDI ... is that a at MARTIAN name, or, are we gmail.com in ISRAEL? -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss