Debug problem

Hi

I want to debug an aduc with eclipse/jtag. Unfortunalty it is not working.

This is the result when I try to debug from flash:

No source file named main.out.
mi_cmd_break_watch: Missing <expression>
No registers.
target  remote  localhost:3333
0x000008e0 in ?? ()
monitor  soft_reset_halt
requesting target halt and executing a soft reset
monitor  mww  0xFFFFF804 0x08
error: access caused data abort, system possibly corrupted
monitor reg pc 0x00080000
pc (/32): 0x00080000
monitor  arm7_9  force_hw_bkpts enable
force hardware breakpoints enabled
thbreak  main
Hardware assisted breakpoint 1 at 0x808e0: file main.c, line 9.
load
Loading section .text, size 0xcfc lma 0x80000
Memory access error while loading section .text.
continue
main () at main.c:9
9		PLLKEY1 = 0xAA;

Maybe anyone has some tips for me.

No source file named main.out.

main.out is the binary created by make. This file exists. why is openocd complaining about a missing file?

monitor  mww  0xFFFFF804 0x08
error: access caused data abort, system possibly corrupted

I have to set this MMR to allow writing to flash. What can cause the

data abort?

The debugger starts but id doing wired things, jumping up and down the lines until I get this error:

Can't find a source file at "/gcc/config/arm/lib1funcs.asm" 
Locate the file or edit the source lookup path to include its location.

I also tried to debug from S-Ram:

No source file named main.out.
mi_cmd_break_watch: Missing <expression>
source .gdbinit
No registers.
target  remote  localhost:3333
0x000061a8 in ?? ()
monitor  soft_reset_halt
requesting target halt and executing a soft reset
monitor  mww  0xFFFF0220 0x01
error: access caused data abort, system possibly corrupted
pc (/32): 0x00000000
monitor reg pc 0x00000000
monitor  arm7_9  sw_bkpts  enable
software breakpoints enabled
break  main
Breakpoint 1 at 0x108e0: file main.c, line 9.
load
Loading section .text, size 0xcfc lma 0x10000
Start address 0x10000, load size 3324
Transfer rate: 108983 bits/sec, 369 bytes/write.
continue

Breakpoint 1, main () at main.c:9
9		PLLKEY1 = 0xAA;

Any idea how I can get it work?

Best regards,