Reply by hse05029 March 18, 20072007-03-18
Hi,

thx for your quick answer => the design works now

best regards,
Emanuel

--- In l..., Dominic Rath wrote:
>
> Hi,
>
> software breakpoints are disabled by default, as they take up one of
only two
> hardware breakpoint units.
>
> You can enable them form within GDB (like gdb's init file) with:
> monitor arm7_9 sw_bkpts enable
>
> Regards,
>
> Dominic
>
> On Sunday 18 March 2007 17:21, hse05029 wrote:
> > Hi,
> > I ported the lpc2106_blink_ram example to fit the Olimex LPC2103
board.
> > I made a remap (MEMMAP=0x02), changed the linker-script and
> > the map-file seems to be fine.
> > I start the Olimex ARM-USB-OCD with the following config => see
> > appendix and the arm-elf-gdb in eclipse with
> > target remote localhost:3333
> > load
> >
> > The debugger starts and as I press "Run", I get the following error
> > messages:
> > Warning: Cannot insert breakpoint 1
> > Error accessing memory address 0x400002b4: (undocumented errno-1)
> > Warning: Cannot insert breakpoint 1
> > Error: accessing memory address 0x400002a8: (undocumented errno-1)
> >
> > When I removed all breakpoints an tell de debugger console "delete" =>
> > the pressing "Run", the program works fine.
> >
> > Is there a trick I'm not familiar with, or a configuration problem?
> > Did anyone have this problem earlier?
> >
> > Currently I have no idea why the gdb reacts this way, when I insert
> > breakpoints.
> >
> > Thx in advance
> > Emanuel
> >
> >
> > APPENDIX:
> >
> > #daemon configuration
> > telnet_port 4444
> > gdb_port 3333
> >
> > #interface
> > interface ft2232
> > ft2232_device_desc "Olimex OpenOCD JTAG A"
> > ft2232_layout "olimex-jtag"
> > ft2232_vid_pid 0x15BA 0x0003
> > jtag_speed 2
> >
> > #use combined on interfaces or targets that can't set TRST/SRST
separately
> > reset_config trst_and_srst srst_pulls_trst
> >
> > #jtag scan chain
> > #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask,
IDCODE)
> > jtag_device 4 0x1 0xf 0xe
> >
> > #target configuration
> > daemon_startup reset
> >
> > #target
> > #target arm7tdmi
> > target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
> > run_and_halt_time 0 30
> >
> >
> > working_area 0 0x40000000 0x40000 nobackup
> >
> > #flash configuration
> > flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
> > flash bank cfi 0x80000000 0x400000 2 2 0
>

An Engineer's Guide to the LPC2100 Series

Reply by Dominic Rath March 18, 20072007-03-18
Hi,

software breakpoints are disabled by default, as they take up one of only two
hardware breakpoint units.

You can enable them form within GDB (like gdb's init file) with:
monitor arm7_9 sw_bkpts enable

Regards,

Dominic

On Sunday 18 March 2007 17:21, hse05029 wrote:
> Hi,
> I ported the lpc2106_blink_ram example to fit the Olimex LPC2103 board.
> I made a remap (MEMMAP=0x02), changed the linker-script and
> the map-file seems to be fine.
> I start the Olimex ARM-USB-OCD with the following config => see
> appendix and the arm-elf-gdb in eclipse with
> target remote localhost:3333
> load
>
> The debugger starts and as I press "Run", I get the following error
> messages:
> Warning: Cannot insert breakpoint 1
> Error accessing memory address 0x400002b4: (undocumented errno-1)
> Warning: Cannot insert breakpoint 1
> Error: accessing memory address 0x400002a8: (undocumented errno-1)
>
> When I removed all breakpoints an tell de debugger console "delete" =>
> the pressing "Run", the program works fine.
>
> Is there a trick I'm not familiar with, or a configuration problem?
> Did anyone have this problem earlier?
>
> Currently I have no idea why the gdb reacts this way, when I insert
> breakpoints.
>
> Thx in advance
> Emanuel
> APPENDIX:
>
> #daemon configuration
> telnet_port 4444
> gdb_port 3333
>
> #interface
> interface ft2232
> ft2232_device_desc "Olimex OpenOCD JTAG A"
> ft2232_layout "olimex-jtag"
> ft2232_vid_pid 0x15BA 0x0003
> jtag_speed 2
>
> #use combined on interfaces or targets that can't set TRST/SRST separately
> reset_config trst_and_srst srst_pulls_trst
>
> #jtag scan chain
> #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
> jtag_device 4 0x1 0xf 0xe
>
> #target configuration
> daemon_startup reset
>
> #target
> #target arm7tdmi
> target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
> run_and_halt_time 0 30
> working_area 0 0x40000000 0x40000 nobackup
>
> #flash configuration
> flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
> flash bank cfi 0x80000000 0x400000 2 2 0
Reply by hse05029 March 18, 20072007-03-18
Hi,
I ported the lpc2106_blink_ram example to fit the Olimex LPC2103 board.
I made a remap (MEMMAP=0x02), changed the linker-script and
the map-file seems to be fine.
I start the Olimex ARM-USB-OCD with the following config => see
appendix and the arm-elf-gdb in eclipse with
target remote localhost:3333
load

The debugger starts and as I press "Run", I get the following error
messages:
Warning: Cannot insert breakpoint 1
Error accessing memory address 0x400002b4: (undocumented errno-1)
Warning: Cannot insert breakpoint 1
Error: accessing memory address 0x400002a8: (undocumented errno-1)

When I removed all breakpoints an tell de debugger console "delete" =>
the pressing "Run", the program works fine.

Is there a trick I'm not familiar with, or a configuration problem?
Did anyone have this problem earlier?

Currently I have no idea why the gdb reacts this way, when I insert
breakpoints.

Thx in advance
Emanuel
APPENDIX:

#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG A"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0003
jtag_speed 2

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe

#target configuration
daemon_startup reset

#target
#target arm7tdmi
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30
working_area 0 0x40000000 0x40000 nobackup

#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
flash bank cfi 0x80000000 0x400000 2 2 0