Greetings All:
When attempting to program the FLASH of an LPC2103 the second command in the script below, ‘wait_halt’, times out and consequently I get a time out message instead of the expected ‘target halted’ confirmation message. The Blink demo program continues to flash the LED confirming that the program did not halt.
I find that the ‘halt’ and ‘resume’ commands both work when I enter them manually via Telnet. However using the same method I find that ‘wait_halt’ just times out as it does from the script file.
I am running the YAGARTO OpenOCD-PP.exe r141 build.
I wonder if I need to change a config file setting? My config file is shown below.
I wonder if anyone else in this forum has run into this problem?
I also wonder if anyone else has had success writing LPC21xx FLASH with this ‘r141’ build of ‘openocd-pp.exe’? If so please post your config and script files.
Thanks in advance for any help!
Tom Alldread
----------------------script.ocd--------------------
arm7_9 dcc_downloads enable
wait_halt
sleep 10
poll
flash probe 0
erase first bank only:
flash erase 0 0 0
erase all banks:
flash erase 0 0 7
flash write 0 pgm_mem.bin 0x0
reset run
sleep 10
shutdown
==================================
---------------lpc2103Flash_pp.cfg---------------
#daemon configuration
telnet_port 4444
gdb_port 3333
#daemon_startup <‘attach’|‘reset’>
#interface
interface parport
parport_port 0xA400
parport_cable wiggler
jtag_speed 0
#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_init 0 arm7tdmi-s_r4
run_and_halt_time 0 30
#target_script specifies the flash programming script file
target_script 0 reset C:\TMA\Projects\ARM-C-Src\LPC2103BlinkTMA_FLASH\script.ocd
RAM-options LPC2138
working_area <target#> <‘backup’|‘nobackup’>
working_area 0 0x40000000 0x4000 nobackup
RAM-options LPC2103
working_area <target#> <‘backup’|‘nobackup’>
working_area 0 0x40000000 0x2000 nobackup
FLASH-options LPC2138
LPC2138 @ 12MHz / 512K FLASH – 0x7D000 from 500*1024 (not 512!)
flash bank lpc2000 0 0 <target#> [‘calc_checksum’]
#flash bank lpc2000 0x0 0x7D000 0 0 lpc2000_v2 0 12000 calc_checksum
FLASH-options LPC2103
LPC2103 @ 19.6608MHz / 32K FLASH – 0x8000 from 32*1024 of FLASH
flash bank lpc2000 0 0 <target#> [‘calc_checksum’]
flash bank lpc2000 0x0 0x08000 0 0 lpc2000_v2 0 19661 calc_checksum
For more information about the configuration files, take a look at:
http://openfacts.berlios.de/index-en.ph … p+Debugger
==================================