1 # Thanks to Pieter Conradie for this script!
2 # Target: Atmel AT91SAM9260
3 ######################################
5 reset_config trst_and_srst
7 #jtag_device <IR length> <IR capture> <IR mask> <IDCODE instruction>
8 jtag_device 4 0x1 0xf 0xe
13 ######################
14 # Target configuration
15 ######################
17 target create target0 arm926ejs -endian little -chain-position 0 -variant arm926ejs
19 [new_target_name] configure -event reset-init { script event/at91sam9260_reset.script }
21 [new_target_name] configure -work-area-virt 0 -work-area-phys 0x00300000 -work-area-size 0x1000 -work-area-backup 1
27 #flash bank cfi <base> <size> <chip width> <bus width> <target#>
28 flash bank cfi 0x10000000 0x01000000 2 2 0