Hi!
Im running openocd version 2008-02-02 svn 279. I installed it as precompiled package from yagarto web page.
The part I’m working with at the moment is LPC2101. It has 8K of flash and 2K of RAM. I have specified the openocd config file as:
#define our ports
telnet_port 4444
gdb_port 3333
interface ft2232
ft2232_device_desc “dev A”
ft2232_layout usbjtag
jtag_speed 3
jtag_nsrst_delay 200
jtag_ntrst_delay 200
#reset_config [combination] [trst_type] [srst_type]
reset_config trst_and_srst
#jtag_device
jtag_device 4 0x1 0xf 0xe
#daemon_startup <‘attach’|‘reset’>
daemon_startup reset
#target <reset_mode> <jtag#> [variant]
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
#run_and_halt_time <target#> <time_in_ms>
run_and_halt_time 0 30
flash bank lpc2000 0x00000000 0x00002000 0 0 0 lpc2000_v2 14745 calc_checksum
working_area 0 0x40000000 0x800 nobackup
Trying to flash the device from telnet fails.
(flash write 0 file.bin 0)
Openocd complains that there is not enough working area available. But I have specified the maximum size for working area… There is just no more ram available in that specific part…
Openocd output to the console:
Warning: target.c:563 target_alloc_working_area(): not enough working area available
Error: lpc2000.c:489 lpc2000_write(): no working area specified, can’t write LPC2000 internal flash
Is it normal behavior and is there any workaround for that problem?
Thank you,
Madis