"unresolved breakpoint" debugging. Eclipse, LPC1768, openOCD

Hi. How solve this error?

I am near to be able to debug my project in my uController LPC1768. I have:

Yagarto + Eclipse + OpenOCD + GDB + zylin plugin.

When i try to debug, Eclipse almost does it, but it says "no source available for “” ", this is the log:

target remote localhost:3333 
0x00000000 in ?? ()
monitor halt 
file main.elf
monitor sleep 500 
monitor poll 
background polling: on
TAP: lpc1768.cpu (enabled)
target state: halted
target halted due to undefined, current mode: Thread 
xPSR: 00000000 pc: 0x00000001 msp: 00000000
monitor soft_reset_halt 
requesting target halt and executing a soft reset
target state: halted
target halted due to breakpoint, current mode: Thread 
xPSR: 0x01000000 pc: 0xcdff7ffe msp: 0xfdfc7ff8
load 
Loading section .text, size 0x27c lma 0x0
Start address 0x0, load size 636
Transfer rate: 310 bytes/sec, 636 bytes/write.
break main 
Breakpoint 1 at 0x15c
continue 
Note: automatically using hardware breakpoints for read-only addresses.
lpc1768.cpu -- clearing lockup after double fault

Program received signal SIGINT, Interrupt.
0xffffed7e in ?? ()
lpc1768.cpu -- clearing lockup after double fault
My GDB  init command are:
target remote localhost:3333 
monitor halt 
file main.elf
monitor sleep 500 
monitor poll 
monitor soft_reset_halt 
load
  • Do you have a better starting GDB code?

  • what is this 0x00000000 in ?? () message in the log?

Thanks,

Hi…

I will answer myself:

I found the commands in a polish website:

http://www.freddiechopin.info/index.php … y/35-arm/5 9-arm-toolchain-tutorial?start=4

monitor reset

Monitor soft_reset_halt

MWW monitor 0xE01FC040 0x0002

load

I also put in the run commands:

monitor reg r13 = (0x10000000)

monitor reg pc = (0x10000004)

continue

That was all, but it was so difficult to find. Now i can debug on chip with my LPC1768!