My openocd configuration script:

# Configuration mode
telnet_port 4444
gdb_port 3333
source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg]
adapter_khz 0
source [find target/at91sam7x512.cfg]

# Command mode
reset init

What my gdb session after starting openocd in another terminal looks like:

Reading symbols from /home/sw3/arm_workspace/Linuxization/main.out...done.
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
warning: Overlapping regions in memory map: ignoring
0x00000050 in ?? ()

With different openocd configuration options and different openocd version, the same source, includeing the linker script, work fine.

What does this warning mean and where should I be looking to correct it?

Just some more info, to show the physical memory layout. Strangely, telnet communication reports banks as 0 and 1, while gdb monitor command reports two 0 banks:

(gdb) monitor flash banks
#0 : sam7x512.flash.0 (at91sam7) at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
#0 : sam7x512.flash.1 (at91sam7) at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0

Later the debugger breaks normally at main(), but stepping produces:

(gdb) step
Single stepping until exit from function _user_app_start,
which has no line number information.
stepi ignored. GDB will now fetch the register state from the target.

Program received signal SIGINT, Interrupt.
0x00110000 in _user_app_start ()

Those symptoms hint something to anyone?

  • \$\begingroup\$ Which OpenOCD version do you use? \$\endgroup\$ – Turbo J Aug 23 '13 at 14:09
  • \$\begingroup\$ It looks like you may have a lot of things going on... linker script that may not match the debugger interface's understanding of the device, some system support libraries perhaps built without debug info... \$\endgroup\$ – Chris Stratton Aug 23 '13 at 16:39
  • \$\begingroup\$ @TurboJ, Open On-Chip Debugger 0.7.0 (2013-08-16-13:27) \$\endgroup\$ – Vorac Aug 26 '13 at 8:06
  • \$\begingroup\$ workaround \$\endgroup\$ – Vorac Aug 28 '13 at 12:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.