Here is what's happening when I press the "Debug/Continue" button:
Building to ensure sources are up-to-date
Selecting target:
All
Adding source dir: D:\Devel\X711_Test\
Adding source dir: D:\Devel\X711_Test\
Adding file: D:\Devel\X711_Test\obj\lpc2387_88_test.sys
Changing directory to: D:/Devel/X711_Test/
Set variable: PATH=.;C:\yagarto-20121222\bin;C:\yagarto-20121222;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\site\bin;C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\bin;C:\Perl64\site\bin;C:\Perl64\bin;C:\MentorGraphics\9.3.1PADS\SDD_HOME\common\win32\bin;C:\MentorGraphics\9.3.1PADS\SDD_HOME\common\win32\lib;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\WinAVR-20100110\bin;C:\WinAVR-20100110\utils\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft Windows Performance Toolkit;C:\Program Files (x86)\IVI Foundation\IVI\Bin;C:\Program Files\IVI Foundation\IVI\Bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Acronis\SnapAPI;C:\MentorGraphics\9.3.1PADS\MGC_HOME.ixn\bin;C:\MentorGraphics\9.3.1PADS\MGC_HOME.ixn\lib;C:\Program Files (x86)\doxygen\bin;C:\Program Files (x86)\GTK2-Runtime\bin;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin;C:\Program Files (x86)\Graphviz 2.28\bin;C:\Program Files\doxygen\bin;C:\Program Files (x86)\Haufe\iDesk\iDeskService;C:\yagarto-tools-20121018\bin;C:\Program Files (x86)\Flash Magic;C:\Program Files (x86)\Acronis\BackupAndRecovery;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit;C:\Program Files (x86)\IDM Computer Solutions\UltraCompare;c:\Program Files (x86)\gs\gs9.05\bin
[debug]Command-line: C:\yagarto-20121222\bin\arm-none-eabi-gdb.exe -nx -fullname -quiet -args D:/Devel/X711_Test/obj/lpc2387_88_test.sys
[debug]Working dir : D:\Devel\X711_Test
Starting debugger: C:\yagarto-20121222\bin\arm-none-eabi-gdb.exe -nx -fullname -quiet -args D:/Devel/X711_Test/obj/lpc2387_88_test.sys
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]D:/Devel/X711_Test/obj/lpc2387_88_test.sys: No such file or directory.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.5.1
[debug]Copyright (C) 2012 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law. Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "--host=i686-pc-mingw32 --target=arm-none-eabi".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) 7.5.1
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]No symbol table is loaded. Use the "file" command.
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]No symbol table is loaded. Use the "file" command.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source C:\Users\bart\AppData\Local\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory D:/Devel/X711_Test/
[debug]Source directories searched: D:/Devel/X711_Test;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> file ./obj/lpc2387_88_test.elf
[debug]Reading symbols from D:\Devel\X711_Test\obj\lpc2387_88_test.elf...done.
[debug]>>>>>>cb_gdb:
[debug]> set mem inaccessible-by-default off
[debug]>>>>>>cb_gdb:
[debug]> target remote localhost:2331
[debug]Remote debugging using localhost:2331
[debug]Vectors () at src/lpc23xx_startup.s:120
[debug]D:\Devel\X711_Test\src\lpc23xx_startup.s:120:3990:beg:0x0
[debug]>>>>>>cb_gdb:
[debug]> monitor flash device = LPC2387
At D:\Devel\X711_Test\src\lpc23xx_startup.s:120
[debug]> monitor flash device = LPC2387
[debug]Selecting device: LPC2387
[debug]Selecting device: LPC2387
[debug]>>>>>>cb_gdb:>>>>>>cb_gdb:
[debug]> monitor flash breakpoints = 1
[debug]Flash breakpoints enabled
[debug]>>>>>>cb_gdb:
[debug]> monitor flash download = 1
[debug]Flash download enabled
[debug]>>>>>>cb_gdb:
[debug]> monitor endian little
[debug]Target endianess set to "little endian"
[debug]>>>>>>cb_gdb:
[debug]> monitor speed auto
[debug]Select auto target interface speed (65535 kHz)
[debug]>>>>>>cb_gdb:
[debug]> monitor reset
[debug]Resetting target
[debug]>>>>>>cb_gdb:
[debug]> monitor long 0xE01FC040 = 1
[debug]Writing 0x00000001 @ address 0xE01FC040
[debug]>>>>>>cb_gdb:
[debug]> load
[debug]Loading section .text, size 0xa94 lma 0x0
[debug]Start address 0x0, load size 2708
[debug]Transfer rate: 377 KB/sec, 2708 bytes/write.
[debug]>>>>>>cb_gdb:
[debug]> monitor reset
[debug]Resetting target
[debug]>>>>>>cb_gdb:
[debug]> break "D:/Devel/X711_Test/src/app_main.c:123"
[debug]Breakpoint 2 at 0x494: file src/app_main.c, line 123.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]The "remote" target does not support "run". Try "help target" or "continue".
[debug]>>>>>>cb_gdb:
This is what I see in the Segger GDB server log window:
SEGGER J-Link GDB Server V4.60a
JLinkARM.dll V4.60a (DLL compiled Jan 16 2013 17:15:30)
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link ARM V8 compiled Nov 14 2012 22:34:52
Hardware: V8.00
S/N: 268004267
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
Checking target voltage...
Listening on TCP/IP port 2331
Connecting to target...
J-Link found 1 JTAG device, Total IRLen = 4
JTAG ID: 0x4F1F0F0F (ARM7)
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0xE59FF018)
Selecting device: LPC2387
Selecting device: LPC2387
Flash breakpoints enabled
Flash download enabled
Target endianess set to "little endian"
Select auto target interface speed (65535 kHz)
Resetting target
Writing 0x00000001 @ address 0xE01FC040
Downloading 2708 bytes @ address 0x00000000
WARNING: CPU is running at low speed (4017 kHz).
Resetting target
Read 4 bytes @ address 0x00000000 (Data = 0xE59FF018)
Read 4 bytes @ address 0x000003A0 (Data = 0xE3A03001)
Read 4 bytes @ address 0x00000494 (Data = 0xE51B3008)
Contents of GDB "Before" commands:
file ./obj/lpc2387_88_test.elf
set mem inaccessible-by-default off
target remote localhost:2331
monitor flash device = LPC2387
monitor flash breakpoints = 1
monitor flash download = 1
monitor endian little
monitor speed auto
monitor reset
monitor long 0xE01FC040 = 1
load
monitor reset
The firmware gets uploaded, the editor shows the startup.s file with a small little yellow triangle on the reset entry vector line.
The buttons "Break debugger" and "Stop debugger" are available, but clicking on them has no effect. All other debug buttons are greyed out.