ft2232_device_desc "Amontec JTAGkey A"\r
ft2232_layout jtagkey\r
ft2232_vid_pid 0x0403 0xcff8\r
-jtag_speed 2\r
+jtag_khz 200\r
jtag_nsrst_delay 200\r
jtag_ntrst_delay 200\r
\r
#reset_config <signals> [combination] [trst_type] [srst_type]\r
reset_config srst_only srst_pulls_trst\r
\r
-#jtag_device <IR length> <IR capture> <IR mask> <IDCODE instruction>\r
-jtag_device 4 0x1 0xf 0xe\r
+jtag newtap sam7x256 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x3f0f0f0f\r
\r
-#daemon_startup <'attach'|'reset'>\r
-daemon_startup reset\r
+target create sam7x256.cpu arm7tdmi -endian little -chain-position sam7x256.cpu -variant arm7tdmi\r
\r
-#target <type> <endianess> <reset_mode> <jtag#> [variant]\r
-target arm7tdmi little run_and_halt 0 arm7tdmi\r
+gdb_memory_map enable\r
\r
-#run_and_halt_time <target#> <time_in_ms>\r
-run_and_halt_time 0 30\r
+sam7x256.cpu configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x10000 -work-area-backup 0\r
+flash bank at91sam7 0x100000 0x40000 0 4 sam7x256.cpu\r