hi
i am trying to flash the lpc2148 through wiggler. I have been working through james lynch tutorial and tutorials on yagarto. Everything works ok except for a simple flash program when i try to flash with make target in eclipse i get
============================================
**** Build of configuration Default for project lpc_2 ****
make program2
Flash Programming with OpenOCD…
'C:\Program Files\openocd-r520\bin'openocd-pp.exe -f 'C:\Program Files\openocd-r520\bin'lpc2148-wiggler-flash-program.cfg # program the onchip FLASH here
Open On-Chip Debugger (2008-03-22 12:00 CET) svn: r520
URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/
Info: options.c:50 configuration_output_handler(): Syntax error:
Info: options.c:50 configuration_output_handler(): script execute commands from
Error: jtag.c:1450 jtag_interface_init(): JTAG interface has to be specified, see “interface” command
make: *** [program2] Error 1
============================================
this is my cfg file:
============================================
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 0
reset_config trst_and_srst
#jtag scan chain
jtag_device 4 0x1 0xf 0xe
jtag_nsrst_delay 333
jtag_ntrst_delay 333
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30
daemon_startup reset
target_script 0 reset script.ocd
#target_script 0 reset openocd.script
working_area 0 0x40000000 0x4000 nobackup
flash bank lpc2000 0 0 [‘calc_checksum’]
#flash bank lpc2000 0x0 0x7D000 0 0 lpc2000_v2 0 12000 calc_checksum
flash bank lpc2000 0x0 0x7d000 0 0 0 lpc2000_v2 14765
==============================================
and my openocd.script:
========================
arm7_9 dcc_downloads enable
wait_halt
sleep 10
poll
flash probe 0
erase first bank only:
flash erase 0 0 0
flash write 0 main.bin 0x0
reset run
sleep 10
shutdown
============================================
am i doing something stupid?
thanks