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