Hi Folks,
I am trying to program my STR711 with the USBPROG-JTAG Adapter (http://www.embedded-projects.net/index.php?page_id=175), but there are a lot of Errors (logfile):
Error: str7x.c:197 str7x_flash_bank_command(): unknown STR7x variant: '0'
Error: flash.c:180 handle_flash_bank_command(): 'str7x' driver rejected flash bank at 0x40000000
Info: usbprog.c:222 usbprog_init(): USB JTAG Interface ready!
Error: jtag.c:1253 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: jtag.c:1440 jtag_init(): trying to validate configured JTAG chain anyway...
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1346 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1448 jtag_init(): Could not validate JTAG chain, exit
I’ve created a config file like it is descriped here:
http://sunge.awardspace.com/arm-getting … arted.html
Together with some lines from here:
http://gandalf.arubi.uni-kl.de/avr_proj … ml#str7int
It looks like that:
(Configfile)
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface usbprog
jtag_speed 2
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
#target configuration
daemon_startup reset
#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little run_and_init 0 arm7tdmi
run_and_halt_time 0 30
# flash-configuration STR710:
# internal flash at address 0x40000000 size 256kB (0x40000)
# internal ram at address 0x20000000 size 64kB (0x10000)
# a 16kB working area inside RAM:
working_area 0 0x2000C000 0x4000 nobackup
#flash bank <driver> <base> <size> <chip_width> <bus_width>
flash bank str7x 0x40000000 0x00040000 0 0 STR71x 0
target_script 0 reset openocd_str711_flash.script
(Script)
arm7_9 dcc_downloads enable
wait_halt
sleep 10
poll
flash probe 0
# STR710 erase all banks:
#flash erase 0 0 9
# STR710 erase first 4 banks (32kB)
flash erase 0 0 4
flash write 0 main.bin 0x0
reset run
sleep 10
shutdown
What is the Problem with that? I am absolutely new in the ARM-World, but have done a lot with AVR-µC before. Please give me a hint, what’s wrong! Thank you!