OpenOCD with AT91SAM7X-EK & wiggler out of batch/eclipse

I do not know much about makefiles so I tried to flash my AT91SAM7X-EK-board with cmd " openocd-pp.exe -f sam7x_pp.cfg ".

I get following output:

“Info: jtag.c:1304 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)”

and then system stops and nothing is flashed.

My sam7x_pp.cfg looks like this:

telnet_port 4444

gdb_port 3333

gdb_memory_map enable

gdb_flash_program enable

interface parport

parport_port 0xDD00 #my printerport is on DD00, that’s ok

parport_cable wiggler

jtag_speed 0

jtag_nsrst_delay 200

jtag_ntrst_delay 200

reset_config srst_only

target arm7tdmi little reset_halt 0 arm7tdmi

daemon_startup reset

jtag_device 4 0x1 0xf 0xe

working_area 0 0x00200000 0x4000 nobackup

flash bank at91sam7 0 0 0 0 0

Who can change it so that it works (would be great help;thanks already) ?

In a german forum I did read that the wiggler may be is not able to flash with OCD (H-JTAG works but only in GUI without batch/command line) !??

I still do not believe that it is not possible to flash.

May be anyone has a wiggler and helps me here???

I currently get the info:

Info: options.c:50 configuration_output_handler(): Command write not found

Oder if I use write_binary in openocd_at91sam7x_flash.script

Info: options.c:50 configuration_output_handler(): Command write_binary not

I use a batch openocd_install_info.cmd :

set OOCD_INSTALLDIR=C:\Programme\openocd-r423\bin

set OOCD_BIN_PP=%OOCD_INSTALLDIR%\openocd-pp.exe

set OOCD_INTERFACE=PP

and an openocd_go_flash.cmd :

call openocd_install_info.cmd

set OOCD_EXE=%OOCD_BIN_PP%

set OOCD_CFG=openocd_at91sam7s_flash_wiggler.cfg

%OOCD_EXE% %OOCD_DBG% -f %OOCD_CFG%

with openocd_at91sam7x_flash_wiggler.cfg:

telnet_port 4444

gdb_port 3333

interface parport

parport_port 0xDD00

parport_cable wiggler

jtag_speed 0

reset_config srst_only srst_pulls_trst

jtag_device 4 0x1 0xf 0xe

daemon_startup reset

target arm7tdmi little run_and_init 0 arm7tdmi

run_and_halt_time 0 30

target_script 0 reset openocd_at91sam7x_flash.script

working_area 0 0x00200000 0x4000 nobackup

flash bank at91sam7 0 0 0 0 0

what uses an openocd_at91sam7x_flash.script :

halt

sleep 10

mww 0xfffffd44 0x00008000 # disable watchdog

mww 0xfffffd08 0xa5000001 # enable user reset

mww 0xfffffc20 0x00000601 # CKGR_MOR : enable the main oscillator

sleep 10

mww 0xfffffc2c 0x00481c0e # CKGR_PLLR: 96.1097 MHz

sleep 10

mww 0xfffffc30 0x00000007 # PMC_MCKR : MCK = PLL / 2 ~= 48 MHz

sleep 10

mww 0xffffff60 0x003c0100 # MC_FMR: flash mode (FWS=1,FMCN=60)

arm7_9 dcc_downloads enable

sleep 10

poll

flash probe 0

flash write_binary 0 main.bin 0x0

reset run

sleep 10

shutdown

Hi,

I don’t know if it will help you, but when I installed OpenOCD-r423-20080301 on my old laptop I got the same message “Info: options.c:50 configuration_output_handler(): Command write not found”.

When I deinstalled it and installed the old openocd-2007re128 it worked just fine.

Hans

As far as I did read it seems to be the only solutuion to install an old version.

But where to get it (did allready google some time)?

Do you have a link to any old version ?

If you give me your email address I’ll send it to you, it’s about 2 megs.