lpc2148+ocd+eclipse+flash

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

Hi Doggy.

The “flash write” command was completely removed from OpenOCD for some reason, usually they leave these commands in as a “legacy” command.

The command to use is the new “flash write binary” command.

I think the latest download from YAGARTO has an up-to-date manual on OpenOCD and you can find the syntax for “flash write binary” there.

Cheers,

Jim Lynch

Hello

The new command names are:

flash erase_sector 0 0 7

flash write_bank 0 main.bin 0

The parameters syntax is exactly the same of the old commands.

regards,

Giovanni

hi thanks for your replies. Though it is still not working, i have been trying for long time, any ideas?