System consists of:
1.) YAGARTO OpenOCD (r141) openocd-2007re141-setup-rc01.exe
2.) Amontec JTAGkey
3.) Hitex STR912 Evaluation Board
The following errors were noted, when trying to flash STR912, using
these instructions:
str9x flash_config 4 2 0 0x80000
flash protect 0 0 10 off
flash erase 0 0 2
flash write 0 example.bin 0x0
Interestingly, STR7x commands are recognized, although, as expected errors result. By chance, could STR9x commands be missing from YAGARTO r141? Any ideas would be welcome.
Best Regards
Info: openocd.c:86 main(): Open On-Chip Debugger (2007-04-16 19:30 CEST)
Info: configuration.c:50 configuration_output_handler(): Command flash_config not found
Info: configuration.c:50 configuration_output_handler(): Command protect not found
Info: configuration.c:50 configuration_output_handler(): Command erase not found
Info: configuration.c:50 configuration_output_handler(): Command write not found
Warning: arm966e.c:115 arm966e_assert_reset(): srst resets test logic, too
I’m using a standard STR9 .cfg:
#daemon configuration
telnet_port 4444
gdb_port 3333
#use Amontec JTAGkey Interface
interface ft2232
ft2232_device_desc “Amontec JTAGkey A”
ft2232_layout jtagkey
ft2232_vid_pid 0x0403 0xcff8
jtag_speed 1
#use combined on interfaces or targets that can’t set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
#use combined on interfaces or targets that can’t set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
jtag scan chain (first device being the one closest to TDO)
format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 8 0x1 0x1 0xfe
jtag_device 4 0x1 0xf 0xe
jtag_device 5 0x1 0x1 0x1e
#jtag nTRST and nSRST delay
jtag_nsrst_delay 250
jtag_ntrst_delay 250
#target configuration
daemon_startup reset
#target
#target arm7tdmi
target arm966e little run_and_halt 1 arm966e
reset or attach
daemon_startup reset
run_and_halt_time 0 30
working_area <target#> <‘backup’|‘nobackup’>
working_area 0 0x50000000 16384 nobackup
flash stuff
flash bank str9x 0x00000000 0x00080000 0 0 0
#then to program a device:
#str9x flash_config 4 2 0 0x80000
#flash protect 0 0 10 off
#flash erase 0 0 2
#flash write 0 example.bin 0x0