├── .gitignore ├── .gitmodules ├── AUTHORS ├── BUGS ├── CMakeLists.txt ├── COPYING ├── ChangeLog ├── Doxyfile.in ├── HACKING ├── INSTALL ├── Makefile.am ├── Makefile.in ├── NEWS ├── NEWS-0.2.0 ├── NEWS-0.3.0 ├── NEWS-0.4.0 ├── NEWS-0.5.0 ├── NEWS-0.6.0 ├── NEWS-0.7.0 ├── NEWS-0.8.0 ├── NEWTAPS ├── README.Windows ├── TODO ├── aclocal.m4 ├── common.mk ├── compile ├── config.cmake ├── config.guess ├── config.h.in ├── config.sub ├── config_subdir.m4 ├── configure ├── configure.ac ├── contrib ├── 99-openocd.rules ├── coresight-trace.txt ├── cross-build.sh ├── gen-stellaris-part-header.pl ├── itmdump.c ├── libdcc │ ├── README │ ├── dcc_stdio.c │ ├── dcc_stdio.h │ └── example.c ├── loaders │ ├── README │ ├── checksum │ │ ├── armv4_5_crc.s │ │ ├── armv7m_crc.s │ │ └── mips32.s │ ├── erase_check │ │ ├── armv4_5_erase_check.s │ │ └── armv7m_erase_check.s │ └── flash │ │ ├── armv4_5_cfi_intel_16.s │ │ ├── armv4_5_cfi_intel_32.s │ │ ├── armv4_5_cfi_intel_8.s │ │ ├── armv4_5_cfi_span_16.s │ │ ├── armv4_5_cfi_span_16_dq7.s │ │ ├── armv4_5_cfi_span_32.s │ │ ├── armv4_5_cfi_span_8.s │ │ ├── armv7m_cfi_span_16.s │ │ ├── armv7m_cfi_span_16_dq7.s │ │ ├── armv7m_io.s │ │ ├── at91sam7x │ │ ├── at91sam7x_ocl_flash.script │ │ ├── at91sam7x_ram.ld │ │ ├── crt.s │ │ ├── dcc.c │ │ ├── dcc.h │ │ ├── main.c │ │ ├── makefile │ │ ├── ocl.h │ │ ├── platform.h │ │ ├── samflash.c │ │ ├── samflash.h │ │ └── samregs.h │ │ ├── cortex-m0.S │ │ ├── efm32.S │ │ ├── lpcspifi_erase.S │ │ ├── lpcspifi_init.S │ │ ├── lpcspifi_write.S │ │ ├── mdr32fx.S │ │ ├── mrvlqspi_write.S │ │ ├── pic32mx.s │ │ ├── sim3x.s │ │ ├── stellaris.s │ │ ├── stm32f1x.S │ │ ├── stm32f2x.S │ │ ├── stm32lx.S │ │ ├── str7x.s │ │ └── str9x.s ├── remote_bitbang │ └── remote_bitbang_sysfsgpio.c ├── rpc_examples │ ├── ocd_rpc_example.py │ └── ocdrpc.hs ├── rtos-helpers │ └── FreeRTOS-openocd.c └── xsvf_tools │ ├── svf2xsvf.py │ └── xsvfdump.py ├── depcomp ├── doc ├── INSTALL.txt ├── Makefile.am ├── Makefile.in ├── fdl.texi ├── manual │ ├── app.txt │ ├── flash.txt │ ├── helper.txt │ ├── images │ │ └── jtag-state-machine-large.png │ ├── jtag.txt │ ├── jtag │ │ └── drivers │ │ │ └── remote_bitbang.txt │ ├── main.txt │ ├── primer │ │ ├── autotools.txt │ │ ├── commands.txt │ │ ├── docs.txt │ │ ├── jtag.txt │ │ └── tcl.txt │ ├── release.txt │ ├── scripting.txt │ ├── server.txt │ ├── style.txt │ ├── target.txt │ └── target │ │ ├── mips.txt │ │ └── notarm.txt ├── mdate-sh ├── openocd.1 ├── openocd.info ├── openocd.info-1 ├── openocd.info-2 ├── openocd.texi ├── stamp-vti ├── texinfo.tex └── version.texi ├── esp8266-openocd.sln ├── esp8266-openocd.vgdbcmake ├── external ├── hidapi │ └── scripts │ │ ├── CMakeLists.txt │ │ └── config.h.in ├── libusb1 │ └── scripts │ │ ├── CMakeLists.txt │ │ └── config.h.in ├── prebuilt │ ├── CMakeLists.txt │ ├── ftd2xx.h │ ├── ftd2xx.lib │ ├── libusb.a │ └── usb.h └── run-sh.bat ├── install-sh ├── jimtcl-cmake ├── CMakeLists.txt ├── autosetup │ └── CMakeLists.txt ├── jim-config.h.in └── jimautoconf.h.in ├── jimtcl ├── .gitignore ├── .indent.pro ├── .project ├── AUTHORS ├── BUGS ├── DEVELOPING ├── LICENSE ├── Makefile.in ├── README ├── README.extensions ├── README.metakit ├── README.namespaces ├── README.oo ├── README.sqlite ├── README.utf-8 ├── STYLE ├── TODO ├── Tcl_shipped.html ├── UnicodeData.txt ├── auto.def ├── autosetup │ ├── LICENSE │ ├── README.autosetup │ ├── autosetup │ ├── cc-db.tcl │ ├── cc-lib.tcl │ ├── cc-shared.tcl │ ├── cc.tcl │ ├── config.guess │ ├── config.sub │ ├── default.auto │ ├── find-tclsh │ ├── jimsh0.c │ ├── local.tcl │ ├── system.tcl │ └── test-tclsh ├── bench.tcl ├── binary.tcl ├── bootstrap.tcl ├── build-jim-ext.in ├── configure ├── configure.ac ├── examples.api │ ├── Makefile │ ├── README │ ├── jim_command.c │ ├── jim_hello.c │ ├── jim_list.c │ ├── jim_obj.c │ ├── jim_return.c │ └── print.tcl ├── examples.ext │ ├── Makefile │ ├── README │ └── helloworld.c ├── examples │ ├── client-server.tcl │ ├── dns.tcl │ ├── dnstest.tcl │ ├── jtclsh.tcl │ ├── metakit.tcl │ ├── ootest.tcl │ ├── parray.tcl │ ├── pipe.tcl │ ├── popen.tcl │ ├── sqlite3test.tcl │ ├── tcp.client │ ├── tcp.server │ ├── timedread.tcl │ ├── udp.client │ ├── udp.server │ ├── udp2.client │ ├── udp6.client │ └── udp6.server ├── freebsd │ ├── andrew.txt │ ├── clemens.txt │ ├── duane.txt │ ├── oharboe.txt │ ├── pat.txt │ ├── salvatore.txt │ └── uwe.txt ├── glob.tcl ├── initjimsh.tcl ├── jim-aio.c ├── jim-array.c ├── jim-clock.c ├── jim-config.h.in ├── jim-eventloop.c ├── jim-eventloop.h ├── jim-exec.c ├── jim-file.c ├── jim-format.c ├── jim-history.c ├── jim-interactive.c ├── jim-load.c ├── jim-mk.cpp ├── jim-namespace.c ├── jim-pack.c ├── jim-package.c ├── jim-posix.c ├── jim-readdir.c ├── jim-readline.c ├── jim-regexp.c ├── jim-sdl.c ├── jim-signal.c ├── jim-signal.h ├── jim-sqlite3.c ├── jim-subcmd.c ├── jim-subcmd.h ├── jim-syslog.c ├── jim-tclprefix.c ├── jim-win32.c ├── jim-win32compat.c ├── jim-win32compat.h ├── jim.c ├── jim.h ├── jim_tcl.txt ├── jimregexp.c ├── jimregexp.h ├── jimsh.c ├── linenoise.c ├── linenoise.h ├── make-bootstrap-jim ├── make-c-ext.tcl ├── make-index ├── make-load-static-exts.tcl ├── make-release.sh ├── nshelper.tcl ├── oo.tcl ├── parse-unidata.tcl ├── regtest.tcl ├── rlprompt.tcl ├── sqlite3 │ ├── Makefile │ ├── README │ ├── build-ext │ ├── jim-sqlite3.c │ ├── sqlite3.c │ ├── sqlite3.h │ └── test-sqlite3.tcl ├── stdlib.tcl ├── tcl.license.terms ├── tclcompat.tcl ├── tcltest.tcl ├── tests │ ├── Makefile │ ├── alias.test │ ├── apply.test │ ├── applyns.test │ ├── array.test │ ├── binary.test │ ├── break.tcl │ ├── concat.test │ ├── dict.test │ ├── dict2.test │ ├── dummy.tcl │ ├── error.test │ ├── errors.tcl │ ├── event.test │ ├── exec.test │ ├── exec2.test │ ├── exists.test │ ├── exitpackage.tcl │ ├── expand.test │ ├── expr-base.test │ ├── expr-new.test │ ├── expr-old.test │ ├── expr.test │ ├── exprsugar.test │ ├── filecopy.test │ ├── filedir.test │ ├── filejoin.test │ ├── for.test │ ├── format.test │ ├── glob.test │ ├── glob2.test │ ├── infoframe.test │ ├── jim.test │ ├── linsert.test │ ├── list.test │ ├── loop.test │ ├── lrange.test │ ├── lreplace.test │ ├── lsearch.test │ ├── lsort.test │ ├── lsortcmd.test │ ├── misc.test │ ├── namespace.test │ ├── parse.test │ ├── perf.test │ ├── pid.test │ ├── prefix.test │ ├── proc-new.test │ ├── proc.test │ ├── procref.test │ ├── regcount.test │ ├── regexp.test │ ├── regexp2.test │ ├── regmin.test │ ├── rename.test │ ├── return-break.tcl │ ├── return.test │ ├── scan.test │ ├── signal.test │ ├── stacktrace.test │ ├── string.test │ ├── stringmatch.test │ ├── subst.test │ ├── tailcall.test │ ├── testing.tcl │ ├── testio.in │ ├── timer.test │ ├── tree.test │ ├── try.test │ ├── uplevel.test │ ├── upvar.test │ ├── utf8.test │ ├── utftcl.test │ ├── util.test │ └── while.test ├── tools │ └── benchtable.tcl ├── tree.tcl ├── utf8.c └── utf8.h ├── ltmain.sh ├── missing ├── readme.md ├── src ├── CMakeLists.txt ├── Makefile.am ├── Makefile.in ├── flash │ ├── CMakeLists.txt │ ├── Makefile.am │ ├── Makefile.in │ ├── common.c │ ├── common.h │ ├── mflash.c │ ├── mflash.h │ ├── nand │ │ ├── CMakeLists.txt │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── arm_io.c │ │ ├── arm_io.h │ │ ├── at91sam9.c │ │ ├── core.c │ │ ├── core.h │ │ ├── davinci.c │ │ ├── driver.c │ │ ├── driver.h │ │ ├── ecc.c │ │ ├── ecc_kw.c │ │ ├── fileio.c │ │ ├── fileio.h │ │ ├── imp.h │ │ ├── lpc3180.c │ │ ├── lpc3180.h │ │ ├── lpc32xx.c │ │ ├── lpc32xx.h │ │ ├── mx3.c │ │ ├── mx3.h │ │ ├── mxc.c │ │ ├── mxc.h │ │ ├── nonce.c │ │ ├── nuc910.c │ │ ├── nuc910.h │ │ ├── orion.c │ │ ├── s3c2410.c │ │ ├── s3c2412.c │ │ ├── s3c2440.c │ │ ├── s3c2443.c │ │ ├── s3c24xx.c │ │ ├── s3c24xx.h │ │ ├── s3c24xx_regs.h │ │ ├── s3c6400.c │ │ └── tcl.c │ ├── nor │ │ ├── CMakeLists.txt │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── aduc702x.c │ │ ├── at91sam3.c │ │ ├── at91sam4.c │ │ ├── at91sam4l.c │ │ ├── at91sam7.c │ │ ├── at91samd.c │ │ ├── avrf.c │ │ ├── cfi.c │ │ ├── cfi.h │ │ ├── core.c │ │ ├── core.h │ │ ├── driver.h │ │ ├── drivers.c │ │ ├── dsp5680xx_flash.c │ │ ├── efm32.c │ │ ├── em357.c │ │ ├── faux.c │ │ ├── fm3.c │ │ ├── imp.h │ │ ├── kinetis.c │ │ ├── lpc2000.c │ │ ├── lpc288x.c │ │ ├── lpc2900.c │ │ ├── lpcspifi.c │ │ ├── mdr.c │ │ ├── mini51.c │ │ ├── mrvlqspi.c │ │ ├── non_cfi.c │ │ ├── non_cfi.h │ │ ├── nrf51.c │ │ ├── nuc1x.c │ │ ├── ocl.c │ │ ├── ocl.h │ │ ├── pic32mx.c │ │ ├── psoc4.c │ │ ├── sim3x.c │ │ ├── spi.c │ │ ├── spi.h │ │ ├── stellaris.c │ │ ├── stm32f1x.c │ │ ├── stm32f2x.c │ │ ├── stm32lx.c │ │ ├── stmsmi.c │ │ ├── str7x.c │ │ ├── str9x.c │ │ ├── str9xpec.c │ │ ├── tcl.c │ │ ├── tms470.c │ │ └── virtual.c │ └── startup.tcl ├── hello.c ├── hello.h ├── helper │ ├── Makefile.am │ ├── Makefile.in │ ├── bin2char.sh │ ├── binarybuffer.c │ ├── binarybuffer.h │ ├── command.c │ ├── command.h │ ├── configuration.c │ ├── configuration.h │ ├── fileio.c │ ├── fileio.h │ ├── ioutil.c │ ├── ioutil.h │ ├── ioutil_stubs.c │ ├── jim-nvp.c │ ├── jim-nvp.h │ ├── list.h │ ├── log.c │ ├── log.h │ ├── options.c │ ├── replacements.c │ ├── replacements.h │ ├── startup.tcl │ ├── system.h │ ├── time_support.c │ ├── time_support.h │ ├── time_support_common.c │ ├── types.h │ ├── util.c │ └── util.h ├── jtag │ ├── CMakeLists.txt │ ├── Makefile.am │ ├── Makefile.in │ ├── adapter.c │ ├── aice │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── aice_interface.c │ │ ├── aice_interface.h │ │ ├── aice_pipe.c │ │ ├── aice_pipe.h │ │ ├── aice_port.c │ │ ├── aice_port.h │ │ ├── aice_transport.c │ │ ├── aice_transport.h │ │ ├── aice_usb.c │ │ └── aice_usb.h │ ├── commands.c │ ├── commands.h │ ├── core.c │ ├── driver.h │ ├── drivers │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── Makefile.rlink │ │ ├── OpenULINK │ │ │ ├── Makefile │ │ │ ├── README │ │ │ ├── include │ │ │ │ ├── common.h │ │ │ │ ├── delay.h │ │ │ │ ├── io.h │ │ │ │ ├── jtag.h │ │ │ │ ├── main.h │ │ │ │ ├── msgtypes.h │ │ │ │ ├── protocol.h │ │ │ │ ├── reg_ezusb.h │ │ │ │ └── usb.h │ │ │ ├── src │ │ │ │ ├── USBJmpTb.a51 │ │ │ │ ├── delay.c │ │ │ │ ├── jtag.c │ │ │ │ ├── main.c │ │ │ │ ├── protocol.c │ │ │ │ └── usb.c │ │ │ └── ulink_firmware.hex │ │ ├── amt_jtagaccel.c │ │ ├── arm-jtag-ew.c │ │ ├── at91rm9200.c │ │ ├── bcm2835gpio.c │ │ ├── bitbang.c │ │ ├── bitbang.h │ │ ├── bitq.c │ │ ├── bitq.h │ │ ├── buspirate.c │ │ ├── cmsis_dap_usb.c │ │ ├── driver.c │ │ ├── dummy.c │ │ ├── ep93xx.c │ │ ├── ft2232.c │ │ ├── ftd2xx_common.h │ │ ├── ftdi.c │ │ ├── gw16012.c │ │ ├── jlink.c │ │ ├── jtag_vpi.c │ │ ├── libusb0_common.c │ │ ├── libusb0_common.h │ │ ├── libusb1_common.c │ │ ├── libusb1_common.h │ │ ├── libusb_common.h │ │ ├── minidriver_imp.h │ │ ├── mpsse.c │ │ ├── mpsse.h │ │ ├── opendous.c │ │ ├── openjtag.c │ │ ├── osbdm.c │ │ ├── parport.c │ │ ├── presto.c │ │ ├── remote_bitbang.c │ │ ├── rlink.c │ │ ├── rlink.h │ │ ├── rlink_call.m4 │ │ ├── rlink_dtc_cmd.h │ │ ├── rlink_ep1_cmd.h │ │ ├── rlink_init.m4 │ │ ├── rlink_speed_table.c │ │ ├── rlink_st7.h │ │ ├── stlink_usb.c │ │ ├── sysfsgpio.c │ │ ├── ti_icdi_usb.c │ │ ├── ulink.c │ │ ├── usb_blaster │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── README.CheapClone │ │ │ ├── ublast2_access_libusb.c │ │ │ ├── ublast_access.h │ │ │ ├── ublast_access_ftd2xx.c │ │ │ ├── ublast_access_ftdi.c │ │ │ └── usb_blaster.c │ │ ├── usb_common.c │ │ ├── usb_common.h │ │ ├── usbprog.c │ │ ├── versaloon │ │ │ ├── usbtoxxx │ │ │ │ ├── usbtogpio.c │ │ │ │ ├── usbtojtagraw.c │ │ │ │ ├── usbtopwr.c │ │ │ │ ├── usbtoswd.c │ │ │ │ ├── usbtoxxx.c │ │ │ │ ├── usbtoxxx.h │ │ │ │ └── usbtoxxx_internal.h │ │ │ ├── versaloon.c │ │ │ ├── versaloon.h │ │ │ ├── versaloon_include.h │ │ │ └── versaloon_internal.h │ │ └── vsllink.c │ ├── hla │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── hla_interface.c │ │ ├── hla_interface.h │ │ ├── hla_layout.c │ │ ├── hla_layout.h │ │ ├── hla_tcl.c │ │ ├── hla_tcl.h │ │ ├── hla_transport.c │ │ └── hla_transport.h │ ├── interface.c │ ├── interface.h │ ├── interfaces.c │ ├── interfaces.h │ ├── jtag.h │ ├── minidriver.h │ ├── minidriver │ │ └── minidriver_imp.h │ ├── minidummy │ │ ├── jtag_minidriver.h │ │ └── minidummy.c │ ├── startup.tcl │ ├── swd.h │ ├── tcl.c │ ├── tcl.h │ └── zy1000 │ │ └── zy1000.c ├── main.c ├── openocd.c ├── openocd.h ├── pld │ ├── Makefile.am │ ├── Makefile.in │ ├── pld.c │ ├── pld.h │ ├── virtex2.c │ ├── virtex2.h │ ├── xilinx_bit.c │ └── xilinx_bit.h ├── rtos │ ├── ChibiOS.c │ ├── FreeRTOS.c │ ├── Makefile.am │ ├── Makefile.in │ ├── ThreadX.c │ ├── eCos.c │ ├── embKernel.c │ ├── linux.c │ ├── linux_header.h │ ├── mqx.c │ ├── rtos.c │ ├── rtos.h │ ├── rtos_chibios_stackings.c │ ├── rtos_chibios_stackings.h │ ├── rtos_ecos_stackings.c │ ├── rtos_ecos_stackings.h │ ├── rtos_embkernel_stackings.c │ ├── rtos_embkernel_stackings.h │ ├── rtos_mqx_stackings.c │ ├── rtos_mqx_stackings.h │ ├── rtos_standard_stackings.c │ └── rtos_standard_stackings.h ├── server │ ├── Makefile.am │ ├── Makefile.in │ ├── gdb_server.c │ ├── gdb_server.h │ ├── server.c │ ├── server.h │ ├── server_stubs.c │ ├── startup.tcl │ ├── tcl_server.c │ ├── tcl_server.h │ ├── telnet_server.c │ └── telnet_server.h ├── svf │ ├── Makefile.am │ ├── Makefile.in │ ├── svf.c │ └── svf.h ├── target │ ├── CMakeLists.txt │ ├── Makefile.am │ ├── Makefile.in │ ├── adi_v5_jtag.c │ ├── adi_v5_swd.c │ ├── algorithm.c │ ├── algorithm.h │ ├── arm.h │ ├── arm11.c │ ├── arm11.h │ ├── arm11_dbgtap.c │ ├── arm11_dbgtap.h │ ├── arm720t.c │ ├── arm720t.h │ ├── arm7_9_common.c │ ├── arm7_9_common.h │ ├── arm7tdmi.c │ ├── arm7tdmi.h │ ├── arm920t.c │ ├── arm920t.h │ ├── arm926ejs.c │ ├── arm926ejs.h │ ├── arm946e.c │ ├── arm946e.h │ ├── arm966e.c │ ├── arm966e.h │ ├── arm9tdmi.c │ ├── arm9tdmi.h │ ├── arm_adi_v5.c │ ├── arm_adi_v5.h │ ├── arm_disassembler.c │ ├── arm_disassembler.h │ ├── arm_dpm.c │ ├── arm_dpm.h │ ├── arm_jtag.c │ ├── arm_jtag.h │ ├── arm_opcodes.h │ ├── arm_semihosting.c │ ├── arm_semihosting.h │ ├── arm_simulator.c │ ├── arm_simulator.h │ ├── armv4_5.c │ ├── armv4_5.h │ ├── armv4_5_cache.c │ ├── armv4_5_cache.h │ ├── armv4_5_mmu.c │ ├── armv4_5_mmu.h │ ├── armv7a.c │ ├── armv7a.h │ ├── armv7m.c │ ├── armv7m.h │ ├── armv7m_trace.c │ ├── armv7m_trace.h │ ├── avr32_ap7k.c │ ├── avr32_ap7k.h │ ├── avr32_jtag.c │ ├── avr32_jtag.h │ ├── avr32_mem.c │ ├── avr32_mem.h │ ├── avr32_regs.c │ ├── avr32_regs.h │ ├── avrt.c │ ├── avrt.h │ ├── breakpoints.c │ ├── breakpoints.h │ ├── cortex_a.c │ ├── cortex_a.h │ ├── cortex_m.c │ ├── cortex_m.h │ ├── dsp563xx.c │ ├── dsp563xx.h │ ├── dsp563xx_once.c │ ├── dsp563xx_once.h │ ├── dsp5680xx.c │ ├── dsp5680xx.h │ ├── embeddedice.c │ ├── embeddedice.h │ ├── etb.c │ ├── etb.h │ ├── etm.c │ ├── etm.h │ ├── etm_dummy.c │ ├── etm_dummy.h │ ├── fa526.c │ ├── feroceon.c │ ├── hla_target.c │ ├── image.c │ ├── image.h │ ├── lakemont.c │ ├── lakemont.h │ ├── mips32.c │ ├── mips32.h │ ├── mips32_dmaacc.c │ ├── mips32_dmaacc.h │ ├── mips32_pracc.c │ ├── mips32_pracc.h │ ├── mips_ejtag.c │ ├── mips_ejtag.h │ ├── mips_m4k.c │ ├── mips_m4k.h │ ├── nds32.c │ ├── nds32.h │ ├── nds32_aice.c │ ├── nds32_aice.h │ ├── nds32_cmd.c │ ├── nds32_cmd.h │ ├── nds32_disassembler.c │ ├── nds32_disassembler.h │ ├── nds32_edm.h │ ├── nds32_insn.h │ ├── nds32_reg.c │ ├── nds32_reg.h │ ├── nds32_tlb.c │ ├── nds32_tlb.h │ ├── nds32_v2.c │ ├── nds32_v2.h │ ├── nds32_v3.c │ ├── nds32_v3.h │ ├── nds32_v3_common.c │ ├── nds32_v3_common.h │ ├── nds32_v3m.c │ ├── nds32_v3m.h │ ├── oocd_trace.c │ ├── oocd_trace.h │ ├── openrisc │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── jsp_server.c │ │ ├── jsp_server.h │ │ ├── or1k.c │ │ ├── or1k.h │ │ ├── or1k_du.h │ │ ├── or1k_du_adv.c │ │ ├── or1k_tap.h │ │ ├── or1k_tap_mohor.c │ │ ├── or1k_tap_vjtag.c │ │ └── or1k_tap_xilinx_bscan.c │ ├── quark_x10xx.c │ ├── register.c │ ├── register.h │ ├── smp.c │ ├── smp.h │ ├── startup.tcl │ ├── target.c │ ├── target.h │ ├── target_request.c │ ├── target_request.h │ ├── target_type.h │ ├── testee.c │ ├── trace.c │ ├── trace.h │ ├── x86_32_common.c │ ├── x86_32_common.h │ ├── xscale.c │ ├── xscale.h │ ├── xscale │ │ ├── build.sh │ │ ├── debug_handler.S │ │ ├── debug_handler.bin │ │ ├── debug_handler.cmd │ │ └── protocol.h │ ├── xtensa.c │ └── xtensa.h ├── transport │ ├── Makefile.am │ ├── Makefile.in │ ├── transport.c │ └── transport.h └── xsvf │ ├── Makefile.am │ ├── Makefile.in │ ├── xsvf.c │ └── xsvf.h ├── tcl ├── bitsbytes.tcl ├── board │ ├── actux3.cfg │ ├── alphascale_asm9260_ek.cfg │ ├── altera_sockit.cfg │ ├── am3517evm.cfg │ ├── arm_evaluator7t.cfg │ ├── asus-rt-n16.cfg │ ├── asus-rt-n66u.cfg │ ├── at91cap7a-stk-sdram.cfg │ ├── at91eb40a.cfg │ ├── at91rm9200-dk.cfg │ ├── at91rm9200-ek.cfg │ ├── at91sam9261-ek.cfg │ ├── at91sam9263-ek.cfg │ ├── at91sam9g20-ek.cfg │ ├── atmel_at91sam7s-ek.cfg │ ├── atmel_at91sam9260-ek.cfg │ ├── atmel_at91sam9rl-ek.cfg │ ├── atmel_sam3n_ek.cfg │ ├── atmel_sam3s_ek.cfg │ ├── atmel_sam3u_ek.cfg │ ├── atmel_sam3x_ek.cfg │ ├── atmel_sam4e_ek.cfg │ ├── atmel_sam4l8_xplained_pro.cfg │ ├── atmel_sam4s_ek.cfg │ ├── atmel_sam4s_xplained_pro.cfg │ ├── atmel_samd20_xplained_pro.cfg │ ├── atmel_samd21_xplained_pro.cfg │ ├── atmel_samg53_xplained_pro.cfg │ ├── atmel_saml21_xplained_pro.cfg │ ├── atmel_samr21_xplained_pro.cfg │ ├── balloon3-cpu.cfg │ ├── bcm28155_ap.cfg │ ├── bt-homehubv1.cfg │ ├── colibri.cfg │ ├── crossbow_tech_imote2.cfg │ ├── csb337.cfg │ ├── csb732.cfg │ ├── da850evm.cfg │ ├── digi_connectcore_wi-9c.cfg │ ├── digilent_zedboard.cfg │ ├── diolan_lpc4350-db1.cfg │ ├── dk-tm4c129.cfg │ ├── dm355evm.cfg │ ├── dm365evm.cfg │ ├── dm6446evm.cfg │ ├── dp_busblaster_v3.cfg │ ├── efikamx.cfg │ ├── efm32.cfg │ ├── eir.cfg │ ├── ek-lm3s1968.cfg │ ├── ek-lm3s3748.cfg │ ├── ek-lm3s6965.cfg │ ├── ek-lm3s811-revb.cfg │ ├── ek-lm3s811.cfg │ ├── ek-lm3s8962.cfg │ ├── ek-lm3s9b9x.cfg │ ├── ek-lm3s9d92.cfg │ ├── ek-lm4f120xl.cfg │ ├── ek-lm4f232.cfg │ ├── ek-tm4c123gxl.cfg │ ├── ek-tm4c1294xl.cfg │ ├── embedded-artists_lpc2478-32.cfg │ ├── ethernut3.cfg │ ├── frdm-kl25z.cfg │ ├── frdm-kl46z.cfg │ ├── glyn_tonga2.cfg │ ├── gumstix-aerocore.cfg │ ├── hammer.cfg │ ├── hilscher_nxdb500sys.cfg │ ├── hilscher_nxeb500hmi.cfg │ ├── hilscher_nxhx10.cfg │ ├── hilscher_nxhx50.cfg │ ├── hilscher_nxhx500.cfg │ ├── hilscher_nxsb100.cfg │ ├── hitex_lpc1768stick.cfg │ ├── hitex_lpc2929.cfg │ ├── hitex_stm32-performancestick.cfg │ ├── hitex_str9-comstick.cfg │ ├── iar_lpc1768.cfg │ ├── iar_str912_sk.cfg │ ├── icnova_imx53_sodimm.cfg │ ├── icnova_sam9g45_sodimm.cfg │ ├── imx27ads.cfg │ ├── imx27lnst.cfg │ ├── imx28evk.cfg │ ├── imx31pdk.cfg │ ├── imx35pdk.cfg │ ├── imx53-m53evk.cfg │ ├── imx53loco.cfg │ ├── keil_mcb1700.cfg │ ├── keil_mcb2140.cfg │ ├── kwikstik.cfg │ ├── linksys-wrt54gl.cfg │ ├── linksys_nslu2.cfg │ ├── lisa-l.cfg │ ├── logicpd_imx27.cfg │ ├── lpc1850_spifi_generic.cfg │ ├── lpc4350_spifi_generic.cfg │ ├── lubbock.cfg │ ├── mbed-lpc11u24.cfg │ ├── mbed-lpc1768.cfg │ ├── mcb1700.cfg │ ├── microchip_explorer16.cfg │ ├── mini2440.cfg │ ├── mini6410.cfg │ ├── nds32_xc5.cfg │ ├── netgear-dg834v3.cfg │ ├── nordic_nrf51822_mkit.cfg │ ├── olimex_LPC2378STK.cfg │ ├── olimex_lpc_h2148.cfg │ ├── olimex_sam7_ex256.cfg │ ├── olimex_sam7_la2.cfg │ ├── olimex_sam9_l9260.cfg │ ├── olimex_stm32_h103.cfg │ ├── olimex_stm32_h107.cfg │ ├── olimex_stm32_p107.cfg │ ├── omap2420_h4.cfg │ ├── open-bldc.cfg │ ├── openrd.cfg │ ├── or1k_generic.cfg │ ├── osk5912.cfg │ ├── phone_se_j100i.cfg │ ├── phytec_lpc3250.cfg │ ├── pic-p32mx.cfg │ ├── propox_mmnet1001.cfg │ ├── pxa255_sst.cfg │ ├── quark_x10xx_board.cfg │ ├── redbee.cfg │ ├── rsc-w910.cfg │ ├── sheevaplug.cfg │ ├── smdk6410.cfg │ ├── spansion_sk-fm4-176l-s6e2cc.cfg │ ├── spear300evb.cfg │ ├── spear300evb_mod.cfg │ ├── spear310evb20.cfg │ ├── spear310evb20_mod.cfg │ ├── spear320cpu.cfg │ ├── spear320cpu_mod.cfg │ ├── st_nucleo_f0.cfg │ ├── st_nucleo_f103rb.cfg │ ├── st_nucleo_f3.cfg │ ├── st_nucleo_f4.cfg │ ├── st_nucleo_l1.cfg │ ├── steval_pcc010.cfg │ ├── stm320518_eval.cfg │ ├── stm320518_eval_stlink.cfg │ ├── stm32100b_eval.cfg │ ├── stm3210b_eval.cfg │ ├── stm3210c_eval.cfg │ ├── stm3210e_eval.cfg │ ├── stm3220g_eval.cfg │ ├── stm3220g_eval_stlink.cfg │ ├── stm3241g_eval.cfg │ ├── stm3241g_eval_stlink.cfg │ ├── stm32429i_eval.cfg │ ├── stm32429i_eval_stlink.cfg │ ├── stm32439i_eval.cfg │ ├── stm32439i_eval_stlink.cfg │ ├── stm32f0discovery.cfg │ ├── stm32f334discovery.cfg │ ├── stm32f3discovery.cfg │ ├── stm32f429discovery.cfg │ ├── stm32f4discovery.cfg │ ├── stm32l0discovery.cfg │ ├── stm32ldiscovery.cfg │ ├── stm32vldiscovery.cfg │ ├── str910-eval.cfg │ ├── telo.cfg │ ├── ti-cc3200-launchxl.cfg │ ├── ti_am335xevm.cfg │ ├── ti_am437x_idk.cfg │ ├── ti_am43xx_evm.cfg │ ├── ti_beagleboard.cfg │ ├── ti_beagleboard_xm.cfg │ ├── ti_beaglebone.cfg │ ├── ti_blaze.cfg │ ├── ti_pandaboard.cfg │ ├── ti_pandaboard_es.cfg │ ├── ti_tmdx570ls20susb.cfg │ ├── ti_tmdx570ls31usb.cfg │ ├── topas910.cfg │ ├── topasa900.cfg │ ├── tp-link_tl-mr3020.cfg │ ├── twr-k60f120m.cfg │ ├── twr-k60n512.cfg │ ├── tx25_stk5.cfg │ ├── tx27_stk5.cfg │ ├── unknown_at91sam9260.cfg │ ├── uptech_2410.cfg │ ├── verdex.cfg │ ├── voipac.cfg │ ├── voltcraft_dso-3062c.cfg │ ├── x300t.cfg │ ├── xmc-2go.cfg │ ├── xmc1100-boot-kit.cfg │ ├── xmc4200-application-kit-actuator.cfg │ ├── xmc4500-application-kit-general.cfg │ ├── xmc4500-application-kit-sdram.cfg │ ├── xmc4500-relax.cfg │ └── zy1000.cfg ├── chip │ ├── atmel │ │ └── at91 │ │ │ ├── aic.tcl │ │ │ ├── at91_pio.cfg │ │ │ ├── at91_pmc.cfg │ │ │ ├── at91_rstc.cfg │ │ │ ├── at91_wdt.cfg │ │ │ ├── at91sam7x128.tcl │ │ │ ├── at91sam7x256.tcl │ │ │ ├── at91sam9261.cfg │ │ │ ├── at91sam9261_matrix.cfg │ │ │ ├── at91sam9263.cfg │ │ │ ├── at91sam9263_matrix.cfg │ │ │ ├── at91sam9_init.cfg │ │ │ ├── at91sam9_sdramc.cfg │ │ │ ├── at91sam9_smc.cfg │ │ │ ├── hardware.cfg │ │ │ ├── pmc.tcl │ │ │ ├── rtt.tcl │ │ │ ├── sam9_smc.cfg │ │ │ └── usarts.tcl │ ├── st │ │ ├── spear │ │ │ ├── quirk_no_srst.tcl │ │ │ ├── spear3xx.tcl │ │ │ └── spear3xx_ddr.tcl │ │ └── stm32 │ │ │ ├── stm32.tcl │ │ │ ├── stm32_rcc.tcl │ │ │ └── stm32_regs.tcl │ └── ti │ │ └── lm3s │ │ ├── lm3s.tcl │ │ └── lm3s_regs.tcl ├── cpld │ ├── lattice-lc4032ze.cfg │ └── xilinx-xcr3256.cfg ├── cpu │ └── arm │ │ ├── arm7tdmi.tcl │ │ ├── arm920.tcl │ │ ├── arm946.tcl │ │ ├── arm966.tcl │ │ └── cortex_m3.tcl ├── interface │ ├── altera-usb-blaster.cfg │ ├── altera-usb-blaster2.cfg │ ├── arm-jtag-ew.cfg │ ├── at91rm9200.cfg │ ├── axm0432.cfg │ ├── busblaster.cfg │ ├── buspirate.cfg │ ├── calao-usb-a9260-c01.cfg │ ├── calao-usb-a9260-c02.cfg │ ├── calao-usb-a9260.cfg │ ├── chameleon.cfg │ ├── cmsis-dap.cfg │ ├── cortino.cfg │ ├── digilent-hs1.cfg │ ├── dlp-usb1232h.cfg │ ├── dummy.cfg │ ├── estick.cfg │ ├── flashlink.cfg │ ├── flossjtag-noeeprom.cfg │ ├── flossjtag.cfg │ ├── flyswatter.cfg │ ├── flyswatter2.cfg │ ├── ftdi │ │ ├── axm0432.cfg │ │ ├── calao-usb-a9260-c01.cfg │ │ ├── calao-usb-a9260-c02.cfg │ │ ├── cortino.cfg │ │ ├── digilent_jtag_smt2.cfg │ │ ├── dlp-usb1232h.cfg │ │ ├── dp_busblaster.cfg │ │ ├── dp_busblaster_kt-link.cfg │ │ ├── flossjtag-noeeprom.cfg │ │ ├── flossjtag.cfg │ │ ├── flyswatter.cfg │ │ ├── flyswatter2.cfg │ │ ├── gw16042.cfg │ │ ├── hilscher_nxhx10_etm.cfg │ │ ├── hilscher_nxhx500_etm.cfg │ │ ├── hilscher_nxhx500_re.cfg │ │ ├── hilscher_nxhx50_etm.cfg │ │ ├── hilscher_nxhx50_re.cfg │ │ ├── hitex_lpc1768stick.cfg │ │ ├── hitex_str9-comstick.cfg │ │ ├── icebear.cfg │ │ ├── iotlab-usb.cfg │ │ ├── jtag-lock-pick_tiny_2.cfg │ │ ├── jtagkey.cfg │ │ ├── jtagkey2.cfg │ │ ├── jtagkey2p.cfg │ │ ├── kt-link.cfg │ │ ├── lisa-l.cfg │ │ ├── luminary-icdi.cfg │ │ ├── luminary-lm3s811.cfg │ │ ├── luminary.cfg │ │ ├── m53evk.cfg │ │ ├── minimodule.cfg │ │ ├── neodb.cfg │ │ ├── ngxtech.cfg │ │ ├── olimex-arm-jtag-swd.cfg │ │ ├── olimex-arm-usb-ocd-h.cfg │ │ ├── olimex-arm-usb-ocd.cfg │ │ ├── olimex-arm-usb-tiny-h.cfg │ │ ├── olimex-jtag-tiny.cfg │ │ ├── oocdlink.cfg │ │ ├── opendous_ftdi.cfg │ │ ├── openocd-usb-hs.cfg │ │ ├── openocd-usb.cfg │ │ ├── openrd.cfg │ │ ├── redbee-econotag.cfg │ │ ├── redbee-usb.cfg │ │ ├── rowley-cc-arm-swd.cfg │ │ ├── sheevaplug.cfg │ │ ├── signalyzer-lite.cfg │ │ ├── signalyzer.cfg │ │ ├── stm32-stick.cfg │ │ ├── swd-resistor-hack.cfg │ │ ├── ti-icdi.cfg │ │ ├── tumpa-lite.cfg │ │ ├── tumpa.cfg │ │ ├── turtelizer2-revB.cfg │ │ ├── turtelizer2-revC.cfg │ │ ├── vpaclink.cfg │ │ └── xds100v2.cfg │ ├── hilscher_nxhx10_etm.cfg │ ├── hilscher_nxhx500_etm.cfg │ ├── hilscher_nxhx500_re.cfg │ ├── hilscher_nxhx50_etm.cfg │ ├── hilscher_nxhx50_re.cfg │ ├── hitex_str9-comstick.cfg │ ├── icebear.cfg │ ├── jlink.cfg │ ├── jtag-lock-pick_tiny_2.cfg │ ├── jtag_vpi.cfg │ ├── jtagkey-tiny.cfg │ ├── jtagkey.cfg │ ├── jtagkey2.cfg │ ├── jtagkey2p.cfg │ ├── kt-link.cfg │ ├── lisa-l.cfg │ ├── luminary-icdi.cfg │ ├── luminary-lm3s811.cfg │ ├── luminary.cfg │ ├── minimodule.cfg │ ├── nds32-aice.cfg │ ├── neodb.cfg │ ├── ngxtech.cfg │ ├── olimex-arm-usb-ocd-h.cfg │ ├── olimex-arm-usb-ocd.cfg │ ├── olimex-arm-usb-tiny-h.cfg │ ├── olimex-jtag-tiny.cfg │ ├── oocdlink.cfg │ ├── opendous.cfg │ ├── opendous_ftdi.cfg │ ├── openjtag.cfg │ ├── openocd-usb-hs.cfg │ ├── openocd-usb.cfg │ ├── openrd.cfg │ ├── osbdm.cfg │ ├── parport.cfg │ ├── parport_dlc5.cfg │ ├── raspberrypi-native.cfg │ ├── redbee-econotag.cfg │ ├── redbee-usb.cfg │ ├── rlink.cfg │ ├── sheevaplug.cfg │ ├── signalyzer-h2.cfg │ ├── signalyzer-h4.cfg │ ├── signalyzer-lite.cfg │ ├── signalyzer.cfg │ ├── stlink-v1.cfg │ ├── stlink-v2-1.cfg │ ├── stlink-v2.cfg │ ├── stm32-stick.cfg │ ├── sysfsgpio-raspberrypi.cfg │ ├── ti-icdi.cfg │ ├── turtelizer2.cfg │ ├── ulink.cfg │ ├── usb-jtag.cfg │ ├── usbprog.cfg │ ├── vpaclink.cfg │ ├── vsllink.cfg │ └── xds100v2.cfg ├── mem_helper.tcl ├── memory.tcl ├── mmr_helpers.tcl ├── target │ ├── 1986ве1Ñ‚.cfg │ ├── aduc702x.cfg │ ├── alphascale_asm9260t.cfg │ ├── altera_fpgasoc.cfg │ ├── am335x.cfg │ ├── am437x.cfg │ ├── amdm37x.cfg │ ├── ar71xx.cfg │ ├── armada370.cfg │ ├── at32ap7000.cfg │ ├── at91r40008.cfg │ ├── at91rm9200.cfg │ ├── at91sam3XXX.cfg │ ├── at91sam3ax_4x.cfg │ ├── at91sam3ax_8x.cfg │ ├── at91sam3ax_xx.cfg │ ├── at91sam3nXX.cfg │ ├── at91sam3sXX.cfg │ ├── at91sam3u1c.cfg │ ├── at91sam3u1e.cfg │ ├── at91sam3u2c.cfg │ ├── at91sam3u2e.cfg │ ├── at91sam3u4c.cfg │ ├── at91sam3u4e.cfg │ ├── at91sam3uxx.cfg │ ├── at91sam4XXX.cfg │ ├── at91sam4lXX.cfg │ ├── at91sam4sXX.cfg │ ├── at91sam4sd32x.cfg │ ├── at91sam7a2.cfg │ ├── at91sam7se512.cfg │ ├── at91sam7sx.cfg │ ├── at91sam7x256.cfg │ ├── at91sam7x512.cfg │ ├── at91sam9.cfg │ ├── at91sam9260.cfg │ ├── at91sam9260_ext_RAM_ext_flash.cfg │ ├── at91sam9261.cfg │ ├── at91sam9263.cfg │ ├── at91sam9g10.cfg │ ├── at91sam9g20.cfg │ ├── at91sam9g45.cfg │ ├── at91sam9rl.cfg │ ├── at91samdXX.cfg │ ├── at91samg5x.cfg │ ├── atheros_ar9331.cfg │ ├── atmega128.cfg │ ├── avr32.cfg │ ├── bcm281xx.cfg │ ├── bcm4706.cfg │ ├── bcm4718.cfg │ ├── bcm47xx.cfg │ ├── bcm5352e.cfg │ ├── bcm6348.cfg │ ├── c100.cfg │ ├── c100config.tcl │ ├── c100helper.tcl │ ├── c100regs.tcl │ ├── cc2538.cfg │ ├── cc26xx.cfg │ ├── cc32xx.cfg │ ├── cs351x.cfg │ ├── davinci.cfg │ ├── dragonite.cfg │ ├── dsp56321.cfg │ ├── dsp568013.cfg │ ├── dsp568037.cfg │ ├── efm32.cfg │ ├── efm32_stlink.cfg │ ├── em357.cfg │ ├── em358.cfg │ ├── epc9301.cfg │ ├── esp8266.cfg │ ├── faux.cfg │ ├── feroceon.cfg │ ├── fm3.cfg │ ├── fm4.cfg │ ├── gp326xxxa.cfg │ ├── hilscher_netx10.cfg │ ├── hilscher_netx50.cfg │ ├── hilscher_netx500.cfg │ ├── icepick.cfg │ ├── imx.cfg │ ├── imx21.cfg │ ├── imx25.cfg │ ├── imx27.cfg │ ├── imx28.cfg │ ├── imx31.cfg │ ├── imx35.cfg │ ├── imx51.cfg │ ├── imx53.cfg │ ├── imx6.cfg │ ├── is5114.cfg │ ├── ixp42x.cfg │ ├── k40.cfg │ ├── k60.cfg │ ├── kl25.cfg │ ├── kl25z_hla.cfg │ ├── kl46.cfg │ ├── klx.cfg │ ├── ks869x.cfg │ ├── kx.cfg │ ├── lpc11xx.cfg │ ├── lpc12xx.cfg │ ├── lpc13xx.cfg │ ├── lpc17xx.cfg │ ├── lpc1850.cfg │ ├── lpc1xxx.cfg │ ├── lpc2103.cfg │ ├── lpc2124.cfg │ ├── lpc2129.cfg │ ├── lpc2148.cfg │ ├── lpc2294.cfg │ ├── lpc2378.cfg │ ├── lpc2460.cfg │ ├── lpc2478.cfg │ ├── lpc2900.cfg │ ├── lpc2xxx.cfg │ ├── lpc3131.cfg │ ├── lpc3250.cfg │ ├── lpc40xx.cfg │ ├── lpc4350.cfg │ ├── lpc8xx.cfg │ ├── m051.cfg │ ├── mc13224v.cfg │ ├── mdr32f9q2i.cfg │ ├── nds32v2.cfg │ ├── nds32v3.cfg │ ├── nds32v3m.cfg │ ├── nrf51.cfg │ ├── nrf51_stlink.tcl │ ├── nuc910.cfg │ ├── omap2420.cfg │ ├── omap3530.cfg │ ├── omap4430.cfg │ ├── omap4460.cfg │ ├── omap5912.cfg │ ├── omapl138.cfg │ ├── or1k.cfg │ ├── pic32mx.cfg │ ├── psoc4.cfg │ ├── pxa255.cfg │ ├── pxa270.cfg │ ├── pxa3xx.cfg │ ├── quark_x10xx.cfg │ ├── readme.txt │ ├── samsung_s3c2410.cfg │ ├── samsung_s3c2440.cfg │ ├── samsung_s3c2450.cfg │ ├── samsung_s3c4510.cfg │ ├── samsung_s3c6410.cfg │ ├── sharp_lh79532.cfg │ ├── sim3x.cfg │ ├── smp8634.cfg │ ├── spear3xx.cfg │ ├── stellaris.cfg │ ├── stellaris_icdi.cfg │ ├── stm32_stlink.cfg │ ├── stm32f0x.cfg │ ├── stm32f0x_stlink.cfg │ ├── stm32f1x.cfg │ ├── stm32f1x_stlink.cfg │ ├── stm32f2x.cfg │ ├── stm32f2x_stlink.cfg │ ├── stm32f3x.cfg │ ├── stm32f3x_stlink.cfg │ ├── stm32f4x.cfg │ ├── stm32f4x_stlink.cfg │ ├── stm32l0.cfg │ ├── stm32l1.cfg │ ├── stm32l1x_dual_bank.cfg │ ├── stm32lx_stlink.cfg │ ├── stm32w108_stlink.cfg │ ├── stm32w108xx.cfg │ ├── stm32xl.cfg │ ├── str710.cfg │ ├── str730.cfg │ ├── str750.cfg │ ├── str912.cfg │ ├── swj-dp.tcl │ ├── test_reset_syntax_error.cfg │ ├── test_syntax_error.cfg │ ├── ti-ar7.cfg │ ├── ti-cjtag.cfg │ ├── ti_calypso.cfg │ ├── ti_dm355.cfg │ ├── ti_dm365.cfg │ ├── ti_dm6446.cfg │ ├── ti_rm4x.cfg │ ├── ti_tms570.cfg │ ├── ti_tms570ls20xxx.cfg │ ├── ti_tms570ls3137.cfg │ ├── tmpa900.cfg │ ├── tmpa910.cfg │ ├── u8500.cfg │ ├── xmc1xxx.cfg │ ├── xmc4xxx.cfg │ ├── zynq_7000.cfg │ └── к1879xб1я.cfg ├── test │ ├── selftest.cfg │ └── syntax1.cfg └── tools │ ├── firmware-recovery.tcl │ └── memtest.tcl ├── toolchain.cmake └── tools ├── logger.pl ├── rlink_make_speed_table ├── rlink_make_speed_table └── rlink_make_speed_table.pl └── st7_dtc_as ├── st7_dtc_as └── st7_dtc_as.pl /.gitignore: -------------------------------------------------------------------------------- 1 | CodeDB 2 | VisualGDB 3 | .vs 4 | VisualGDBCache -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "external/libusb1/source"] 2 | path = external/libusb1/source 3 | url = https://github.com/libusb/libusb 4 | [submodule "external/hidapi/source"] 5 | path = external/hidapi/source 6 | url = https://github.com/signal11/hidapi 7 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | Dominic Rath 2 | Magnus Lundin 3 | Michael Fischer 4 | Spencer Oliver 5 | Carsten Schlote 6 | Øyvind Harboe 7 | Duane Ellis 8 | Michael Schwingen 9 | Rick Altherr 10 | David Brownell 11 | Vincint Palatin 12 | Zachary T Welch 13 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.0) 2 | project (OpenOCD) 3 | 4 | INCLUDE (CheckIncludeFiles) 5 | SET(OPENOCD_VERSION 0.9.0) 6 | 7 | set(SH_WRAPPER ${CMAKE_CURRENT_SOURCE_DIR}/external/run-sh.bat) 8 | include(config.cmake) 9 | 10 | add_subdirectory(external/hidapi/scripts) 11 | add_subdirectory(external/libusb1/scripts) 12 | add_subdirectory(external/prebuilt) 13 | 14 | add_definitions(-DHAVE_CONFIG_H -DPKGDATADIR="." -DBINDIR="../../bin") 15 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) 16 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Werror=incompatible-pointer-types") 17 | 18 | add_subdirectory(jimtcl-cmake) 19 | add_subdirectory(src) 20 | 21 | INSTALL(DIRECTORY tcl/ DESTINATION share/openocd/scripts) 22 | INSTALL(DIRECTORY contrib DESTINATION share/openocd) 23 | -------------------------------------------------------------------------------- /common.mk: -------------------------------------------------------------------------------- 1 | 2 | # common flags used in openocd build 3 | AM_CPPFLAGS = -I$(top_srcdir)/src \ 4 | -I$(top_builddir)/src \ 5 | -I$(top_srcdir)/src/helper \ 6 | -DPKGDATADIR=\"$(pkgdatadir)\" \ 7 | -DBINDIR=\"$(bindir)\" 8 | 9 | if INTERNAL_JIMTCL 10 | AM_CPPFLAGS += -I$(top_srcdir)/jimtcl \ 11 | -I$(top_builddir)/jimtcl 12 | endif 13 | -------------------------------------------------------------------------------- /contrib/libdcc/README: -------------------------------------------------------------------------------- 1 | This code is an example of using the openocd debug message system. 2 | 3 | Before the message output is seen in the debug window, the functionality 4 | will need enabling: 5 | 6 | From the gdb prompt: 7 | monitor target_request debugmsgs enable 8 | monitor trace point 1 9 | 10 | From the Telnet prompt: 11 | target_request debugmsgs enable 12 | trace point 1 13 | 14 | To see how many times the trace point was hit: 15 | (monitor) trace point 1 16 | 17 | Spen 18 | spen@spen-soft.co.uk 19 | 20 | -------------------------------------------------------------------------------- /contrib/loaders/flash/at91sam7x/at91sam7x_ocl_flash.script: -------------------------------------------------------------------------------- 1 | soft_reset_halt 2 | load_image at91sam7x_ocl.bin 0x200000 3 | resume 0x200000 4 | flash probe 0 5 | -------------------------------------------------------------------------------- /contrib/rtos-helpers/FreeRTOS-openocd.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Since at least FreeRTOS V7.5.3 uxTopUsedPriority is no longer 3 | * present in the kernel, so it has to be supplied by other means for 4 | * OpenOCD's threads awareness. 5 | * 6 | * Add this file to your project, and, if you're using --gc-sections, 7 | * ``--undefined=uxTopUsedPriority'' (or 8 | * ``-Wl,--undefined=uxTopUsedPriority'' when using gcc for final 9 | * linking) to your LDFLAGS; same with all the other symbols you need. 10 | */ 11 | 12 | #include "FreeRTOS.h" 13 | 14 | #ifdef __GNUC__ 15 | #define USED __attribute__((used)) 16 | #else 17 | #define USED 18 | #endif 19 | 20 | const int USED uxTopUsedPriority = configMAX_PRIORITIES; 21 | -------------------------------------------------------------------------------- /doc/Makefile.am: -------------------------------------------------------------------------------- 1 | info_TEXINFOS = openocd.texi 2 | openocd_TEXINFOS = fdl.texi 3 | man_MANS = openocd.1 4 | EXTRA_DIST = openocd.1 \ 5 | manual \ 6 | INSTALL.txt 7 | 8 | MAINTAINERCLEANFILES = \ 9 | $(srcdir)/Makefile.in \ 10 | $(srcdir)/mdate-sh \ 11 | $(srcdir)/stamp-vti \ 12 | $(srcdir)/version.texi \ 13 | $(srcdir)/texinfo.tex 14 | -------------------------------------------------------------------------------- /doc/manual/app.txt: -------------------------------------------------------------------------------- 1 | /** @page appdocs OpenOCD Application APIs 2 | 3 | The top-level APIs in the OpenOCD library allow applications to integrate 4 | all of the low-level functionality using a set of simple function calls. 5 | 6 | These function calls do not exist in a re-usable form, but 7 | contributions to create and document them will be welcome. 8 | 9 | */ 10 | -------------------------------------------------------------------------------- /doc/manual/images/jtag-state-machine-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sysprogs/esp8266-openocd/d1603f2d9c5ad074010d2abdb44bca6f3851202e/doc/manual/images/jtag-state-machine-large.png -------------------------------------------------------------------------------- /doc/stamp-vti: -------------------------------------------------------------------------------- 1 | @set UPDATED 18 May 2015 2 | @set UPDATED-MONTH May 2015 3 | @set EDITION 0.9.0 4 | @set VERSION 0.9.0 5 | -------------------------------------------------------------------------------- /doc/version.texi: -------------------------------------------------------------------------------- 1 | @set UPDATED 18 May 2015 2 | @set UPDATED-MONTH May 2015 3 | @set EDITION 0.9.0 4 | @set VERSION 0.9.0 5 | -------------------------------------------------------------------------------- /external/hidapi/scripts/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) 2 | 3 | set(HIDAPI_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../source) 4 | 5 | add_library(hidapi STATIC 6 | ${HIDAPI_SOURCE_DIR}/windows/hid.c 7 | ) 8 | 9 | target_compile_definitions(hidapi PRIVATE HAVE_CONFIG_H) 10 | target_include_directories(hidapi PRIVATE ${HIDAPI_SOURCE_DIR}/hidapi) 11 | target_include_directories(hidapi INTERFACE ${HIDAPI_SOURCE_DIR}/hidapi) 12 | -------------------------------------------------------------------------------- /external/prebuilt/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(ftd2xx STATIC IMPORTED GLOBAL) 2 | SET_TARGET_PROPERTIES(ftd2xx PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/ftd2xx.lib) 3 | target_include_directories(ftd2xx INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) 4 | 5 | add_library(libusb0 STATIC IMPORTED GLOBAL) 6 | SET_TARGET_PROPERTIES(libusb0 PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/libusb.a) 7 | target_include_directories(libusb0 INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) 8 | -------------------------------------------------------------------------------- /external/prebuilt/ftd2xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sysprogs/esp8266-openocd/d1603f2d9c5ad074010d2abdb44bca6f3851202e/external/prebuilt/ftd2xx.h -------------------------------------------------------------------------------- /external/prebuilt/ftd2xx.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sysprogs/esp8266-openocd/d1603f2d9c5ad074010d2abdb44bca6f3851202e/external/prebuilt/ftd2xx.lib -------------------------------------------------------------------------------- /external/prebuilt/libusb.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sysprogs/esp8266-openocd/d1603f2d9c5ad074010d2abdb44bca6f3851202e/external/prebuilt/libusb.a -------------------------------------------------------------------------------- /external/run-sh.bat: -------------------------------------------------------------------------------- 1 | set PATH=%PATH%;C:\MinGW\msys\1.0\bin 2 | sh %1 %2 %3 %4 %5 %6 %7 %8 %9 %10 -------------------------------------------------------------------------------- /jimtcl-cmake/autosetup/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(jimsh0 ../../jimtcl/autosetup/jimsh0.c) -------------------------------------------------------------------------------- /jimtcl-cmake/jim-config.h.in: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #define HAVE_LONG_LONG 1 3 | /* #undef JIM_UTF8 */ 4 | #define JIM_VERSION @JIM_VERSION@ 5 | 6 | #ifdef _WIN32 7 | #define S_IRWXG 0 8 | #define S_IRWXO 0 9 | #endif -------------------------------------------------------------------------------- /jimtcl/.gitignore: -------------------------------------------------------------------------------- 1 | config.log 2 | tags 3 | /Makefile 4 | Tcl.html 5 | jimautoconf.h 6 | jimautoconfext.h 7 | jim-config.h 8 | _*.c 9 | jim-stdlib.c 10 | jim-tclcompat.c 11 | jim-tree.c 12 | jim-oo.c 13 | jimsh 14 | *.exe 15 | libjim.a 16 | *.so.* 17 | *.dll 18 | *.o 19 | configure.gnu 20 | jimsh0 21 | build-jim-ext 22 | -------------------------------------------------------------------------------- /jimtcl/.indent.pro: -------------------------------------------------------------------------------- 1 | -ncs 2 | -npcs 3 | -nut 4 | -bad 5 | -bap 6 | -bbb 7 | -nbc 8 | -nlp 9 | -ci4 10 | -br 11 | -ncdb 12 | -nce 13 | -cli4 14 | -d0 15 | -di1 16 | -nfc1 17 | -i4 18 | -l100 19 | -npsl 20 | -TJim_Stack 21 | -TJim_HashEntry 22 | -TJim_HashTableType 23 | -TJim_HashTable 24 | -TJim_HashTableIterator 25 | -TJim_Obj 26 | -TJim_ObjType 27 | -TJim_CallFrame 28 | -TJim_Var 29 | -TJim_Cmd 30 | -TJim_PrngState 31 | -TJim_Interp 32 | -TJim_Reference 33 | -TParseToken 34 | -TParseTokenList 35 | -------------------------------------------------------------------------------- /jimtcl/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | jim 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /jimtcl/BUGS: -------------------------------------------------------------------------------- 1 | Known bugs 2 | ========== 3 | 4 | None! 5 | -------------------------------------------------------------------------------- /jimtcl/README.extensions: -------------------------------------------------------------------------------- 1 | The /lib/jim directory contains both dynamically loadable extensions 2 | and pure-Tcl extensions. 3 | 4 | Dynamically loadable extensions must have a .so file extension 5 | Tcl extensions must have a .tcl file extension 6 | 7 | As long as /lib/jim is in $::auto_path (it is by default), extension 8 | abc can be loaded with: 9 | 10 | package require abc 11 | 12 | First abc.so will be tried, and then abc.tcl 13 | 14 | Note that this directory may be something like /lib/jim, /usr/lib/jim or 15 | /usr/local/lib/jim, depending upon where jim was installed. 16 | -------------------------------------------------------------------------------- /jimtcl/autosetup/README.autosetup: -------------------------------------------------------------------------------- 1 | This is autosetup v0.6.5. See http://msteveb.github.com/autosetup/ 2 | -------------------------------------------------------------------------------- /jimtcl/autosetup/cc-db.tcl: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 WorkWare Systems http://www.workware.net.au/ 2 | # All rights reserved 3 | 4 | # @synopsis: 5 | # 6 | # The 'cc-db' module provides a knowledge based of system idiosyncracies 7 | # In general, this module can always be included 8 | 9 | use cc 10 | 11 | module-options {} 12 | 13 | # openbsd needs sys/types.h to detect some system headers 14 | cc-include-needs sys/socket.h sys/types.h 15 | cc-include-needs netinet/in.h sys/types.h 16 | -------------------------------------------------------------------------------- /jimtcl/autosetup/default.auto: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 WorkWare Systems http://www.workware.net.au/ 2 | # All rights reserved 3 | 4 | # Auto-load module for 'make' build system integration 5 | 6 | use init 7 | 8 | autosetup_add_init_type make {Simple "make" build system} { 9 | autosetup_check_create auto.def \ 10 | {# Initial auto.def created by 'autosetup --init=make' 11 | 12 | use cc 13 | 14 | # Add any user options here 15 | options { 16 | } 17 | 18 | make-config-header config.h 19 | make-template Makefile.in 20 | } 21 | 22 | if {![file exists Makefile.in]} { 23 | puts "Note: I don't see Makefile.in. You will probably need to create one." 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /jimtcl/autosetup/find-tclsh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Looks for a suitable tclsh or jimsh in the PATH 3 | # If not found, builds a bootstrap jimsh from source 4 | d=`dirname "$0"` 5 | { "$d/jimsh0" "$d/test-tclsh"; } 2>/dev/null && exit 0 6 | PATH="$PATH:$d"; export PATH 7 | for tclsh in jimsh tclsh tclsh8.5 tclsh8.6; do 8 | { $tclsh "$d/test-tclsh"; } 2>/dev/null && exit 0 9 | done 10 | echo 1>&2 "No installed jimsh or tclsh, building local bootstrap jimsh0" 11 | for cc in ${CC_FOR_BUILD:-cc} gcc; do 12 | { $cc -o "$d/jimsh0" "$d/jimsh0.c"; } 2>/dev/null || continue 13 | "$d/jimsh0" "$d/test-tclsh" && exit 0 14 | done 15 | echo 1>&2 "No working C compiler found. Tried ${CC_FOR_BUILD:-cc} and gcc." 16 | echo false 17 | -------------------------------------------------------------------------------- /jimtcl/autosetup/test-tclsh: -------------------------------------------------------------------------------- 1 | # A small Tcl script to verify that the chosen 2 | # interpreter works. Sometimes we might e.g. pick up 3 | # an interpreter for a different arch. 4 | # Outputs the full path to the interpreter 5 | 6 | if {[catch {info version} version] == 0} { 7 | # This is Jim Tcl 8 | if {$version >= 0.72} { 9 | # Ensure that regexp works 10 | regexp (a.*?) a 11 | puts [info nameofexecutable] 12 | exit 0 13 | } 14 | } elseif {[catch {info tclversion} version] == 0} { 15 | if {$version >= 8.5 && ![string match 8.5a* [info patchlevel]]} { 16 | puts [info nameofexecutable] 17 | exit 0 18 | } 19 | } 20 | exit 1 21 | -------------------------------------------------------------------------------- /jimtcl/bootstrap.tcl: -------------------------------------------------------------------------------- 1 | # No need for package support in the bootstrap jimsh, but 2 | # Tcl extensions call package require 3 | proc package {args} {} 4 | -------------------------------------------------------------------------------- /jimtcl/configure: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | dir="`dirname "$0"`/autosetup" 3 | WRAPPER="$0"; export WRAPPER; exec "`$dir/find-tclsh`" "$dir/autosetup" "$@" 4 | -------------------------------------------------------------------------------- /jimtcl/configure.ac: -------------------------------------------------------------------------------- 1 | # Dummy configure.ac to make automake happy 2 | -------------------------------------------------------------------------------- /jimtcl/examples.api/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS+= -Wall -g 2 | CFLAGS+= -I.. 3 | LDLIBS += -L.. -ljim 4 | 5 | EXAMPLES= \ 6 | jim_command \ 7 | jim_hello \ 8 | jim_list \ 9 | jim_obj \ 10 | jim_return 11 | 12 | all: $(EXAMPLES) 13 | 14 | clean: 15 | rm -rf $(EXAMPLES) 16 | rm -rf *.core 17 | -------------------------------------------------------------------------------- /jimtcl/examples.api/print.tcl: -------------------------------------------------------------------------------- 1 | puts "-- List present in an array constructed from C program --" 2 | foreach {str} $MYLIST { 3 | puts $str 4 | } 5 | puts "---------------------------------------------------------" 6 | -------------------------------------------------------------------------------- /jimtcl/examples.ext/Makefile: -------------------------------------------------------------------------------- 1 | # Note that if cross compiling, build with: 2 | # 3 | # make NOTEST=1 4 | # 5 | # to avoid trying to load the resulting module. 6 | # Also note that you will need a build-host version of jimsh in the 7 | # PATH in order to build the extension. 8 | 9 | # Prefer jimsh in the PATH because it is more likely to be built 10 | # for the build-host rather than the target. 11 | 12 | ifdef NOTEST 13 | BUILDOPTS := --notest 14 | endif 15 | 16 | export PATH := $(PATH):.. 17 | 18 | all: helloworld.so 19 | 20 | helloworld.so: helloworld.c 21 | ../build-jim-ext -I.. -L.. $(BUILDOPTS) $^ 22 | 23 | # Note: Currently we don't attempt to set LD_LIBRARY_PATH or equivalent 24 | 25 | test: 26 | JIMLIB=. ../jimsh -e 'package require helloworld; hello' 27 | 28 | clean: 29 | rm -f *.o *.so 30 | -------------------------------------------------------------------------------- /jimtcl/examples.ext/README: -------------------------------------------------------------------------------- 1 | This directory contains examples of C extensions for Jim. 2 | 3 | In general, do: 4 | 5 | build-jim-ext extsource.c 6 | 7 | See the Makefile 8 | -------------------------------------------------------------------------------- /jimtcl/examples.ext/helloworld.c: -------------------------------------------------------------------------------- 1 | /* 2 | * hello.c -- A minimal Jim C extension. 3 | */ 4 | #include 5 | 6 | static int 7 | Hello_Cmd(Jim_Interp *interp, int objc, Jim_Obj *const objv[]) 8 | { 9 | Jim_SetResultString(interp, "Hello, World!", -1); 10 | return JIM_OK; 11 | } 12 | 13 | /* 14 | * Jim_helloworldInit -- Called when Jim loads your extension. 15 | * 16 | * Note that the name *must* correspond exactly to the name of the extension: 17 | * Jim_Init 18 | */ 19 | int 20 | Jim_helloworldInit(Jim_Interp *interp) 21 | { 22 | Jim_CreateCommand(interp, "hello", Hello_Cmd, NULL, NULL); 23 | return JIM_OK; 24 | } 25 | -------------------------------------------------------------------------------- /jimtcl/examples/dnstest.tcl: -------------------------------------------------------------------------------- 1 | lappend auto_path [pwd] 2 | package require dns 3 | 4 | # Use google's DNS 5 | dns::configure -nameserver 8.8.8.8 6 | 7 | puts "Resolve with udp" 8 | set tok [dns::resolve www.tcl.tk] 9 | puts status=[dns::status $tok] 10 | puts address=[dns::address $tok] 11 | puts names=[dns::name $tok] 12 | dns::cleanup $tok 13 | 14 | # Now with tcp 15 | dns::configure -protocol tcp 16 | 17 | puts "Resolve with tcp" 18 | set tok [dns::resolve www.google.com] 19 | puts status=[dns::status $tok] 20 | puts address=[dns::address $tok] 21 | puts names=[dns::name $tok] 22 | dns::cleanup $tok 23 | -------------------------------------------------------------------------------- /jimtcl/examples/parray.tcl: -------------------------------------------------------------------------------- 1 | # Example of using the 'putter' function to redirect parray output 2 | 3 | set a {1 one 2 two 3 three} 4 | 5 | # Use 'curry' to create a single command from two words 6 | stderr puts "curry" 7 | parray a * [curry stderr puts] 8 | 9 | # Same thing, but an alias instead 10 | stderr puts "\nalias" 11 | alias stderr_puts stderr puts 12 | parray a * stderr_puts 13 | 14 | # Now use a lambda to accumulate the results in a buffer 15 | stderr puts "\nlamba" 16 | parray a * [lambda {msg} {lappend ::lines $msg}] 17 | stderr puts [join $lines \n] 18 | -------------------------------------------------------------------------------- /jimtcl/examples/pipe.tcl: -------------------------------------------------------------------------------- 1 | lassign [socket pipe] r w 2 | 3 | # Note, once the exec has the fh (via dup), close it 4 | # so that the pipe data is accessible 5 | exec ps aux >@$w & 6 | $w close 7 | 8 | $r readable { 9 | puts [$r gets] 10 | if {[eof $r]} { 11 | $r close 12 | set done 1 13 | } 14 | } 15 | 16 | vwait done 17 | -------------------------------------------------------------------------------- /jimtcl/examples/popen.tcl: -------------------------------------------------------------------------------- 1 | # Internally, open "|..." calls out to popen from tclcompat.tcl 2 | # 3 | # This code is compatible with Tcl 4 | 5 | # Write to a pipe 6 | set f [open |[list cat | sed -e "s/line/This is line/" >temp.out] w] 7 | puts "Creating temp.out with pids: [pid $f]" 8 | foreach n {1 2 3 4 5} { 9 | puts $f "line $n" 10 | } 11 | close $f 12 | 13 | # Read from a pipe 14 | set f [open "|cat temp.out"] 15 | puts "Reading temp.out with pids: [pid $f]" 16 | while {[gets $f buf] >= 0} { 17 | puts $buf 18 | } 19 | close $f 20 | file delete temp.out 21 | -------------------------------------------------------------------------------- /jimtcl/examples/sqlite3test.tcl: -------------------------------------------------------------------------------- 1 | package require sqlite3 2 | 3 | set db [sqlite3.open :memory:] 4 | $db query {CREATE TABLE plays (id, author, title)} 5 | $db query {INSERT INTO plays (id, author, title) VALUES (1, 'Goethe', 'Faust');} 6 | $db query {INSERT INTO plays (id, author, title) VALUES (2, 'Shakespeare', 'Hamlet');} 7 | $db query {INSERT INTO plays (id, author, title) VALUES (3, 'Sophocles', 'Oedipus Rex');} 8 | set res [$db query "SELECT * FROM plays"] 9 | $db close 10 | foreach r $res {puts $r(author)} 11 | -------------------------------------------------------------------------------- /jimtcl/examples/tcp.client: -------------------------------------------------------------------------------- 1 | # Example of sending via a connected tcp socket 2 | 3 | set s [socket stream 127.0.0.1:20000] 4 | 5 | foreach i [range 1 20] { 6 | $s puts "1 << $i" 7 | 8 | puts [$s gets] 9 | } 10 | -------------------------------------------------------------------------------- /jimtcl/examples/timedread.tcl: -------------------------------------------------------------------------------- 1 | # Tests that SIGALRM can interrupt read 2 | set f [open "/dev/urandom" r] 3 | 4 | set count 0 5 | set error NONE 6 | 7 | signal handle SIGALRM 8 | catch -signal { 9 | alarm 0.5 10 | while {1} { 11 | incr count [string bytelength [read $f 100]] 12 | } 13 | alarm 0 14 | signal default SIGALRM 15 | } error 16 | 17 | puts "Read $count bytes in 0.5 seconds: Got $error" 18 | 19 | $f close 20 | -------------------------------------------------------------------------------- /jimtcl/examples/udp.client: -------------------------------------------------------------------------------- 1 | # Example of sending from an unconnected socket 2 | 3 | set s [socket dgram] 4 | 5 | foreach i [range 1 5] { 6 | # Specify the address and port with sendto 7 | $s sendto "$i + $i + 10" 127.0.0.1:20000 8 | 9 | # Receive the response - max length of 100 10 | puts [$s recvfrom 100] 11 | } 12 | 13 | $s close 14 | 15 | # Now sending via a connected udp socket 16 | 17 | set s [socket dgram 127.0.0.1:20000] 18 | $s buffering none 19 | 20 | foreach i [range 5 10] { 21 | # Socket is connected, so can just use puts here 22 | # No need to flush because we set 'buffering none' above. 23 | $s puts -nonewline "$i * $i" 24 | #$s flush 25 | 26 | # Receive the response - max length of 100 27 | puts [$s recvfrom 100] 28 | } 29 | -------------------------------------------------------------------------------- /jimtcl/examples/udp.server: -------------------------------------------------------------------------------- 1 | # Example of a udp server which sends a response 2 | 3 | # Listen on port 20000. No host specified means 0.0.0.0 4 | set s [socket dgram.server 20000] 5 | 6 | # For each request... 7 | $s readable { 8 | # Get the request (max 80 chars) - need the source address 9 | set buf [$s recvfrom 80 addr] 10 | 11 | puts -nonewline "read '$buf' from $addr" 12 | 13 | try { 14 | set result "$buf = [expr $buf]" 15 | } on error {msg} { 16 | set result "Error: $buf => $msg" 17 | } 18 | 19 | puts ", sending '$result' to $addr" 20 | 21 | # Send the result back to where it came from 22 | $s sendto $result $addr 23 | } 24 | 25 | vwait done 26 | -------------------------------------------------------------------------------- /jimtcl/examples/udp2.client: -------------------------------------------------------------------------------- 1 | # Example of sending via a connected udp socket 2 | 3 | set s [socket dgram 127.0.0.1:20000] 4 | 5 | foreach i [range 1 20] { 6 | # Socket is connected, so can just use puts here 7 | # But remember to flush to ensure that each message is separate 8 | $s puts -nonewline "$i * $i" 9 | $s flush 10 | 11 | # Receive the response - max length of 100 12 | puts [$s recvfrom 100] 13 | } 14 | -------------------------------------------------------------------------------- /jimtcl/examples/udp6.client: -------------------------------------------------------------------------------- 1 | # Example of sending from an unconnected ipv6 socket 2 | 3 | set s [socket -ipv6 dgram] 4 | 5 | foreach i [range 1 5] { 6 | # Specify the address and port with sendto 7 | $s sendto "$i + $i + 10" {[::1]:20000} 8 | 9 | # Receive the response - max length of 100 10 | puts [$s recvfrom 100] 11 | } 12 | 13 | $s close 14 | 15 | # Now sending via a connected udp socket 16 | 17 | set s [socket -ipv6 dgram {[::1]:20000}] 18 | 19 | foreach i [range 5 10] { 20 | # Socket is connected, so can just use puts here 21 | # But remember to flush to ensure that each message is separate 22 | $s puts -nonewline "$i * $i" 23 | $s flush 24 | 25 | # Receive the response - max length of 100 26 | puts [$s recvfrom 100] 27 | } 28 | -------------------------------------------------------------------------------- /jimtcl/examples/udp6.server: -------------------------------------------------------------------------------- 1 | # Example of a udp server listening on ipv6 which sends a response 2 | # Note that on many hosts, this will also respond to ipv4 requests too 3 | 4 | # Listen on port 20000. 5 | set s [socket -ipv6 dgram.server {[::]:20000}] 6 | 7 | # For each request... 8 | $s readable { 9 | # Get the request (max 80 chars) - need the source address 10 | set buf [$s recvfrom 80 addr] 11 | 12 | puts -nonewline "read '$buf' from $addr" 13 | 14 | try { 15 | set result "$buf = [expr $buf]" 16 | } on error {msg} { 17 | set result "Error: $buf => $msg" 18 | } 19 | 20 | puts ", sending '$result'" 21 | 22 | # Send the result back to where it came from 23 | $s sendto $result $addr 24 | } 25 | 26 | vwait done 27 | -------------------------------------------------------------------------------- /jimtcl/jim-config.h.in: -------------------------------------------------------------------------------- 1 | /* Public autoconf settings */ 2 | @DEFINE_HAVE_LONG_LONG@ 3 | -------------------------------------------------------------------------------- /jimtcl/jim-signal.h: -------------------------------------------------------------------------------- 1 | #ifndef JIM_SIGNAL_H 2 | #define JIM_SIGNAL_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | /** 9 | * Returns the canonical name for the given signal, 10 | * e.g. "SIGTERM", "SIGINT" 11 | */ 12 | const char *Jim_SignalId(int sig); 13 | 14 | /** 15 | * If available, returns a short description of the given signal. 16 | * e.g. "Terminated", "Interrupted" 17 | * 18 | * Otherwise returns the same as Jim_SignalId() 19 | */ 20 | const char *Jim_SignalName(int sig); 21 | 22 | #ifdef __cplusplus 23 | } 24 | #endif 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /jimtcl/make-release.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | version=`sed -n -e 's/.*JIM_VERSION *\([0-9]*\).*/0.\1/p' jim.h` 4 | 5 | if [ `git clean -nqx | wc -l` -ne 0 ]; then 6 | git clean -nqx 7 | echo "***: Tree not clean" 8 | exit 1 9 | fi 10 | if [ `git status | grep modified: | wc -l` -ne 0 ]; then 11 | git status 12 | echo "***: Modified files exist" 13 | exit 1 14 | fi 15 | mkdir jimtcl-$version 16 | rsync --exclude=.git --exclude=jimtcl-$version -a ./ jimtcl-$version/ 17 | tar -czf jimtcl-$version.tar.gz jimtcl-$version 18 | rm -rf jimtcl-$version 19 | ls -l jimtcl-$version.tar.gz 20 | -------------------------------------------------------------------------------- /jimtcl/sqlite3/Makefile: -------------------------------------------------------------------------------- 1 | # Builds the full sqlite3 extension for Jim Tcl with the sqlite3 amalgamation 2 | 3 | all: sqlite3.so 4 | 5 | SQLITE3_OPTS := -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4 \ 6 | -DSQLITE_ENABLE_STAT3 -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_OMIT_INCRBLOB 7 | 8 | sqlite3.so: jim-sqlite3.c sqlite3.c 9 | ./build-ext -Wall -o $@ -I.. -L.. $(SQLITE3_OPTS) $(BUILDOPTS) $^ 10 | 11 | clean: 12 | rm -f *.o *.so 13 | 14 | # Note that this will only work when not cross compiling 15 | test: sqlite3.so 16 | ../jimsh test-sqlite3.tcl 17 | -------------------------------------------------------------------------------- /jimtcl/sqlite3/build-ext: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This is a small wrapper around build-jim-ext 4 | # which knows it is running in /sqlite3 and 5 | # so can find a host version of jimsh/tclsh 6 | 7 | # Prefer jimsh in .. if it exists 8 | PATH=..:$PATH; export PATH 9 | asdir="`dirname "$0"`/../autosetup" 10 | exec "`$asdir/find-tclsh`" ../build-jim-ext "$@" 11 | -------------------------------------------------------------------------------- /jimtcl/tests/Makefile: -------------------------------------------------------------------------------- 1 | jimsh ?= ../jimsh 2 | 3 | test: 4 | @rc=0; for i in *.test; do LD_LIBRARY_PATH=..:$(LD_LIBRARY_PATH) $(jimsh) $$i || rc=$?; done; exit $$rc 5 | 6 | clean: 7 | rm -f gorp.file2 gorp.file sleepx test1 exec.tmp1 8 | -------------------------------------------------------------------------------- /jimtcl/tests/break.tcl: -------------------------------------------------------------------------------- 1 | break 2 | -------------------------------------------------------------------------------- /jimtcl/tests/dummy.tcl: -------------------------------------------------------------------------------- 1 | # generates an error 2 | proc dummyproc {} { 3 | error "from dummyproc" 4 | } 5 | 6 | dummyproc 7 | -------------------------------------------------------------------------------- /jimtcl/tests/exitpackage.tcl: -------------------------------------------------------------------------------- 1 | # This package just exits 2 | 3 | exit 1 4 | -------------------------------------------------------------------------------- /jimtcl/tests/expand.test: -------------------------------------------------------------------------------- 1 | source [file dirname [info script]]/testing.tcl 2 | 3 | test expand-1.1 "Basic tests" { 4 | set a {1 2 3} 5 | set b {4 5 6} 6 | lappend a {*}$b 7 | } {1 2 3 4 5 6} 8 | 9 | test expand-1.2 "Basic tests" jim { 10 | set a {1 2 3} 11 | set b {4 5 6} 12 | lappend a {expand}$b 13 | } {1 2 3 4 5 6} 14 | 15 | test expand-1.3 "Basic tests" { 16 | set a {1 2 3} 17 | set b {4 5 6} 18 | lappend a *$b 19 | } {1 2 3 {*4 5 6}} 20 | 21 | test expand-1.4 "Basic tests" { 22 | set a {1 2 3} 23 | set b {4 5 6} 24 | lappend a expand$b 25 | } {1 2 3 {expand4 5 6}} 26 | 27 | testreport 28 | -------------------------------------------------------------------------------- /jimtcl/tests/expr-base.test: -------------------------------------------------------------------------------- 1 | source [file dirname [info script]]/testing.tcl 2 | 3 | # Test number detection 4 | set good_testcases { 5 | 0 0 6 | 1 1 7 | 8 8 8 | 00 0 9 | 07 7 10 | 08 8 11 | 0x5 5 12 | 0x0 0 13 | 0x00 0 14 | -0x5 -5 15 | 0b111 7 16 | -0b111 -7 17 | -0B101 -5 18 | 0o7 7 19 | } 20 | 21 | set i 0 22 | foreach {str exp} $good_testcases { 23 | test expr-base-1.[incr i] "expr conversion" [list expr [list $str]] $exp 24 | } 25 | 26 | set bad_testcases { 27 | {0x + 1} 28 | x 29 | 0xx5 30 | 0x-5 31 | {0x 5} 32 | {0o8 + 1} 33 | } 34 | 35 | set i 0 36 | foreach str $bad_testcases { 37 | test expr-base-2.[incr i] "expr conversion failure" -returnCodes error -body [list expr $str] -match glob -result "*" 38 | } 39 | testreport 40 | -------------------------------------------------------------------------------- /jimtcl/tests/infoframe.test: -------------------------------------------------------------------------------- 1 | source [file dirname [info script]]/testing.tcl 2 | needs constraint jim 3 | proc a {n} { 4 | if {$n eq "trace"} { 5 | stacktrace 6 | } else { 7 | info frame $n 8 | } 9 | } 10 | 11 | proc b {n} { 12 | a $n 13 | } 14 | 15 | proc c {n} { 16 | b $n 17 | } 18 | 19 | # --- Don't change line numbers above 20 | 21 | test info-frame-1.1 "Current proc" { 22 | c 0 23 | } {a infoframe.test 12} 24 | 25 | test info-frame-1.2 "Caller" { 26 | c -1 27 | } {b infoframe.test 16} 28 | 29 | test info-frame-1.3 "Caller of Caller" { 30 | c -2 31 | } {c infoframe.test 30} 32 | 33 | test stacktrace-1.1 "Full stack trace" { 34 | c trace 35 | } {a infoframe.test 12 b infoframe.test 16 c infoframe.test 34} 36 | 37 | testreport 38 | -------------------------------------------------------------------------------- /jimtcl/tests/lsortcmd.test: -------------------------------------------------------------------------------- 1 | source [file dirname [info script]]/testing.tcl 2 | 3 | set list {b d a c z} 4 | 5 | proc sorter {a v1 v2} { 6 | set ::arg $a 7 | return [string compare $v1 $v2] 8 | } 9 | 10 | proc test_lsort_cmd {test cmd list exp} { 11 | lsort -command $cmd $list 12 | if {$::arg != $exp} { 13 | error "$test: Failed" 14 | } 15 | } 16 | 17 | test lsortcmd-1.1 "Sort with one arg" { 18 | lsort -command "sorter arg1" $list 19 | set arg 20 | } {arg1} 21 | 22 | test lsortcmd-1.2 "Sort with one arg containg spaces" { 23 | lsort -command {sorter "arg with space"} $list 24 | set arg 25 | } {arg with space} 26 | 27 | test lsortcmd-1.3 "Sort with arg as list containg spaces" { 28 | lsort -command [list sorter [list arg with list "last with spaces"]] $list 29 | set arg 30 | } {arg with list {last with spaces}} 31 | 32 | testreport 33 | -------------------------------------------------------------------------------- /jimtcl/tests/return-break.tcl: -------------------------------------------------------------------------------- 1 | return -code break result 2 | -------------------------------------------------------------------------------- /jimtcl/tests/testing.tcl: -------------------------------------------------------------------------------- 1 | # Find and load the Jim tcltest wrapper 2 | if {[catch {info version}]} { 3 | # Tcl 4 | source [file dirname [info script]]/../tcltest.tcl 5 | } else { 6 | # Jim 7 | package require tcltest 8 | } 9 | -------------------------------------------------------------------------------- /jimtcl/tests/testio.in: -------------------------------------------------------------------------------- 1 | One line here 2 | ^ -------------------------------------------------------------------------------- /src/flash/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(nand) 2 | add_subdirectory(nor) 3 | add_library(flash common.c mflash.c) 4 | -------------------------------------------------------------------------------- /src/flash/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/common.mk 2 | 3 | SUBDIRS = \ 4 | nor \ 5 | nand 6 | 7 | METASOURCES = AUTO 8 | noinst_LTLIBRARIES = libflash.la 9 | libflash_la_SOURCES = \ 10 | common.c \ 11 | mflash.c 12 | 13 | libflash_la_LIBADD = \ 14 | $(top_builddir)/src/flash/nor/libocdflashnor.la \ 15 | $(top_builddir)/src/flash/nand/libocdflashnand.la 16 | 17 | noinst_HEADERS = \ 18 | common.h \ 19 | mflash.h 20 | 21 | EXTRA_DIST = startup.tcl 22 | 23 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 24 | -------------------------------------------------------------------------------- /src/flash/nand/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(ocdflashnand 2 | arm_io.c 3 | at91sam9.c 4 | core.c 5 | davinci.c 6 | driver.c 7 | ecc.c 8 | ecc_kw.c 9 | fileio.c 10 | lpc3180.c 11 | lpc32xx.c 12 | mx3.c 13 | mxc.c 14 | nonce.c 15 | nuc910.c 16 | orion.c 17 | s3c2410.c 18 | s3c2412.c 19 | s3c2440.c 20 | s3c2443.c 21 | s3c24xx.c 22 | s3c6400.c 23 | tcl.c) -------------------------------------------------------------------------------- /src/flash/nand/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/common.mk 2 | 3 | noinst_LTLIBRARIES = libocdflashnand.la 4 | 5 | libocdflashnand_la_SOURCES = \ 6 | ecc.c \ 7 | ecc_kw.c \ 8 | core.c \ 9 | fileio.c \ 10 | tcl.c \ 11 | arm_io.c \ 12 | $(NAND_DRIVERS) \ 13 | driver.c 14 | 15 | NAND_DRIVERS = \ 16 | nonce.c \ 17 | davinci.c \ 18 | lpc3180.c \ 19 | lpc32xx.c \ 20 | mxc.c \ 21 | mx3.c \ 22 | orion.c \ 23 | s3c24xx.c \ 24 | s3c2410.c \ 25 | s3c2412.c \ 26 | s3c2440.c \ 27 | s3c2443.c \ 28 | s3c6400.c \ 29 | at91sam9.c \ 30 | nuc910.c 31 | 32 | noinst_HEADERS = \ 33 | arm_io.h \ 34 | core.h \ 35 | driver.h \ 36 | fileio.h \ 37 | imp.h \ 38 | lpc3180.h \ 39 | lpc32xx.h \ 40 | mxc.h \ 41 | mx3.h \ 42 | s3c24xx.h \ 43 | s3c24xx_regs.h \ 44 | nuc910.h 45 | 46 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 47 | -------------------------------------------------------------------------------- /src/flash/nor/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(ocdflashnor 2 | aduc702x.c 3 | at91sam3.c 4 | at91sam4.c 5 | at91sam4l.c 6 | at91sam7.c 7 | at91samd.c 8 | avrf.c 9 | cfi.c 10 | core.c 11 | drivers.c 12 | dsp5680xx_flash.c 13 | efm32.c 14 | em357.c 15 | faux.c 16 | fm3.c 17 | kinetis.c 18 | lpc288x.c 19 | lpc2000.c 20 | lpc2900.c 21 | lpcspifi.c 22 | mdr.c 23 | mini51.c 24 | mrvlqspi.c 25 | non_cfi.c 26 | nrf51.c 27 | nuc1x.c 28 | ocl.c 29 | pic32mx.c 30 | psoc4.c 31 | sim3x.c 32 | spi.c 33 | stellaris.c 34 | stm32f1x.c 35 | stm32f2x.c 36 | stm32lx.c 37 | stmsmi.c 38 | str7x.c 39 | str9x.c 40 | str9xpec.c 41 | tcl.c 42 | tms470.c 43 | virtual.c) -------------------------------------------------------------------------------- /src/flash/nor/sim3x.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sysprogs/esp8266-openocd/d1603f2d9c5ad074010d2abdb44bca6f3851202e/src/flash/nor/sim3x.c -------------------------------------------------------------------------------- /src/helper/bin2char.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | [ $# != 0 ] && { 4 | echo "Usage: $0" 5 | echo 6 | echo "Read binary data from standard input and write it as a comma separated" 7 | echo "list of hexadecimal byte values to standard ouput. The output is usable" 8 | echo "as a C array initializer. It is terminated with a comma so it can be" 9 | echo "continued e.g. for zero termination." 10 | exit 1 11 | } 12 | 13 | echo "/* Autogenerated with $0 */" 14 | od -v -A n -t x1 | sed 's/ *\(..\) */0x\1,/g' 15 | -------------------------------------------------------------------------------- /src/jtag/aice/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/common.mk 2 | 3 | AM_CPPFLAGS += -I$(top_srcdir)/src/jtag/drivers $(LIBUSB1_CFLAGS) $(LIBUSB0_CFLAGS) 4 | 5 | noinst_LTLIBRARIES = libocdaice.la 6 | 7 | libocdaice_la_SOURCES = \ 8 | $(AICEFILES) 9 | 10 | AICEFILES = 11 | 12 | if AICE 13 | AICEFILES += aice_transport.c 14 | AICEFILES += aice_interface.c 15 | AICEFILES += aice_port.c 16 | AICEFILES += aice_usb.c 17 | AICEFILES += aice_pipe.c 18 | endif 19 | 20 | noinst_HEADERS = \ 21 | aice_transport.h \ 22 | aice_interface.h \ 23 | aice_port.h \ 24 | aice_usb.h \ 25 | aice_pipe.h 26 | 27 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 28 | -------------------------------------------------------------------------------- /src/jtag/drivers/usb_blaster/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/common.mk 2 | 3 | AM_CPPFLAGS += -I$(top_srcdir)/src/jtag/drivers $(LIBUSB1_CFLAGS) $(LIBFTDI_CFLAGS) 4 | 5 | noinst_LTLIBRARIES = libocdusbblaster.la 6 | libocdusbblaster_la_SOURCES = $(USB_BLASTER_SRC) 7 | 8 | USB_BLASTER_SRC = usb_blaster.c 9 | 10 | if USB_BLASTER_LIBFTDI 11 | USB_BLASTER_SRC += ublast_access_ftdi.c 12 | endif 13 | 14 | if USB_BLASTER_FTD2XX 15 | USB_BLASTER_SRC += ublast_access_ftd2xx.c 16 | endif 17 | 18 | if USB_BLASTER_2 19 | USB_BLASTER_SRC += ublast2_access_libusb.c 20 | endif 21 | 22 | noinst_HEADERS = ublast_access.h 23 | 24 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 25 | -------------------------------------------------------------------------------- /src/jtag/hla/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/common.mk 2 | 3 | noinst_LTLIBRARIES = libocdhla.la 4 | 5 | libocdhla_la_SOURCES = \ 6 | $(HLFILES) 7 | 8 | HLFILES = 9 | 10 | if HLADAPTER 11 | HLFILES += hla_transport.c 12 | HLFILES += hla_tcl.c 13 | HLFILES += hla_interface.c 14 | HLFILES += hla_layout.c 15 | endif 16 | 17 | noinst_HEADERS = \ 18 | hla_interface.h \ 19 | hla_layout.h \ 20 | hla_tcl.h \ 21 | hla_transport.h 22 | 23 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 24 | -------------------------------------------------------------------------------- /src/pld/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/common.mk 2 | 3 | METASOURCES = AUTO 4 | noinst_LTLIBRARIES = libpld.la 5 | noinst_HEADERS = pld.h xilinx_bit.h virtex2.h 6 | libpld_la_SOURCES = pld.c xilinx_bit.c virtex2.c 7 | 8 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 9 | -------------------------------------------------------------------------------- /src/server/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/common.mk 2 | 3 | METASOURCES = AUTO 4 | noinst_LTLIBRARIES = libserver.la 5 | noinst_HEADERS = server.h telnet_server.h gdb_server.h 6 | libserver_la_SOURCES = server.c telnet_server.c gdb_server.c 7 | 8 | libserver_la_SOURCES += server_stubs.c 9 | 10 | libserver_la_CFLAGS = 11 | if IS_MINGW 12 | # FD_* macros are sloppy with their signs on MinGW32 platform 13 | libserver_la_CFLAGS += -Wno-sign-compare 14 | endif 15 | 16 | # tcl server addons 17 | noinst_HEADERS += tcl_server.h 18 | libserver_la_SOURCES += tcl_server.c 19 | 20 | EXTRA_DIST = \ 21 | startup.tcl 22 | 23 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 24 | -------------------------------------------------------------------------------- /src/server/startup.tcl: -------------------------------------------------------------------------------- 1 | # Defines basic Tcl procs for OpenOCD server modules 2 | 3 | # Handle GDB 'R' packet. Can be overridden by configuration script, 4 | # but it's not something one would expect target scripts to do 5 | # normally 6 | proc ocd_gdb_restart {target_id} { 7 | # Fix!!! we're resetting all targets here! Really we should reset only 8 | # one target 9 | reset halt 10 | } 11 | -------------------------------------------------------------------------------- /src/svf/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/common.mk 2 | 3 | METASOURCES = AUTO 4 | noinst_LTLIBRARIES = libsvf.la 5 | noinst_HEADERS = svf.h 6 | libsvf_la_SOURCES = svf.c 7 | 8 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 9 | -------------------------------------------------------------------------------- /src/target/openrisc/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/common.mk 2 | 3 | noinst_LTLIBRARIES = libopenrisc.la 4 | libopenrisc_la_SOURCES = $(OPENRISC_SRC) 5 | 6 | OPENRISC_SRC = \ 7 | or1k.c \ 8 | or1k_du_adv.c \ 9 | or1k_tap_mohor.c \ 10 | or1k_tap_vjtag.c \ 11 | or1k_tap_xilinx_bscan.c \ 12 | jsp_server.c 13 | 14 | noinst_HEADERS = \ 15 | or1k.h \ 16 | or1k_du.h \ 17 | or1k_tap.h \ 18 | jsp_server.h 19 | -------------------------------------------------------------------------------- /src/target/openrisc/jsp_server.h: -------------------------------------------------------------------------------- 1 | #ifndef _JSP_SERVER_H_ 2 | #define _JSP_SERVER_H_ 3 | 4 | #include "or1k_tap.h" 5 | #include "or1k.h" 6 | #include "or1k_du.h" 7 | 8 | struct jsp_service { 9 | char *banner; 10 | struct or1k_jtag *jtag_info; 11 | struct connection *connection; 12 | }; 13 | 14 | int jsp_init(struct or1k_jtag *jtag_info, char *banner); 15 | int jsp_register_commands(struct command_context *cmd_ctx); 16 | 17 | #endif /* _JSP_SERVER_H_ */ 18 | -------------------------------------------------------------------------------- /src/target/xscale/build.sh: -------------------------------------------------------------------------------- 1 | arm-none-eabi-gcc -c debug_handler.S -o debug_handler.o 2 | arm-none-eabi-ld -EL -n -Tdebug_handler.cmd debug_handler.o -o debug_handler.out 3 | arm-none-eabi-objcopy -O binary debug_handler.out debug_handler.bin 4 | 5 | #arm-none-eabi-gcc -mbig-endian -c debug_handler.S -o debug_handler_be.o 6 | #arm-none-eabi-ld -EB -n -Tdebug_handler.cmd debug_handler_be.o -o debug_handler_be.out 7 | #arm-none-eabi-objcopy -O binary debug_handler_be.out debug_handler_be.bin 8 | -------------------------------------------------------------------------------- /src/target/xscale/debug_handler.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sysprogs/esp8266-openocd/d1603f2d9c5ad074010d2abdb44bca6f3851202e/src/target/xscale/debug_handler.bin -------------------------------------------------------------------------------- /src/transport/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/common.mk 2 | 3 | #METASOURCES = AUTO 4 | noinst_LTLIBRARIES = libtransport.la 5 | libtransport_la_SOURCES = \ 6 | transport.c 7 | 8 | noinst_HEADERS = \ 9 | transport.h 10 | 11 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 12 | -------------------------------------------------------------------------------- /src/xsvf/Makefile.am: -------------------------------------------------------------------------------- 1 | include $(top_srcdir)/common.mk 2 | 3 | METASOURCES = AUTO 4 | noinst_LTLIBRARIES = libxsvf.la 5 | noinst_HEADERS = xsvf.h 6 | libxsvf_la_SOURCES = xsvf.c 7 | 8 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 9 | -------------------------------------------------------------------------------- /tcl/board/altera_sockit.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Cyclone V SocKit board 3 | # http://www.altera.com/b/arrow-sockit.html 4 | # 5 | # Software support page: 6 | # http://www.rocketboards.org/ 7 | 8 | # openocd does not currently support the on-board USB Blaster II. 9 | # Install the JTAG header and use a USB Blaster instead. 10 | interface usb_blaster 11 | 12 | source [find target/altera_fpgasoc.cfg] 13 | 14 | # If the USB Blaster II were supported, these settings would be needed 15 | #usb_blaster_vid_pid 0x6810 0x09fb 16 | #usb_blaster_device_desc "USB-Blaster II" 17 | 18 | adapter_khz 100 19 | 20 | -------------------------------------------------------------------------------- /tcl/board/am3517evm.cfg: -------------------------------------------------------------------------------- 1 | # DANGER!!!! early work in progress for this PCB/target. 2 | # 3 | # The most basic operations work well enough that it is 4 | # useful to have this in the repository for cooperation 5 | # alpha testing purposes. 6 | # 7 | # TI AM3517 8 | # 9 | # http://focus.ti.com/docs/prod/folders/print/am3517.html 10 | # http://processors.wiki.ti.com/index.php/Debug_Access_Port_(DAP) 11 | # http://processors.wiki.ti.com/index.php?title=How_to_Find_the_Silicon_Revision_of_your_OMAP35x 12 | 13 | set CHIPTYPE "am35x" 14 | source [find target/amdm37x.cfg] 15 | 16 | # The TI-14 JTAG connector does not have srst. CPU reset is handled in 17 | # hardware. 18 | reset_config trst_only 19 | 20 | # "amdm37x_dbginit am35x.cpu" needs to be run after init. 21 | 22 | -------------------------------------------------------------------------------- /tcl/board/arm_evaluator7t.cfg: -------------------------------------------------------------------------------- 1 | # This board is from ARM and has an samsung s3c45101x01 chip 2 | 3 | source [find target/samsung_s3c4510.cfg] 4 | 5 | # 6 | # FIXME: 7 | # Add (A) sdram configuration 8 | # Add (B) flash cfi programing configuration 9 | # 10 | 11 | -------------------------------------------------------------------------------- /tcl/board/asus-rt-n16.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # http://wikidevi.com/wiki/ASUS_RT-N16 3 | # 4 | 5 | set partition_list { 6 | CFE { Bootloader 0xbc000000 0x00040000 } 7 | firmware { "Kernel+rootfs" 0xbc040000 0x01fa0000 } 8 | nvram { "Config space" 0xbdfe0000 0x00020000 } 9 | } 10 | 11 | source [find target/bcm4718.cfg] 12 | 13 | # External 32MB NOR Flash (Macronix MX29GL256EHTI2I-90Q) 14 | set _FLASHNAME $_CHIPNAME.flash 15 | flash bank $_FLASHNAME cfi 0xbc000000 0x02000000 1 1 $_TARGETNAME x16_as_x8 16 | -------------------------------------------------------------------------------- /tcl/board/asus-rt-n66u.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # http://wikidevi.com/wiki/Asus_RT-N66U 3 | # 4 | 5 | echo "ATTENTION: you need to solder a 4.7-10k pullup resistor to pin 21 of flash IC" 6 | echo "to enable JTAG, see http://wl500g.info/album.php?albumid=28&attachmentid=8991 ," 7 | echo "there is an unpopulated footprint near U8.\n" 8 | 9 | set partition_list { 10 | CFE { Bootloader 0xbc000000 0x00040000 } 11 | firmware { "Kernel+rootfs" 0xbc040000 0x01fa0000 } 12 | nvram { "Config space" 0xbdfe0000 0x00020000 } 13 | } 14 | 15 | source [find target/bcm4706.cfg] 16 | 17 | # External 32MB NOR Flash (Spansion S29GL256P10TF101 18 | set _FLASHNAME $_CHIPNAME.flash 19 | flash bank $_FLASHNAME cfi 0xbc000000 0x02000000 2 2 $_TARGETNAME 20 | -------------------------------------------------------------------------------- /tcl/board/atmel_at91sam7s-ek.cfg: -------------------------------------------------------------------------------- 1 | # Atmel AT91SAM7S-EK 2 | # http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3784 3 | 4 | set CHIPNAME at91sam7s256 5 | 6 | source [find target/at91sam7sx.cfg] 7 | 8 | 9 | -------------------------------------------------------------------------------- /tcl/board/atmel_sam3n_ek.cfg: -------------------------------------------------------------------------------- 1 | 2 | # 3 | # Board configuration for Atmel's SAM3N-EK 4 | # 5 | 6 | reset_config srst_only 7 | 8 | set CHIPNAME at91sam3n4c 9 | 10 | adapter_khz 32 11 | 12 | source [find target/at91sam3nXX.cfg] 13 | -------------------------------------------------------------------------------- /tcl/board/atmel_sam3s_ek.cfg: -------------------------------------------------------------------------------- 1 | source [find target/at91sam3sXX.cfg] 2 | 3 | $_TARGETNAME configure -event gdb-attach { reset init } 4 | -------------------------------------------------------------------------------- /tcl/board/atmel_sam3u_ek.cfg: -------------------------------------------------------------------------------- 1 | source [find target/at91sam3u4e.cfg] 2 | 3 | reset_config srst_only 4 | 5 | -------------------------------------------------------------------------------- /tcl/board/atmel_sam3x_ek.cfg: -------------------------------------------------------------------------------- 1 | source [find target/at91sam3ax_8x.cfg] 2 | 3 | reset_config srst_only 4 | -------------------------------------------------------------------------------- /tcl/board/atmel_sam4e_ek.cfg: -------------------------------------------------------------------------------- 1 | # This is an SAM4E-EK board with a single SAM4E16 chip. 2 | # http://www.atmel.com/tools/sam4e-ek.aspx 3 | 4 | # chip name 5 | set CHIPNAME SAM4E16E 6 | 7 | source [find target/at91sam4sXX.cfg] 8 | -------------------------------------------------------------------------------- /tcl/board/atmel_sam4l8_xplained_pro.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Atmel SAM4L8 Xplained Pro evaluation kit. 3 | # http://www.atmel.com/tools/ATSAM4L8-XPRO.aspx 4 | # 5 | 6 | source [find interface/cmsis-dap.cfg] 7 | 8 | # chip name 9 | set CHIPNAME ATSAM4LC8CA 10 | 11 | source [find target/at91sam4lXX.cfg] 12 | -------------------------------------------------------------------------------- /tcl/board/atmel_sam4s_ek.cfg: -------------------------------------------------------------------------------- 1 | source [find target/at91sam4sXX.cfg] 2 | 3 | $_TARGETNAME configure -event gdb-attach { reset init } 4 | -------------------------------------------------------------------------------- /tcl/board/atmel_sam4s_xplained_pro.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Atmel SAM4S Xplained Pro evaluation kit. 3 | # http://www.atmel.com/tools/ATSAM4S-XPRO.aspx 4 | # 5 | 6 | source [find interface/cmsis-dap.cfg] 7 | 8 | # chip name 9 | set CHIPNAME ATSAM4SD32C 10 | 11 | source [find target/at91sam4sd32x.cfg] 12 | -------------------------------------------------------------------------------- /tcl/board/atmel_samd20_xplained_pro.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Atmel SAMD20 Xplained Pro evaluation kit. 3 | # http://www.atmel.com/tools/ATSAMD20-XPRO.aspx 4 | # 5 | 6 | source [find interface/cmsis-dap.cfg] 7 | 8 | # chip name 9 | set CHIPNAME at91samd20j18 10 | 11 | source [find target/at91samdXX.cfg] 12 | -------------------------------------------------------------------------------- /tcl/board/atmel_samd21_xplained_pro.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Atmel SAMD21 Xplained Pro evaluation kit. 3 | # 4 | 5 | source [find interface/cmsis-dap.cfg] 6 | 7 | # chip name 8 | set CHIPNAME at91samd21j18 9 | 10 | source [find target/at91samdXX.cfg] 11 | -------------------------------------------------------------------------------- /tcl/board/atmel_samg53_xplained_pro.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Atmel SAMG53 Xplained Pro evaluation kit. 3 | # http://www.atmel.com/tools/ATSAMG53-XPRO.aspx 4 | # 5 | 6 | source [find interface/cmsis-dap.cfg] 7 | 8 | # chip name 9 | set CHIPNAME ATSAMG53N19 10 | 11 | source [find target/at91samg5x.cfg] 12 | -------------------------------------------------------------------------------- /tcl/board/atmel_saml21_xplained_pro.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Atmel SAML21 Xplained Pro evaluation kit. 3 | # 4 | 5 | source [find interface/cmsis-dap.cfg] 6 | 7 | # chip name 8 | set CHIPNAME at91saml21j18 9 | 10 | source [find target/at91samdXX.cfg] 11 | -------------------------------------------------------------------------------- /tcl/board/atmel_samr21_xplained_pro.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Atmel SAMR21 Xplained Pro evaluation kit. 3 | # 4 | 5 | source [find interface/cmsis-dap.cfg] 6 | 7 | # chip name 8 | set CHIPNAME at91samr21g18 9 | 10 | source [find target/at91samdXX.cfg] 11 | -------------------------------------------------------------------------------- /tcl/board/balloon3-cpu.cfg: -------------------------------------------------------------------------------- 1 | # Config for balloon3 board, cpu JTAG port. http://balloonboard.org/ 2 | # The board has separate JTAG ports for cpu and CPLD/FPGA devices 3 | # Chaining is done on IO interfaces if desired. 4 | 5 | source [find target/pxa270.cfg] 6 | 7 | # The board supports separate reset lines 8 | # Override this in the interface config for parallel dongles 9 | reset_config trst_and_srst separate 10 | 11 | # flash bank 12 | # 29LV650 64Mbit Flash 13 | set _FLASHNAME $_CHIPNAME.flash 14 | flash bank $_FLASHNAME cfi 0x00000000 0x800000 2 2 $_TARGETNAME 15 | -------------------------------------------------------------------------------- /tcl/board/bcm28155_ap.cfg: -------------------------------------------------------------------------------- 1 | # BCM28155_AP 2 | 3 | adapter_khz 20000 4 | 5 | set CHIPNAME bcm28155 6 | source [find target/bcm281xx.cfg] 7 | 8 | reset_config trst_and_srst 9 | 10 | -------------------------------------------------------------------------------- /tcl/board/bt-homehubv1.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # BT HomeHub v1 3 | # 4 | 5 | set partition_list { 6 | CFE { Bootloader 0xbe400000 0x00020000 } 7 | firmware { "Kernel+rootfs" 0xbe420000 0x007d0000 } 8 | fisdir { "FIS Directory" 0xbebf0000 0x0000f000 } 9 | nvram { "Config space" 0xbebff000 0x00001000 } 10 | } 11 | 12 | source [find target/bcm6348.cfg] 13 | 14 | set _FLASHNAME $_CHIPNAME.norflash 15 | flash bank $_FLASHNAME cfi 0xbe400000 0x00800000 2 2 $_TARGETNAME 16 | -------------------------------------------------------------------------------- /tcl/board/colibri.cfg: -------------------------------------------------------------------------------- 1 | # Toradex Colibri PXA270 2 | source [find target/pxa270.cfg] 3 | reset_config trst_and_srst srst_push_pull 4 | adapter_nsrst_assert_width 40 5 | 6 | # CS0 -- one bank of CFI flash, 32 MBytes 7 | # the bank is 32-bits wide, two 16-bit chips in parallel 8 | set _FLASHNAME $_CHIPNAME.flash 9 | flash bank $_FLASHNAME cfi 0x00000000 0x02000000 2 4 $_TARGETNAME 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tcl/board/crossbow_tech_imote2.cfg: -------------------------------------------------------------------------------- 1 | # Crossbow Technology iMote2 2 | 3 | set CHIPNAME imote2 4 | source [find target/pxa270.cfg] 5 | 6 | # longer-than-normal reset delay 7 | adapter_nsrst_delay 800 8 | 9 | reset_config trst_and_srst separate 10 | 11 | # works for P30 flash 12 | set _FLASHNAME $_CHIPNAME.flash 13 | flash bank $_FLASHNAME cfi 0x00000000 0x2000000 2 2 $_TARGETNAME 14 | -------------------------------------------------------------------------------- /tcl/board/da850evm.cfg: -------------------------------------------------------------------------------- 1 | #DA850 EVM board 2 | # http://focus.ti.com/dsp/docs/thirdparty/catalog/devtoolsproductfolder.tsp?actionPerformed=productFolder&productId=5939 3 | # http://www.logicpd.com/products/development-kits/zoom-omap-l138-evm-development-kit 4 | 5 | source [find target/omapl138.cfg] 6 | 7 | reset_config trst_and_srst separate 8 | 9 | #currently any pinmux/timing must be setup by UBL before openocd can do debug 10 | #TODO: implement pinmux/timing on reset like in board/dm365evm.cfg 11 | -------------------------------------------------------------------------------- /tcl/board/digilent_zedboard.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Digilent Zedboard Rev.C, Rev.D with Xilinx Zynq chip 3 | # 4 | # http://zedboard.com/product/zedboard 5 | # 6 | 7 | source [find interface/ftdi/digilent_jtag_smt2.cfg] 8 | 9 | reset_config srst_only srst_push_pull 10 | 11 | source [find target/zynq_7000.cfg] 12 | -------------------------------------------------------------------------------- /tcl/board/diolan_lpc4350-db1.cfg: -------------------------------------------------------------------------------- 1 | 2 | # 3 | # Diolan LPC-4350-DB1 development board 4 | # 5 | 6 | set CHIPNAME lpc4350 7 | 8 | source [find target/lpc4350.cfg] 9 | -------------------------------------------------------------------------------- /tcl/board/dk-tm4c129.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI Tiva C DK-TM4C129X Connected Development Kit 3 | # 4 | # http://www.ti.com/tool/dk-tm4c129x 5 | # 6 | 7 | source [find interface/ti-icdi.cfg] 8 | 9 | transport select hla_jtag 10 | 11 | set WORKAREASIZE 0x8000 12 | set CHIPNAME tm4c129xnczad 13 | 14 | source [find target/stellaris.cfg] 15 | -------------------------------------------------------------------------------- /tcl/board/dp_busblaster_v3.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Dangerous Prototypes - Bus Blaster 3 | # 4 | # http://dangerousprototypes.com/docs/Bus_Blaster 5 | # 6 | # To reprogram the on-board CPLD do: 7 | # openocd -f board/dp_busblaster_v3.cfg -c "adapter_khz 1000; init; svf ; shutdown" 8 | # 9 | 10 | source [find interface/ftdi/dp_busblaster.cfg] 11 | ftdi_channel 1 12 | 13 | jtag newtap xc2c32a tap -expected-id 0x06e1c093 -irlen 8 14 | -------------------------------------------------------------------------------- /tcl/board/efikamx.cfg: -------------------------------------------------------------------------------- 1 | # Genesi USA EfikaMX 2 | # http://www.genesi-usa.com/products/efika 3 | 4 | # Fall back to 6MHz if RTCK is not supported 5 | jtag_rclk 6000 6 | $_TARGETNAME configure -event "reset-start" { jtag_rclk 6000 } 7 | 8 | source [find target/imx51.cfg] 9 | 10 | reset_config trst_only 11 | -------------------------------------------------------------------------------- /tcl/board/efm32.cfg: -------------------------------------------------------------------------------- 1 | # Configuration for EFM32 boards with Segger J-Link on board 2 | # 3 | # Tested with TINY GECKO and Zero Gecko demo board 4 | # 5 | 6 | source [find interface/jlink.cfg] 7 | transport select swd 8 | adapter_khz 1000 9 | 10 | set CHIPNAME efm32 11 | source [find target/efm32.cfg] 12 | 13 | # EFM32 SWD doesn't work with RST asserted 14 | # So don't use srst_nogate! 15 | # Attach to running target with "mon halt" 16 | reset_config srst_only 17 | 18 | -------------------------------------------------------------------------------- /tcl/board/ek-lm3s1968.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI/Luminary Stellaris LM3S1968 Evaluation Kits 3 | # 4 | # http://www.ti.com/tool/ek-lm3s1968 5 | # 6 | 7 | # NOTE: to use J-Link instead of the on-board interface, 8 | # you may also need to reduce adapter_khz to be about 1200. 9 | # source [find interface/jlink.cfg] 10 | 11 | # include the FT2232 interface config for on-board JTAG interface 12 | # NOTE: using the on-board FT2232 JTAG/SWD/SWO interface is optional! 13 | # so is using in JTAG mode, as done here. 14 | source [find interface/ftdi/luminary.cfg] 15 | 16 | # include the target config 17 | set WORKAREASIZE 0x2000 18 | set CHIPNAME lm3s1968 19 | source [find target/stellaris.cfg] 20 | -------------------------------------------------------------------------------- /tcl/board/ek-lm3s3748.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI/Luminary Stellaris lm3s3748 Evaluation Kits 3 | # 4 | # http://www.ti.com/tool/ek-lm3s3748 5 | # 6 | 7 | # NOTE: using the on-board FT2232 JTAG/SWD/SWO interface is optional! 8 | # so is using it in JTAG mode, as done here. 9 | source [find interface/ftdi/luminary.cfg] 10 | 11 | # 20k working area 12 | set WORKAREASIZE 0x4000 13 | set CHIPNAME lm3s3748 14 | source [find target/stellaris.cfg] 15 | -------------------------------------------------------------------------------- /tcl/board/ek-lm3s6965.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI/Luminary Stellaris LM3S6965 Evaluation Kits 3 | # 4 | # http://www.ti.com/tool/ek-lm3s6965 5 | # 6 | 7 | # NOTE: using the on-board FT2232 JTAG/SWD/SWO interface is optional! 8 | # so is using it in JTAG mode, as done here. 9 | source [find interface/ftdi/luminary.cfg] 10 | 11 | # 20k working area 12 | set WORKAREASIZE 0x5000 13 | set CHIPNAME lm3s6965 14 | # include the target config 15 | source [find target/stellaris.cfg] 16 | -------------------------------------------------------------------------------- /tcl/board/ek-lm3s811-revb.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI/Luminary Stellaris LM3S811 Evaluation Kits (rev B and earlier) 3 | # 4 | # http://www.ti.com/tool/ek-lm3s811 5 | # 6 | 7 | # NOTE: newer 811-EK boards (rev C and above) shouldn't use this. 8 | # use board/ek-lm3s811.cfg 9 | source [find interface/ftdi/luminary-lm3s811.cfg] 10 | 11 | # include the target config 12 | set WORKAREASIZE 0x2000 13 | set CHIPNAME lm3s811 14 | source [find target/stellaris.cfg] 15 | -------------------------------------------------------------------------------- /tcl/board/ek-lm3s811.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI/Luminary Stellaris LM3S811 Evaluation Kits 3 | # 4 | # http://www.ti.com/tool/ek-lm3s811 5 | # 6 | 7 | # NOTE: using the on-board FT2232 JTAG/SWD/SWO interface is optional! 8 | # so is using it in JTAG mode, as done here. 9 | # NOTE: older '811-EK boards (before rev C) shouldn't use this. 10 | source [find interface/ftdi/luminary.cfg] 11 | 12 | # include the target config 13 | set WORKAREASIZE 0x2000 14 | set CHIPNAME lm3s811 15 | source [find target/stellaris.cfg] 16 | -------------------------------------------------------------------------------- /tcl/board/ek-lm3s8962.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI/Luminary Stellaris LM3S8962 Evaluation Kits 3 | # 4 | # http://www.ti.com/tool/ek-lm3s8962 5 | # 6 | 7 | # NOTE: using the on-board FT2232 JTAG/SWD/SWO interface is optional! 8 | # so is using it in JTAG mode, as done here. 9 | source [find interface/ftdi/luminary.cfg] 10 | 11 | # 64k working area 12 | set WORKAREASIZE 0x10000 13 | set CHIPNAME lm3s8962 14 | # include the target config 15 | source [find target/stellaris.cfg] 16 | -------------------------------------------------------------------------------- /tcl/board/ek-lm3s9b9x.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI/Luminary Stellaris LM3S9B9x Evaluation Kits 3 | # 4 | # http://www.ti.com/tool/ek-lm3s9b90 5 | # http://www.ti.com/tool/ek-lm3s9b92 6 | # 7 | 8 | # NOTE: using the bundled FT2232 JTAG/SWD/SWO interface is optional! 9 | # so is using in JTAG mode, as done here. 10 | source [find interface/ftdi/luminary-icdi.cfg] 11 | 12 | set WORKAREASIZE 0x4000 13 | set CHIPNAME lm3s9b9x 14 | source [find target/stellaris.cfg] 15 | -------------------------------------------------------------------------------- /tcl/board/ek-lm3s9d92.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI/Luminary Stellaris LM3S9D92 Evaluation Kits 3 | # 4 | # http://www.ti.com/tool/ek-lm3s9d92 5 | # 6 | 7 | # NOTE: using the bundled FT2232 JTAG/SWD/SWO interface is optional! 8 | # so is using in JTAG mode, as done here. 9 | source [find interface/ftdi/luminary-icdi.cfg] 10 | 11 | # 64k working area 12 | set WORKAREASIZE 0x10000 13 | set CHIPNAME lm3s9d92 14 | source [find target/stellaris.cfg] 15 | -------------------------------------------------------------------------------- /tcl/board/ek-lm4f120xl.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI Stellaris Launchpad ek-lm4f120xl Evaluation Kits 3 | # 4 | # http://www.ti.com/tool/ek-lm4f120xl 5 | # 6 | 7 | # 8 | # NOTE: using the bundled ICDI interface is optional! 9 | # This interface is not ftdi based as previous boards were 10 | # 11 | source [find interface/ti-icdi.cfg] 12 | 13 | transport select hla_jtag 14 | 15 | set WORKAREASIZE 0x8000 16 | set CHIPNAME lm4f120h5qr 17 | source [find target/stellaris.cfg] 18 | -------------------------------------------------------------------------------- /tcl/board/ek-lm4f232.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI Stellaris LM4F232 Evaluation Kits 3 | # 4 | # http://www.ti.com/tool/ek-lm4f232 5 | # 6 | 7 | # 8 | # NOTE: using the bundled ICDI interface is optional! 9 | # This interface is not ftdi based as previous boards were 10 | # 11 | source [find interface/ti-icdi.cfg] 12 | 13 | transport select hla_jtag 14 | 15 | set WORKAREASIZE 0x8000 16 | set CHIPNAME lm4f23x 17 | source [find target/stellaris.cfg] 18 | -------------------------------------------------------------------------------- /tcl/board/ek-tm4c123gxl.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI Tiva C Series ek-tm4c123gxl Launchpad Evaluation Kit 3 | # 4 | # http://www.ti.com/tool/ek-tm4c123gxl 5 | # 6 | 7 | source [find interface/ti-icdi.cfg] 8 | 9 | transport select hla_jtag 10 | 11 | set WORKAREASIZE 0x8000 12 | set CHIPNAME tm4c123gh6pm 13 | source [find target/stellaris.cfg] 14 | -------------------------------------------------------------------------------- /tcl/board/ek-tm4c1294xl.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI Tiva C Series ek-tm4c1294xl Launchpad Evaluation Kit 3 | # 4 | # http://www.ti.com/tool/ek-tm4c1294xl 5 | # 6 | 7 | source [find interface/ti-icdi.cfg] 8 | 9 | transport select hla_jtag 10 | 11 | set WORKAREASIZE 0x8000 12 | set CHIPNAME tm4c1294ncpdt 13 | 14 | source [find target/stellaris.cfg] 15 | -------------------------------------------------------------------------------- /tcl/board/frdm-kl25z.cfg: -------------------------------------------------------------------------------- 1 | # This is an Freescale Freedom eval board with a single MKL25Z128VLK4 chip. 2 | # http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL25Z 3 | # 4 | 5 | source [find interface/cmsis-dap.cfg] 6 | 7 | # increase working area to 16KB 8 | set WORKAREASIZE 0x4000 9 | 10 | # chip name 11 | set CHIPNAME MKL25Z128VLK4 12 | 13 | reset_config srst_only 14 | 15 | source [find target/kl25.cfg] 16 | -------------------------------------------------------------------------------- /tcl/board/frdm-kl46z.cfg: -------------------------------------------------------------------------------- 1 | # This is an Freescale Freedom eval board with a single MKL46Z256VLL4 chip. 2 | # http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL46Z 3 | # 4 | 5 | source [find interface/cmsis-dap.cfg] 6 | 7 | # increase working area to 16KB 8 | set WORKAREASIZE 0x4000 9 | 10 | # chip name 11 | set CHIPNAME MKL46Z256VLL4 12 | 13 | reset_config srst_only 14 | 15 | source [find target/kl46.cfg] 16 | -------------------------------------------------------------------------------- /tcl/board/gumstix-aerocore.cfg: -------------------------------------------------------------------------------- 1 | # JTAG for the STM32F4x chip used on the Gumstix AeroCore is available on 2 | # the first interface of a Quad FTDI chip. nTRST is bit 4. 3 | interface ftdi 4 | ftdi_vid_pid 0x0403 0x6011 5 | 6 | ftdi_layout_init 0x0000 0x001b 7 | ftdi_layout_signal nTRST -data 0x0010 8 | 9 | source [find target/stm32f4x.cfg] 10 | reset_config trst_only 11 | -------------------------------------------------------------------------------- /tcl/board/hitex_lpc1768stick.cfg: -------------------------------------------------------------------------------- 1 | # Hitex LPC1768 Stick 2 | # 3 | # http://www.hitex.com/?id=1602 4 | # 5 | 6 | reset_config trst_and_srst 7 | 8 | source [find interface/ftdi/hitex_lpc1768stick.cfg] 9 | 10 | source [find target/lpc17xx.cfg] 11 | 12 | 13 | # startup @ 500kHz 14 | adapter_khz 500 15 | 16 | -------------------------------------------------------------------------------- /tcl/board/hitex_stm32-performancestick.cfg: -------------------------------------------------------------------------------- 1 | # Hitex stm32 performance stick 2 | 3 | reset_config trst_and_srst 4 | 5 | source [find interface/ftdi/stm32-stick.cfg] 6 | 7 | set CHIPNAME stm32_hitex 8 | source [find target/stm32f1x.cfg] 9 | 10 | # configure str750 connected to jtag chain 11 | # FIXME -- source [find target/str750.cfg] after cleaning that up 12 | jtag newtap str750 cpu -irlen 4 -ircapture 0x1 -irmask 0x0f -expected-id 0x4f1f0041 13 | 14 | # for some reason this board like to startup @ 500kHz 15 | adapter_khz 500 16 | 17 | -------------------------------------------------------------------------------- /tcl/board/iar_lpc1768.cfg: -------------------------------------------------------------------------------- 1 | # Board from IAR KickStart Kit for LPC1768 2 | # See www.iar.com and also 3 | # http://www.olimex.com/dev/lpc-1766stk.html 4 | # 5 | 6 | source [find target/lpc17xx.cfg] 7 | 8 | # The chip has just been reset. 9 | # 10 | $_TARGETNAME configure -event reset-init { 11 | # FIXME update the core clock to run at 100 MHz; 12 | # and update JTAG clocking similarly; then 13 | # make CCLK match, 14 | 15 | flash probe 0 16 | } 17 | 18 | -------------------------------------------------------------------------------- /tcl/board/iar_str912_sk.cfg: -------------------------------------------------------------------------------- 1 | # The IAR str912-sk evaluation kick start board has an str912 2 | 3 | source [find target/str912.cfg] -------------------------------------------------------------------------------- /tcl/board/keil_mcb1700.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Keil MCB1700 eval board 3 | # 4 | # http://www.keil.com/mcb1700/picture.asp 5 | # 6 | 7 | source [find target/lpc17xx.cfg] 8 | 9 | -------------------------------------------------------------------------------- /tcl/board/keil_mcb2140.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Keil MCB2140 eval board 3 | # 4 | # http://www.keil.com/mcb2140/picture.asp 5 | # 6 | 7 | source [find target/lpc2148.cfg] 8 | 9 | -------------------------------------------------------------------------------- /tcl/board/kwikstik.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Freescale KwikStik development board 3 | # 4 | 5 | # 6 | # JLINK interface is onboard 7 | # 8 | source [find interface/jlink.cfg] 9 | 10 | source [find target/k40.cfg] 11 | 12 | reset_config trst_and_srst 13 | -------------------------------------------------------------------------------- /tcl/board/linksys-wrt54gl.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Linksys WRT54GL v1.1 3 | # 4 | 5 | source [find target/bcm5352e.cfg] 6 | 7 | set partition_list { 8 | CFE { Bootloader 0x1c000000 0x00040000 } 9 | firmware { "Kernel+rootfs" 0x1c040000 0x003b0000 } 10 | nvram { "Config space" 0x1c3f0000 0x00010000 } 11 | } 12 | 13 | # External 4MB NOR Flash (Intel TE28F320C3BD90 or similar) 14 | set _FLASHNAME $_CHIPNAME.flash 15 | flash bank $_FLASHNAME cfi 0x1c000000 0x00400000 2 2 $_TARGETNAME 16 | -------------------------------------------------------------------------------- /tcl/board/linksys_nslu2.cfg: -------------------------------------------------------------------------------- 1 | # This is for the LinkSys (CISCO) NSLU2 board 2 | # It is an Intel XSCALE IXP420 CPU. 3 | 4 | source [find target/ixp42x.cfg] 5 | # The _TARGETNAME is set by the above. 6 | 7 | $_TARGETNAME configure -work-area-phys 0x00020000 -work-area-size 0x10000 -work-area-backup 0 8 | 9 | -------------------------------------------------------------------------------- /tcl/board/lisa-l.cfg: -------------------------------------------------------------------------------- 1 | # the Lost Illusions Serendipitous Autopilot 2 | # http://paparazzi.enac.fr/wiki/Lisa 3 | 4 | # Work-area size (RAM size) = 20kB for STM32F103RB device 5 | set WORKAREASIZE 0x5000 6 | 7 | source [find target/stm32f1x.cfg] 8 | -------------------------------------------------------------------------------- /tcl/board/logicpd_imx27.cfg: -------------------------------------------------------------------------------- 1 | # The LogicPD Eval IMX27 eval board has a single IMX27 chip 2 | source [find target/imx27.cfg] 3 | 4 | # The Logic PD board has a NOR flash on CS0 5 | set _FLASHNAME $_CHIPNAME.flash 6 | flash bank $_FLASHNAME cfi 0xc0000000 0x00200000 2 2 $_TARGETNAME 7 | 8 | # 9 | # FIX ME, Add support to 10 | # 11 | # (A) hard reset the board. 12 | # (B) Initialize the SDRAM on the board 13 | # 14 | -------------------------------------------------------------------------------- /tcl/board/lpc1850_spifi_generic.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Generic LPC1850 board w/ SPIFI flash. 3 | # This config file is intended as an example of how to 4 | # use the lpcspifi flash driver, but it should be functional 5 | # for most LPC1850 boards utilizing SPIFI flash. 6 | 7 | set CHIPNAME lpc1850 8 | 9 | source [find target/lpc1850.cfg] 10 | 11 | #A large working area greatly reduces flash write times 12 | set _WORKAREASIZE 0x4000 13 | 14 | $_CHIPNAME.m3 configure -work-area-phys 0x10000000 -work-area-size $_WORKAREASIZE 15 | 16 | #Configure the flash bank; 0x14000000 is the base address for 17 | #lpc43xx/lpc18xx family micros. 18 | flash bank SPIFI_FLASH lpcspifi 0x14000000 0 0 0 $_CHIPNAME.m3 19 | -------------------------------------------------------------------------------- /tcl/board/lpc4350_spifi_generic.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Generic LPC4350 board w/ SPIFI flash. 3 | # This config file is intended as an example of how to 4 | # use the lpcspifi flash driver, but it should be functional 5 | # for most LPC4350 boards utilizing SPIFI flash. 6 | 7 | set CHIPNAME lpc4350 8 | 9 | source [find target/lpc4350.cfg] 10 | 11 | #A large working area greatly reduces flash write times 12 | set _WORKAREASIZE 0x2000 13 | 14 | $_CHIPNAME.m4 configure -work-area-phys 0x10000000 -work-area-size $_WORKAREASIZE 15 | 16 | #Configure the flash bank; 0x14000000 is the base address for 17 | #lpc43xx/lpc18xx family micros. 18 | flash bank SPIFI_FLASH lpcspifi 0x14000000 0 0 0 $_CHIPNAME.m4 19 | -------------------------------------------------------------------------------- /tcl/board/mbed-lpc11u24.cfg: -------------------------------------------------------------------------------- 1 | # This is an mbed eval board with a single NXP LPC11U24 chip. 2 | # http://mbed.org/handbook/mbed-NXP-LPC11U24 3 | # 4 | 5 | source [find interface/cmsis-dap.cfg] 6 | 7 | # NXP LPC11U24 Cortex-M0 with 32kB Flash and 8kB SRAM 8 | set WORKAREASIZE 0x2000 9 | 10 | source [find target/lpc11xx.cfg] 11 | -------------------------------------------------------------------------------- /tcl/board/mbed-lpc1768.cfg: -------------------------------------------------------------------------------- 1 | # This is an mbed eval board with a single NXP LPC1768 chip. 2 | # http://mbed.org/handbook/mbed-NXP-LPC1768 3 | # 4 | 5 | source [find interface/cmsis-dap.cfg] 6 | 7 | source [find target/lpc17xx.cfg] 8 | -------------------------------------------------------------------------------- /tcl/board/microchip_explorer16.cfg: -------------------------------------------------------------------------------- 1 | # Microchip Explorer 16 with PIC32MX360F512L PIM module. 2 | # http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en024858 3 | 4 | # TAPID for PIC32MX360F512L 5 | set CPUTAPID 0x30938053 6 | 7 | # use 32k working area 8 | set WORKAREASIZE 32768 9 | 10 | source [find target/pic32mx.cfg] 11 | -------------------------------------------------------------------------------- /tcl/board/nds32_xc5.cfg: -------------------------------------------------------------------------------- 1 | set _CPUTAPID 0x1000063d 2 | set _CHIPNAME nds32 3 | source [find target/nds32v3.cfg] 4 | 5 | jtag init 6 | -------------------------------------------------------------------------------- /tcl/board/netgear-dg834v3.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Netgear DG834v3 Router 3 | # Internal 4Kb RAM (@0x80000000) 4 | # Flash is located at 0x90000000 (CS0) and RAM is located at 0x94000000 (CS1) 5 | # 6 | 7 | set partition_list { 8 | loader { "Bootloader (ADAM2)" 0x90000000 0x00020000 } 9 | firmware { "Kernel+rootfs" 0x90020000 0x003d0000 } 10 | config { "Bootloader config space" 0x903f0000 0x00010000 } 11 | } 12 | 13 | source [find target/ti-ar7.cfg] 14 | 15 | # External 16MB SDRAM - disabled as we use internal sram 16 | #$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 0x00001000 17 | 18 | # External 4MB NOR Flash 19 | set _FLASHNAME $_CHIPNAME.norflash 20 | flash bank $_FLASHNAME cfi 0x90000000 0x00400000 2 2 $_TARGETNAME 21 | -------------------------------------------------------------------------------- /tcl/board/nordic_nrf51822_mkit.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Nordic Semiconductor PCA10024 board (aka nRF51822-mKIT) 3 | # 4 | 5 | source [find interface/cmsis-dap.cfg] 6 | source [find target/nrf51.cfg] 7 | -------------------------------------------------------------------------------- /tcl/board/olimex_LPC2378STK.cfg: -------------------------------------------------------------------------------- 1 | ##################################################### 2 | # Olimex LPC2378STK eval board 3 | # 4 | # http://olimex.com/dev/lpc-2378stk.html 5 | # 6 | # Author: Sten, debian@sansys-electronic.com 7 | ##################################################### 8 | # 9 | 10 | source [find target/lpc2378.cfg] 11 | 12 | -------------------------------------------------------------------------------- /tcl/board/olimex_lpc_h2148.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex LPC-H2148 eval board 3 | # 4 | # http://www.olimex.com/dev/lpc-h2148.html 5 | # 6 | 7 | source [find target/lpc2148.cfg] 8 | 9 | -------------------------------------------------------------------------------- /tcl/board/olimex_sam7_ex256.cfg: -------------------------------------------------------------------------------- 1 | # Olimex SAM7-EX256 has a single Atmel at91sam7ex256 on it. 2 | 3 | source [find target/sam7x256.cfg] 4 | 5 | -------------------------------------------------------------------------------- /tcl/board/olimex_stm32_h103.cfg: -------------------------------------------------------------------------------- 1 | # Olimex STM32-H103 eval board 2 | # http://olimex.com/dev/stm32-h103.html 3 | 4 | # Work-area size (RAM size) = 20kB for STM32F103RB device 5 | set WORKAREASIZE 0x5000 6 | 7 | source [find target/stm32f1x.cfg] 8 | -------------------------------------------------------------------------------- /tcl/board/olimex_stm32_h107.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex STM32-H107 3 | # 4 | # http://olimex.com/dev/stm32-h107.html 5 | # 6 | 7 | # Work-area size (RAM size) = 64kB for STM32F107VC device 8 | set WORKAREASIZE 0x10000 9 | 10 | source [find target/stm32f1x.cfg] 11 | -------------------------------------------------------------------------------- /tcl/board/olimex_stm32_p107.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex STM32-P107 3 | # 4 | # http://olimex.com/dev/stm32-p107.html 5 | # 6 | 7 | # Work-area size (RAM size) = 64kB for STM32F107VC device 8 | set WORKAREASIZE 0x10000 9 | 10 | source [find target/stm32f1x.cfg] 11 | -------------------------------------------------------------------------------- /tcl/board/omap2420_h4.cfg: -------------------------------------------------------------------------------- 1 | # OMAP2420 SDP board ("H4") 2 | 3 | source [find target/omap2420.cfg] 4 | 5 | # NOTE: this assumes you're *NOT* using a TI-14 connector. 6 | reset_config trst_and_srst separate 7 | 8 | # Board configs can vary a *LOT* ... parts, jumpers, etc. 9 | # This GP board boots from cs0 using NOR (2x32M), and also 10 | # has 64M NAND on cs6. 11 | flash bank h4.u10 cfi 0x04000000 0x02000000 2 2 $_TARGETNAME 12 | flash bank h4.u11 cfi 0x06000000 0x02000000 2 2 $_TARGETNAME 13 | -------------------------------------------------------------------------------- /tcl/board/open-bldc.cfg: -------------------------------------------------------------------------------- 1 | # Open Source Brush Less DC Motor Controller 2 | # http://open-bldc.org 3 | 4 | # Work-area size (RAM size) = 20kB for STM32F103RB device 5 | set WORKAREASIZE 0x5000 6 | 7 | source [find target/stm32.cfg] 8 | -------------------------------------------------------------------------------- /tcl/board/phone_se_j100i.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Sony Ericsson J100I Phone 3 | # 4 | # more informations can be found on 5 | # http://bb.osmocom.org/trac/wiki/SonyEricssonJ100i 6 | # 7 | source [find target/ti_calypso.cfg] 8 | 9 | # external flash 10 | 11 | set _FLASHNAME $_CHIPNAME.flash 12 | flash bank $_FLASHNAME cfi 0x00000000 0x400000 2 2 $_TARGETNAME 13 | -------------------------------------------------------------------------------- /tcl/board/pic-p32mx.cfg: -------------------------------------------------------------------------------- 1 | # The Olimex PIC-P32MX has a PIC32MX 2 | 3 | set CPUTAPID 0x40916053 4 | source [find target/pic32mx.cfg] 5 | -------------------------------------------------------------------------------- /tcl/board/quark_x10xx_board.cfg: -------------------------------------------------------------------------------- 1 | # There are many Quark boards that can host the quark_x10xx SoC 2 | # Galileo is an example board 3 | 4 | source [find target/quark_x10xx.cfg] 5 | 6 | #default frequency but this can be adjusted at runtime 7 | adapter_khz 4000 8 | 9 | reset_config trst_only 10 | -------------------------------------------------------------------------------- /tcl/board/redbee.cfg: -------------------------------------------------------------------------------- 1 | source [find target/mc13224v.cfg] 2 | -------------------------------------------------------------------------------- /tcl/board/smdk6410.cfg: -------------------------------------------------------------------------------- 1 | # Target configuration for the Samsung s3c6410 system on chip 2 | # Tested on a SMDK6410 3 | # Processor : ARM1176 4 | # Info: JTAG device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0) 5 | 6 | source [find target/samsung_s3c6410.cfg] 7 | 8 | set _FLASHNAME $_CHIPNAME.flash 9 | flash bank $_FLASHNAME cfi 0x00000000 0x00100000 2 2 $_TARGETNAME jedec_probe 10 | -------------------------------------------------------------------------------- /tcl/board/spansion_sk-fm4-176l-s6e2cc.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Spansion SK-FM4-176L-S6E2CC 3 | # 4 | 5 | # 6 | # FM3 MB9AF312K 7 | # 8 | source [find interface/cmsis-dap.cfg] 9 | 10 | # There's also an unpopulated 10-pin 0.05" pinout. 11 | 12 | # 13 | # FM4 S6E2CCAJ0A 14 | # 15 | set CHIPNAME s6e2cc 16 | source [find target/fm4.cfg] 17 | 18 | reset_config srst_only 19 | -------------------------------------------------------------------------------- /tcl/board/st_nucleo_f0.cfg: -------------------------------------------------------------------------------- 1 | # This is for all ST NUCLEO with any STM32F0. Known boards at the moment: 2 | # STM32F030R8 3 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF259997 4 | # NUCLEO-F072RB 5 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF259997 6 | # STM32F091RC 7 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260944 8 | 9 | source [find interface/stlink-v2-1.cfg] 10 | 11 | transport select hla_swd 12 | 13 | source [find target/stm32f0x.cfg] 14 | 15 | reset_config srst_only 16 | -------------------------------------------------------------------------------- /tcl/board/st_nucleo_f103rb.cfg: -------------------------------------------------------------------------------- 1 | # This is an ST NUCLEO F103RB board with a single STM32F103RBT6 chip. 2 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF259875 3 | 4 | source [find interface/stlink-v2-1.cfg] 5 | 6 | transport select hla_swd 7 | 8 | source [find target/stm32f1x.cfg] 9 | 10 | reset_config srst_only 11 | -------------------------------------------------------------------------------- /tcl/board/st_nucleo_f3.cfg: -------------------------------------------------------------------------------- 1 | # This is an ST NUCLEO F334R8 board with a single STM32F334R8T6 chip. 2 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260004 3 | 4 | source [find interface/stlink-v2-1.cfg] 5 | 6 | transport select hla_swd 7 | 8 | source [find target/stm32f3x.cfg] 9 | 10 | reset_config srst_only 11 | -------------------------------------------------------------------------------- /tcl/board/st_nucleo_f4.cfg: -------------------------------------------------------------------------------- 1 | # This is for all ST NUCLEO with any STM32F4. Known boards at the moment: 2 | # STM32F401RET6 3 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260000 4 | # STM32F411RET6 5 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260320 6 | 7 | source [find interface/stlink-v2-1.cfg] 8 | 9 | transport select hla_swd 10 | 11 | source [find target/stm32f4x.cfg] 12 | 13 | reset_config srst_only 14 | -------------------------------------------------------------------------------- /tcl/board/st_nucleo_l1.cfg: -------------------------------------------------------------------------------- 1 | # This is an ST NUCLEO L152RE board with a single STM32L152RET6 chip. 2 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260002 3 | 4 | source [find interface/stlink-v2-1.cfg] 5 | 6 | transport select hla_swd 7 | 8 | source [find target/stm32l1.cfg] 9 | 10 | reset_config srst_only 11 | -------------------------------------------------------------------------------- /tcl/board/steval_pcc010.cfg: -------------------------------------------------------------------------------- 1 | # Use for the STM207VG plug-in board (1 MiB Flash and 112+16 KiB Ram 2 | # comming with the STEVAL-PCC010 board 3 | # http://www.st.com/internet/evalboard/product/251530.jsp 4 | # or any other board with only a STM32F2x in the JTAG chain 5 | 6 | # increase working area to 32KB for faster flash programming 7 | set WORKAREASIZE 0x8000 8 | 9 | source [find target/stm32f2x.cfg] 10 | -------------------------------------------------------------------------------- /tcl/board/stm320518_eval.cfg: -------------------------------------------------------------------------------- 1 | # STM320518-EVAL: This is an STM32F0 eval board with a single STM32F051R8T6 2 | # (64KB) chip. 3 | # http://www.st.com/internet/evalboard/product/252994.jsp 4 | # 5 | 6 | # increase working area to 8KB 7 | set WORKAREASIZE 0x2000 8 | 9 | # chip name 10 | set CHIPNAME STM32F051R8T6 11 | 12 | source [find target/stm32f0x.cfg] 13 | -------------------------------------------------------------------------------- /tcl/board/stm320518_eval_stlink.cfg: -------------------------------------------------------------------------------- 1 | # STM320518-EVAL: This is an STM32F0 eval board with a single STM32F051R8T6 2 | # (64KB) chip. 3 | # http://www.st.com/internet/evalboard/product/252994.jsp 4 | # 5 | # This is for using the onboard STLINK/V2 6 | 7 | source [find interface/stlink-v2.cfg] 8 | 9 | transport select hla_swd 10 | 11 | # increase working area to 8KB 12 | set WORKAREASIZE 0x2000 13 | 14 | # chip name 15 | set CHIPNAME STM32F051R8T6 16 | 17 | source [find target/stm32f0x.cfg] 18 | 19 | reset_config srst_only 20 | -------------------------------------------------------------------------------- /tcl/board/stm32100b_eval.cfg: -------------------------------------------------------------------------------- 1 | # This is an STM32 eval board with a single STM32F100VBT6 chip. 2 | # http://www.st.com/internet/evalboard/product/247099.jsp 3 | 4 | # The chip has only 8KB sram 5 | set WORKAREASIZE 0x2000 6 | 7 | source [find target/stm32f1x.cfg] 8 | -------------------------------------------------------------------------------- /tcl/board/stm3210b_eval.cfg: -------------------------------------------------------------------------------- 1 | # This is an STM32 eval board with a single STM32F10x (128KB) chip. 2 | # http://www.st.com/internet/evalboard/product/176090.jsp 3 | 4 | # increase working area to 32KB for faster flash programming 5 | set WORKAREASIZE 0x8000 6 | 7 | source [find target/stm32f1x.cfg] 8 | -------------------------------------------------------------------------------- /tcl/board/stm3210c_eval.cfg: -------------------------------------------------------------------------------- 1 | # This is an STM32 eval board with a single STM32F107VCT chip. 2 | # http://www.st.com/internet/evalboard/product/217965.jsp 3 | 4 | # increase working area to 32KB for faster flash programming 5 | set WORKAREASIZE 0x8000 6 | 7 | source [find target/stm32f1x.cfg] 8 | -------------------------------------------------------------------------------- /tcl/board/stm3220g_eval.cfg: -------------------------------------------------------------------------------- 1 | # STM3220G-EVAL: This is an STM32F2 eval board with a single STM32F207IGH6 2 | # (128KB) chip. 3 | # http://www.st.com/internet/evalboard/product/250374.jsp 4 | 5 | # increase working area to 128KB 6 | set WORKAREASIZE 0x20000 7 | 8 | # chip name 9 | set CHIPNAME STM32F207IGH6 10 | 11 | source [find target/stm32f2x.cfg] 12 | -------------------------------------------------------------------------------- /tcl/board/stm3220g_eval_stlink.cfg: -------------------------------------------------------------------------------- 1 | # STM3220G-EVAL: This is an STM32F2 eval board with a single STM32F207IGH6 2 | # (128KB) chip. 3 | # http://www.st.com/internet/evalboard/product/250374.jsp 4 | # 5 | # This is for using the onboard STLINK/V2 6 | 7 | source [find interface/stlink-v2.cfg] 8 | 9 | transport select hla_swd 10 | 11 | # increase working area to 128KB 12 | set WORKAREASIZE 0x20000 13 | 14 | # chip name 15 | set CHIPNAME STM32F207IGH6 16 | 17 | source [find target/stm32f2x.cfg] 18 | 19 | reset_config srst_only 20 | -------------------------------------------------------------------------------- /tcl/board/stm3241g_eval.cfg: -------------------------------------------------------------------------------- 1 | # STM3241G-EVAL: This is an STM32F4 eval board with a single STM32F417IGH6 2 | # (1024KB) chip. 3 | # http://www.st.com/internet/evalboard/product/252216.jsp 4 | 5 | # increase working area to 128KB 6 | set WORKAREASIZE 0x20000 7 | 8 | # chip name 9 | set CHIPNAME STM32F417IGH6 10 | 11 | source [find target/stm32f4x.cfg] 12 | -------------------------------------------------------------------------------- /tcl/board/stm3241g_eval_stlink.cfg: -------------------------------------------------------------------------------- 1 | # STM3241G-EVAL: This is an STM32F4 eval board with a single STM32F417IGH6 2 | # (1024KB) chip. 3 | # http://www.st.com/internet/evalboard/product/252216.jsp 4 | # 5 | # This is for using the onboard STLINK/V2 6 | 7 | source [find interface/stlink-v2.cfg] 8 | 9 | transport select hla_swd 10 | 11 | # increase working area to 128KB 12 | set WORKAREASIZE 0x20000 13 | 14 | # chip name 15 | set CHIPNAME STM32F417IGH6 16 | 17 | source [find target/stm32f4x.cfg] 18 | 19 | reset_config srst_only 20 | -------------------------------------------------------------------------------- /tcl/board/stm32429i_eval.cfg: -------------------------------------------------------------------------------- 1 | # STM32429I-EVAL: This is an STM32F4 eval board with a single STM32F429NIH6 2 | # (2048KB) chip. 3 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1199/PF259093 4 | 5 | # increase working area to 128KB 6 | set WORKAREASIZE 0x20000 7 | 8 | # chip name 9 | set CHIPNAME STM32F429NIH6 10 | 11 | source [find target/stm32f4x.cfg] 12 | -------------------------------------------------------------------------------- /tcl/board/stm32429i_eval_stlink.cfg: -------------------------------------------------------------------------------- 1 | # STM32429I-EVAL: This is an STM32F4 eval board with a single STM32F429NIH6 2 | # (2048KB) chip. 3 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1199/PF259093 4 | # 5 | # This is for using the onboard STLINK/V2 6 | 7 | source [find interface/stlink-v2.cfg] 8 | 9 | transport select hla_swd 10 | 11 | # increase working area to 128KB 12 | set WORKAREASIZE 0x20000 13 | 14 | # chip name 15 | set CHIPNAME STM32F429NIH6 16 | 17 | source [find target/stm32f4x.cfg] 18 | 19 | reset_config srst_only 20 | -------------------------------------------------------------------------------- /tcl/board/stm32439i_eval.cfg: -------------------------------------------------------------------------------- 1 | # STM32439I-EVAL: This is an STM32F4 eval board with a single STM32F439NIH6 2 | # (2048KB) chip. 3 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1199/PF259094 4 | 5 | # increase working area to 128KB 6 | set WORKAREASIZE 0x20000 7 | 8 | # chip name 9 | set CHIPNAME STM32F439NIH6 10 | 11 | source [find target/stm32f4x.cfg] 12 | -------------------------------------------------------------------------------- /tcl/board/stm32439i_eval_stlink.cfg: -------------------------------------------------------------------------------- 1 | # STM32439I-EVAL: This is an STM32F4 eval board with a single STM32F439NIH6 2 | # (2048KB) chip. 3 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1199/PF259094 4 | # 5 | # This is for using the onboard STLINK/V2 6 | 7 | source [find interface/stlink-v2.cfg] 8 | 9 | transport select hla_swd 10 | 11 | # increase working area to 128KB 12 | set WORKAREASIZE 0x20000 13 | 14 | # chip name 15 | set CHIPNAME STM32F439NIH6 16 | 17 | source [find target/stm32f4x.cfg] 18 | 19 | reset_config srst_only 20 | -------------------------------------------------------------------------------- /tcl/board/stm32f0discovery.cfg: -------------------------------------------------------------------------------- 1 | # This is an STM32F0 discovery board with a single STM32F051R8T6 chip. 2 | # http://www.st.com/internet/evalboard/product/253215.jsp 3 | 4 | source [find interface/stlink-v2.cfg] 5 | 6 | transport select hla_swd 7 | 8 | set WORKAREASIZE 0x2000 9 | source [find target/stm32f0x.cfg] 10 | 11 | reset_config srst_only 12 | -------------------------------------------------------------------------------- /tcl/board/stm32f334discovery.cfg: -------------------------------------------------------------------------------- 1 | # This is an STM32F334 discovery board with a single STM32F334C8T6 chip. 2 | # As it is one of the few boards with stlink V.2-1, we source the corresponding 3 | # nucleo file. 4 | # http://www.st.com/web/en/catalog/tools/FM116/SC959/SS1532/LN1848/PF260318 5 | 6 | source [find board/st_nucleo_f3.cfg] 7 | -------------------------------------------------------------------------------- /tcl/board/stm32f3discovery.cfg: -------------------------------------------------------------------------------- 1 | # This is an STM32F3 discovery board with a single STM32F303VCT6 chip. 2 | # http://www.st.com/internet/evalboard/product/254044.jsp 3 | 4 | source [find interface/stlink-v2.cfg] 5 | 6 | transport select hla_swd 7 | 8 | source [find target/stm32f3x.cfg] 9 | 10 | reset_config srst_only 11 | -------------------------------------------------------------------------------- /tcl/board/stm32f429discovery.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # This is an STM32F429 discovery board with a single STM32F429ZI chip. 3 | # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF259090 4 | # 5 | 6 | source [find interface/stlink-v2.cfg] 7 | 8 | transport select hla_swd 9 | 10 | source [find target/stm32f4x.cfg] 11 | 12 | reset_config srst_only 13 | -------------------------------------------------------------------------------- /tcl/board/stm32f4discovery.cfg: -------------------------------------------------------------------------------- 1 | # This is an STM32F4 discovery board with a single STM32F407VGT6 chip. 2 | # http://www.st.com/internet/evalboard/product/252419.jsp 3 | 4 | source [find interface/stlink-v2.cfg] 5 | 6 | transport select hla_swd 7 | 8 | source [find target/stm32f4x.cfg] 9 | 10 | reset_config srst_only 11 | -------------------------------------------------------------------------------- /tcl/board/stm32l0discovery.cfg: -------------------------------------------------------------------------------- 1 | # This is an STM32L053 discovery board with a single STM32L053 chip. 2 | # http://www.st.com/web/en/catalog/tools/PF260319 3 | 4 | source [find interface/stlink-v2-1.cfg] 5 | 6 | transport select hla_swd 7 | 8 | set WORKAREASIZE 0x2000 9 | source [find target/stm32l0.cfg] 10 | 11 | reset_config srst_only 12 | -------------------------------------------------------------------------------- /tcl/board/stm32ldiscovery.cfg: -------------------------------------------------------------------------------- 1 | # This is an STM32L discovery board with a single STM32L152RBT6 chip. 2 | # http://www.st.com/internet/evalboard/product/250990.jsp 3 | 4 | source [find interface/stlink-v2.cfg] 5 | 6 | transport select hla_swd 7 | 8 | set WORKAREASIZE 0x4000 9 | source [find target/stm32l1.cfg] 10 | 11 | reset_config srst_only 12 | -------------------------------------------------------------------------------- /tcl/board/stm32vldiscovery.cfg: -------------------------------------------------------------------------------- 1 | # This is an STM32VL discovery board with a single STM32F100RB chip. 2 | # http://www.st.com/internet/evalboard/product/250863.jsp 3 | 4 | source [find interface/stlink-v1.cfg] 5 | 6 | transport select hla_swd 7 | 8 | set WORKAREASIZE 0x2000 9 | source [find target/stm32f1x.cfg] 10 | 11 | reset_config srst_only 12 | -------------------------------------------------------------------------------- /tcl/board/ti-cc3200-launchxl.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI SimpleLink Wi-Fi CC3200 LaunchPad 3 | # 4 | # http://www.ti.com/tool/cc3200-launchxl 5 | # 6 | 7 | source [find interface/ftdi/ti-icdi.cfg] 8 | 9 | if { [info exists TRANSPORT] } { 10 | transport select $TRANSPORT 11 | } else { 12 | transport select jtag 13 | } 14 | 15 | set WORKAREASIZE 0x40000 16 | source [find target/cc32xx.cfg] 17 | 18 | reset_config srst_only 19 | -------------------------------------------------------------------------------- /tcl/board/ti_am335xevm.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI AM335x Evaluation Module 3 | # 4 | # For more information please see http://www.ti.com/tool/tmdxevm3358 5 | # 6 | jtag_rclk 6000 7 | 8 | source [find target/am335x.cfg] 9 | 10 | reset_config trst_and_srst 11 | -------------------------------------------------------------------------------- /tcl/board/ti_am437x_idk.cfg: -------------------------------------------------------------------------------- 1 | # Texas Instruments AM437x Industrial Development Kit 2 | 3 | # The JTAG interface is built directly on the board. 4 | source [find interface/ftdi/xds100v2.cfg] 5 | 6 | transport select jtag 7 | adapter_khz 16000 8 | 9 | source [find target/am437x.cfg] 10 | $_TARGETNAME configure -event reset-init { init_platform 0x61a11b32 } 11 | 12 | reset_config trst_and_srst 13 | 14 | init 15 | ftdi_set_signal PWR_RST 1 16 | jtag arp_init 17 | -------------------------------------------------------------------------------- /tcl/board/ti_am43xx_evm.cfg: -------------------------------------------------------------------------------- 1 | # Works on both AM437x GP EVM and AM438x ePOS EVM 2 | transport select jtag 3 | adapter_khz 16000 4 | 5 | source [find target/am437x.cfg] 6 | 7 | reset_config trst_and_srst 8 | -------------------------------------------------------------------------------- /tcl/board/ti_beagleboard.cfg: -------------------------------------------------------------------------------- 1 | # OMAP3 BeagleBoard 2 | # http://beagleboard.org 3 | 4 | # Fall back to 6MHz if RTCK is not supported 5 | jtag_rclk 6000 6 | 7 | source [find target/omap3530.cfg] 8 | 9 | # TI-14 JTAG connector 10 | reset_config trst_only 11 | 12 | # Later run: omap3_dbginit 13 | -------------------------------------------------------------------------------- /tcl/board/ti_beagleboard_xm.cfg: -------------------------------------------------------------------------------- 1 | # BeagleBoard xM (DM37x) 2 | # http://beagleboard.org 3 | 4 | set CHIPTYPE "dm37x" 5 | source [find target/amdm37x.cfg] 6 | 7 | # The TI-14 JTAG connector does not have srst. CPU reset is handled in 8 | # hardware. 9 | reset_config trst_only 10 | 11 | # "amdm37x_dbginit dm37x.cpu" needs to be run after init. 12 | 13 | -------------------------------------------------------------------------------- /tcl/board/ti_beaglebone.cfg: -------------------------------------------------------------------------------- 1 | # AM335x Beaglebone 2 | # http://beagleboard.org/bone 3 | 4 | # The JTAG interface is built directly on the board. 5 | source [find interface/ftdi/xds100v2.cfg] 6 | 7 | adapter_khz 16000 8 | 9 | source [find target/am335x.cfg] 10 | 11 | reset_config trst_and_srst 12 | 13 | 14 | -------------------------------------------------------------------------------- /tcl/board/ti_blaze.cfg: -------------------------------------------------------------------------------- 1 | jtag_rclk 6000 2 | 3 | source [find target/omap4430.cfg] 4 | 5 | reset_config trst_and_srst 6 | 7 | -------------------------------------------------------------------------------- /tcl/board/ti_pandaboard.cfg: -------------------------------------------------------------------------------- 1 | jtag_rclk 6000 2 | 3 | source [find target/omap4430.cfg] 4 | 5 | reset_config trst_only 6 | 7 | -------------------------------------------------------------------------------- /tcl/board/ti_pandaboard_es.cfg: -------------------------------------------------------------------------------- 1 | jtag_rclk 6000 2 | 3 | source [find target/omap4460.cfg] 4 | 5 | reset_config trst_only 6 | 7 | -------------------------------------------------------------------------------- /tcl/board/ti_tmdx570ls20susb.cfg: -------------------------------------------------------------------------------- 1 | # TMS570 Microcontroller USB Kit 2 | # http://www.ti.com/tool/TMDX570LS20SUSB 3 | 4 | # Board uses a FT2232H to emulate an XDS100v2 JTAG debugger 5 | # TODO: board also supports an SCI UART on the 2232's B Bus 6 | source [find interface/ftdi/xds100v2.cfg] 7 | 8 | # Processor is TMS570LS20216 9 | source [find target/ti_tms570ls20xxx.cfg] 10 | 11 | reset_config trst_only 12 | 13 | # xds100v2 config says add this to the end 14 | init 15 | ftdi_set_signal PWR_RST 1 16 | jtag arp_init 17 | -------------------------------------------------------------------------------- /tcl/board/ti_tmdx570ls31usb.cfg: -------------------------------------------------------------------------------- 1 | adapter_khz 1500 2 | 3 | source [find interface/ftdi/xds100v2.cfg] 4 | source [find target/ti_tms570.cfg] 5 | 6 | reset_config trst_only 7 | -------------------------------------------------------------------------------- /tcl/board/twr-k60f120m.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Freescale TWRK60F120M development board 3 | # 4 | 5 | source [find target/k60.cfg] 6 | 7 | $_TARGETNAME configure -event reset-init { 8 | puts "-event reset-init occured" 9 | } 10 | 11 | # 12 | # Definitions for the additional 'program flash' banks 13 | # (instructions and/or data) 14 | # 15 | flash bank pflash.1 kinetis 0x00040000 0x40000 0 4 $_TARGETNAME 16 | flash bank pflash.2 kinetis 0x00080000 0x40000 0 4 $_TARGETNAME 17 | flash bank pflash.3 kinetis 0x000c0000 0x40000 0 4 $_TARGETNAME 18 | -------------------------------------------------------------------------------- /tcl/board/twr-k60n512.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Freescale TWRK60N512 development board 3 | # 4 | 5 | source [find target/k60.cfg] 6 | 7 | $_TARGETNAME configure -event reset-init { 8 | puts "-event reset-init occured" 9 | } 10 | 11 | # 12 | # Bank definition for the 'program flash' (instructions and/or data) 13 | # 14 | flash bank pflash.0 kinetis 0x00000000 0x40000 0 4 $_TARGETNAME 15 | flash bank pflash.1 kinetis 0x00040000 0x40000 0 4 $_TARGETNAME 16 | -------------------------------------------------------------------------------- /tcl/board/verdex.cfg: -------------------------------------------------------------------------------- 1 | # Config for Gumstix Verdex XM4 and XL6P (PXA270) 2 | 3 | set CHIPNAME verdex 4 | source [find target/pxa270.cfg] 5 | 6 | # The board supports separate reset lines 7 | # Override this in the interface config for parallel dongles 8 | reset_config trst_and_srst separate 9 | 10 | # XM4 = 400MHz, XL6P = 600MHz...let's run at 0.1*400MHz=40MHz 11 | adapter_khz 40000 12 | 13 | # flash bank 14 | # XL6P has 32 MB flash 15 | flash bank $_CHIPNAME.flash0 cfi 0x00000000 0x02000000 2 2 $_TARGETNAME 16 | # XM4 has 16 MB flash 17 | #flash bank $_CHIPNAME.flash0 cfi 0x00000000 0x01000000 2 2 $_TARGETNAME 18 | -------------------------------------------------------------------------------- /tcl/board/voipac.cfg: -------------------------------------------------------------------------------- 1 | # Config for Voipac PXA270/PXA270M module. 2 | 3 | set CHIPNAME voipac 4 | source [find target/pxa270.cfg] 5 | 6 | # The board supports separate reset lines 7 | # Override this in the interface config for parallel dongles 8 | reset_config trst_and_srst separate 9 | 10 | # flash bank 11 | flash bank $_CHIPNAME.flash0 cfi 0x00000000 0x2000000 2 2 $_TARGETNAME 12 | flash bank $_CHIPNAME.flash1 cfi 0x02000000 0x2000000 2 2 $_TARGETNAME 13 | -------------------------------------------------------------------------------- /tcl/board/xmc-2go.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Infineon XMC 2Go 3 | # 4 | 5 | # 6 | # Segger J-Link Lite XMC4200 on-board 7 | # 8 | source [find interface/jlink.cfg] 9 | transport select swd 10 | 11 | set CHIPNAME xmc1100 12 | source [find target/xmc1xxx.cfg] 13 | 14 | reset_config srst_only srst_nogate 15 | -------------------------------------------------------------------------------- /tcl/board/xmc1100-boot-kit.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Infineon XMC1100 Boot Kit 3 | # 4 | 5 | # 6 | # Segger J-Link Lite XMC4200 on-board 7 | # 8 | source [find interface/jlink.cfg] 9 | transport select swd 10 | 11 | set CHIPNAME xmc1100 12 | source [find target/xmc1xxx.cfg] 13 | 14 | reset_config srst_only srst_nogate 15 | -------------------------------------------------------------------------------- /tcl/board/xmc4200-application-kit-actuator.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Infineon XMC4200 Application Kit - Actuator 3 | # 4 | 5 | # 6 | # Segger J-Link Lite XMC4200 on-board 7 | # 8 | source [find interface/jlink.cfg] 9 | transport select swd 10 | 11 | set CHIPNAME xmc4200 12 | source [find target/xmc4xxx.cfg] 13 | -------------------------------------------------------------------------------- /tcl/board/xmc4500-application-kit-general.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Infineon XMC4500 Application Kit - General Purpose 3 | # 4 | 5 | set CHIPNAME xmc4500 6 | source [find target/xmc4xxx.cfg] 7 | 8 | reset_config srst_only 9 | -------------------------------------------------------------------------------- /tcl/board/xmc4500-application-kit-sdram.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Infineon XMC4500 Application Kit - SDRAM 3 | # 4 | 5 | # 6 | # Segger J-Link Lite XMC4200 on-board 7 | # 8 | 9 | set CHIPNAME xmc4500 10 | source [find target/xmc4xxx.cfg] 11 | 12 | reset_config srst_only 13 | -------------------------------------------------------------------------------- /tcl/board/xmc4500-relax.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Infineon XMC4500 Relax Kit / Relax Lite Kit 3 | # 4 | 5 | # 6 | # Segger J-Link Lite XMC4500 on-board 7 | # 8 | source [find interface/jlink.cfg] 9 | transport select swd 10 | 11 | # There's also an unpopulated 10-pin 0.05" pinout. 12 | 13 | set CHIPNAME xmc4500 14 | source [find target/xmc4xxx.cfg] 15 | -------------------------------------------------------------------------------- /tcl/chip/atmel/at91/hardware.cfg: -------------------------------------------------------------------------------- 1 | # External Memory Map 2 | set AT91_CHIPSELECT_0 0x10000000 3 | set AT91_CHIPSELECT_1 0x20000000 4 | set AT91_CHIPSELECT_2 0x30000000 5 | set AT91_CHIPSELECT_3 0x40000000 6 | set AT91_CHIPSELECT_4 0x50000000 7 | set AT91_CHIPSELECT_5 0x60000000 8 | set AT91_CHIPSELECT_6 0x70000000 9 | set AT91_CHIPSELECT_7 0x80000000 10 | -------------------------------------------------------------------------------- /tcl/chip/atmel/at91/pmc.tcl: -------------------------------------------------------------------------------- 1 | 2 | if [info exists AT91C_MAINOSC_FREQ] { 3 | # user set this... let it be. 4 | } { 5 | # 18.432mhz is a common thing... 6 | set AT91C_MAINOSC_FREQ 18432000 7 | } 8 | global AT91C_MAINOSC_FREQ 9 | 10 | if [info exists AT91C_SLOWOSC_FREQ] { 11 | # user set this... let it be. 12 | } { 13 | # 32khz is the norm 14 | set AT91C_SLOWOSC_FREQ 32768 15 | } 16 | global AT91C_SLOWOSC_FREQ 17 | 18 | -------------------------------------------------------------------------------- /tcl/chip/st/stm32/stm32.tcl: -------------------------------------------------------------------------------- 1 | source [find bitsbytes.tcl] 2 | source [find cpu/arm/cortex_m3.tcl] 3 | source [find memory.tcl] 4 | source [find mmr_helpers.tcl] 5 | 6 | source [find chip/st/stm32/stm32_regs.tcl] 7 | source [find chip/st/stm32/stm32_rcc.tcl] 8 | -------------------------------------------------------------------------------- /tcl/chip/ti/lm3s/lm3s.tcl: -------------------------------------------------------------------------------- 1 | source [find chip/ti/lm3s/lm3s_regs.tcl] 2 | -------------------------------------------------------------------------------- /tcl/cpld/lattice-lc4032ze.cfg: -------------------------------------------------------------------------------- 1 | # Lattice ispMACH 4000ZE family, device LC4032ZE 2 | # just configure a tap 3 | jtag newtap LC4032ZE tap -irlen 8 -expected-id 0x01806043 4 | -------------------------------------------------------------------------------- /tcl/cpld/xilinx-xcr3256.cfg: -------------------------------------------------------------------------------- 1 | #xilinx coolrunner xcr3256 2 | #simple device - just configure a tap 3 | jtag newtap xcr tap -irlen 5 -ircapture 0x01 -irmask 0x1f -expected-id 0x0494c093 4 | -------------------------------------------------------------------------------- /tcl/cpu/arm/arm7tdmi.tcl: -------------------------------------------------------------------------------- 1 | set CPU_TYPE arm 2 | set CPU_NAME arm7tdmi 3 | set CPU_ARCH armv4t 4 | set CPU_MAX_ADDRESS 0xFFFFFFFF 5 | set CPU_NBITS 32 6 | 7 | -------------------------------------------------------------------------------- /tcl/cpu/arm/arm920.tcl: -------------------------------------------------------------------------------- 1 | set CPU_TYPE arm 2 | set CPU_NAME arm920 3 | set CPU_ARCH armv4t 4 | set CPU_MAX_ADDRESS 0xFFFFFFFF 5 | set CPU_NBITS 32 6 | 7 | -------------------------------------------------------------------------------- /tcl/cpu/arm/arm946.tcl: -------------------------------------------------------------------------------- 1 | set CPU_TYPE arm 2 | set CPU_NAME arm946 3 | set CPU_ARCH armv5te 4 | set CPU_MAX_ADDRESS 0xFFFFFFFF 5 | set CPU_NBITS 32 6 | 7 | -------------------------------------------------------------------------------- /tcl/cpu/arm/arm966.tcl: -------------------------------------------------------------------------------- 1 | set CPU_TYPE arm 2 | set CPU_NAME arm966 3 | set CPU_ARCH armv5te 4 | set CPU_MAX_ADDRESS 0xFFFFFFFF 5 | set CPU_NBITS 32 6 | 7 | -------------------------------------------------------------------------------- /tcl/cpu/arm/cortex_m3.tcl: -------------------------------------------------------------------------------- 1 | set CPU_TYPE arm 2 | set CPU_NAME cortex_m3 3 | set CPU_ARCH armv7 4 | set CPU_MAX_ADDRESS 0xFFFFFFFF 5 | set CPU_NBITS 32 6 | 7 | -------------------------------------------------------------------------------- /tcl/interface/altera-usb-blaster.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Altera USB-Blaster 3 | # 4 | # http://www.altera.com/literature/ug/ug_usb_blstr.pdf 5 | # 6 | 7 | interface usb_blaster 8 | # These are already the defaults. 9 | # usb_blaster_vid_pid 0x09FB 0x6001 10 | # usb_blaster_device_desc "USB-Blaster" 11 | -------------------------------------------------------------------------------- /tcl/interface/altera-usb-blaster2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Altera USB-Blaster II 3 | # 4 | 5 | interface usb_blaster 6 | usb_blaster_vid_pid 0x09fb 0x6010 0x09fb 0x6810 7 | usb_blaster_lowlevel_driver ublast2 8 | usb_blaster_firmware /path/to/quartus/blaster_6810.hex 9 | -------------------------------------------------------------------------------- /tcl/interface/arm-jtag-ew.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex ARM-JTAG-EW 3 | # 4 | # http://www.olimex.com/dev/arm-jtag-ew.html 5 | # 6 | 7 | interface arm-jtag-ew 8 | 9 | -------------------------------------------------------------------------------- /tcl/interface/at91rm9200.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Various Atmel AT91RM9200 boards 3 | # 4 | # TODO: URL? 5 | # 6 | 7 | interface at91rm9200 8 | at91rm9200_device rea_ecr 9 | 10 | -------------------------------------------------------------------------------- /tcl/interface/axm0432.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Axiom axm0432 3 | # 4 | # http://www.axman.com 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Symphony SoundBite" 9 | ft2232_layout "axm0432_jtag" 10 | ft2232_vid_pid 0x0403 0x6010 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/busblaster.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Dangerous Prototypes - Bus Blaster 3 | # 4 | # The Bus Blaster has a configurable buffer between the FTDI FT2232H and the 5 | # JTAG header which allows it to emulate various debugger types. It comes 6 | # configured as a JTAGkey device. 7 | # 8 | # http://dangerousprototypes.com/docs/Bus_Blaster 9 | # 10 | 11 | interface ft2232 12 | ft2232_device_desc "Dual RS232-HS" 13 | ft2232_layout jtagkey 14 | ft2232_vid_pid 0x0403 0x6010 15 | -------------------------------------------------------------------------------- /tcl/interface/buspirate.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Buspirate with OpenOCD support 3 | # 4 | # http://dangerousprototypes.com/bus-pirate-manual/ 5 | # 6 | 7 | interface buspirate 8 | 9 | # you need to specify port on which BP lives 10 | #buspirate_port /dev/ttyUSB0 11 | 12 | # communication speed setting 13 | buspirate_speed normal ;# or fast 14 | 15 | # voltage regulator Enabled = 1 Disabled = 0 16 | #buspirate_vreg 0 17 | 18 | # pin mode normal or open-drain 19 | #buspirate_mode normal 20 | 21 | # pullup state Enabled = 1 Disabled = 0 22 | #buspirate_pullup 0 23 | 24 | # this depends on the cable, you are safe with this option 25 | reset_config srst_only 26 | 27 | -------------------------------------------------------------------------------- /tcl/interface/calao-usb-a9260-c01.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # CALAO Systems USB-A9260-C01 3 | # 4 | # http://www.calao-systems.com/ 5 | # 6 | 7 | interface ft2232 8 | ft2232_layout jtagkey 9 | ft2232_device_desc "USB-A9260" 10 | ft2232_vid_pid 0x0403 0x6010 11 | script interface/calao-usb-a9260.cfg 12 | script target/at91sam9260minimal.cfg 13 | 14 | -------------------------------------------------------------------------------- /tcl/interface/calao-usb-a9260-c02.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # CALAO Systems USB-A9260-C02 3 | # 4 | # http://www.calao-systems.com/ 5 | # 6 | 7 | interface ft2232 8 | ft2232_layout jtagkey 9 | ft2232_device_desc "USB-A9260" 10 | ft2232_vid_pid 0x0403 0x6001 11 | script interface/calao-usb-a9260.cfg 12 | script target/at91sam9260minimal.cfg 13 | 14 | -------------------------------------------------------------------------------- /tcl/interface/calao-usb-a9260.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # CALAO Systems USB-A9260 common -C01 -C02 setup 3 | # 4 | # http://www.calao-systems.com/ 5 | # 6 | # See calao-usb-a9260-c01.cfg and calao-usb-a9260-c02.cfg. 7 | # 8 | 9 | adapter_nsrst_delay 200 10 | jtag_ntrst_delay 200 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/chameleon.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Amontec Chameleon POD 3 | # 4 | # http://www.amontec.com/chameleon.shtml 5 | # 6 | 7 | interface parport 8 | parport_cable chameleon 9 | 10 | -------------------------------------------------------------------------------- /tcl/interface/cmsis-dap.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # ARM CMSIS-DAP compliant adapter 3 | # 4 | # http://www.keil.com/support/man/docs/dapdebug/ 5 | # 6 | 7 | interface cmsis-dap 8 | 9 | # Optionally specify the serial number of CMSIS-DAP usb device. 10 | #cmsis_dap_serial 02200201E6661E601B98E3B9 11 | -------------------------------------------------------------------------------- /tcl/interface/cortino.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hitex Cortino 3 | # 4 | # http://www.hitex.com/index.php?id=cortino 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Cortino" 9 | ft2232_layout cortino 10 | ft2232_vid_pid 0x0640 0x0032 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/digilent-hs1.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Digilent HS1 3 | # 4 | # The Digilent HS1 is a high-speed FT2232H-based adapter, compliant with the 5 | # Xilinx JTAG 14-pin pinout. 6 | # It does not support ARM reset signals (SRST and TRST) but can still be used for 7 | # hardware debugging, with some limitations. 8 | # 9 | # http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,395,922&Prod=JTAG-HS1 10 | # 11 | 12 | interface ft2232 13 | ft2232_device_desc "Digilent Adept USB Device" 14 | ft2232_layout digilent-hs1 15 | ft2232_vid_pid 0x0403 0x6010 16 | -------------------------------------------------------------------------------- /tcl/interface/dlp-usb1232h.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # DLP Design DLP-USB1232H USB-to-UART/FIFO interface module 3 | # 4 | # http://www.dlpdesign.com/usb/usb1232h.shtml 5 | # 6 | # Schematics for OpenOCD usage: 7 | # http://randomprojects.org/wiki/DLP-USB1232H_and_OpenOCD_based_JTAG_adapter 8 | # 9 | 10 | interface ft2232 11 | ft2232_device_desc "Dual RS232-HS" 12 | ft2232_layout usbjtag 13 | ft2232_vid_pid 0x0403 0x6010 14 | 15 | -------------------------------------------------------------------------------- /tcl/interface/dummy.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Dummy interface (for testing purposes) 3 | # 4 | 5 | interface dummy 6 | 7 | -------------------------------------------------------------------------------- /tcl/interface/estick.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # eStick 3 | # 4 | # http://code.google.com/p/estick-jtag/ 5 | # 6 | 7 | interface opendous 8 | -------------------------------------------------------------------------------- /tcl/interface/flashlink.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # ST FlashLINK JTAG parallel cable 3 | # 4 | # http://www.st.com/internet/evalboard/product/94023.jsp 5 | # http://www.st.com/stonline/products/literature/um/7889.pdf 6 | # 7 | 8 | if { [info exists PARPORTADDR] } { 9 | set _PARPORTADDR $PARPORTADDR 10 | } else { 11 | set _PARPORTADDR 0 12 | } 13 | 14 | interface parport 15 | parport_port $_PARPORTADDR 16 | parport_cable flashlink 17 | -------------------------------------------------------------------------------- /tcl/interface/flossjtag-noeeprom.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # FlossJTAG 3 | # 4 | # http://github.com/esden/floss-jtag 5 | # 6 | # This is the pre v0.3 Floss-JTAG compatible config file. It can also be used 7 | # for newer versions of Floss-JTAG with empty or not populated EEPROM. If you 8 | # have several Floss-JTAG connected you have to use the USB ID to select a 9 | # specific one. 10 | # 11 | # If you have a Floss-JTAG WITH EEPROM that is programmed, use the 12 | # flossjtag.cfg file. 13 | # 14 | 15 | interface ft2232 16 | ft2232_vid_pid 0x0403 0x6010 17 | ft2232_device_desc "Dual RS232-HS" 18 | ft2232_layout "usbjtag" 19 | ft2232_latency 2 20 | -------------------------------------------------------------------------------- /tcl/interface/flossjtag.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # FlossJTAG 3 | # 4 | # http://github.com/esden/floss-jtag 5 | # 6 | # This is the v0.3 and v1.0 Floss-JTAG compatible config file. It relies on the 7 | # existence of an EEPROM on Floss-JTAG containing a name. If you have several 8 | # Floss-JTAG adapters connected you can use the serial number to select a 9 | # specific device. 10 | # 11 | # If your Floss-JTAG does not have an EEPROM, or the EEPROM is empty, use the 12 | # flossjtag-noeeprom.cfg file. 13 | # 14 | 15 | interface ft2232 16 | ft2232_vid_pid 0x0403 0x6010 17 | ft2232_device_desc "FLOSS-JTAG" 18 | #ft2232_serial "FJ000001" 19 | ft2232_layout "flossjtag" 20 | ft2232_latency 2 21 | -------------------------------------------------------------------------------- /tcl/interface/flyswatter.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TinCanTools Flyswatter 3 | # 4 | # http://www.tincantools.com/product.php?productid=16134 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Flyswatter" 9 | ft2232_layout "flyswatter" 10 | ft2232_vid_pid 0x0403 0x6010 11 | -------------------------------------------------------------------------------- /tcl/interface/flyswatter2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TinCanTools Flyswatter 2 3 | # 4 | # http://www.tincantools.com/product.php?productid=16153 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Flyswatter2" 9 | ft2232_layout "flyswatter2" 10 | ft2232_vid_pid 0x0403 0x6010 11 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/axm0432.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Axiom axm0432 3 | # 4 | # http://www.axman.com 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 9 | echo "Please report your experience with this file to openocd-devel mailing list," 10 | echo "so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "Symphony SoundBite" 14 | ftdi_vid_pid 0x0403 0x6010 15 | 16 | ftdi_layout_init 0x0c08 0x0c2b 17 | ftdi_layout_signal nTRST -data 0x0800 18 | ftdi_layout_signal nSRST -data 0x0400 19 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/calao-usb-a9260-c01.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # CALAO Systems USB-A9260-C01 3 | # 4 | # http://www.calao-systems.com/ 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, but is assumed to work as this" 9 | echo "interface uses the same layout as configs that were verified. Please report your" 10 | echo "experience with this file to openocd-devel mailing list, so it could be marked" 11 | echo "as working or fixed." 12 | 13 | interface ftdi 14 | ftdi_device_desc "USB-A9260" 15 | ftdi_vid_pid 0x0403 0x6010 16 | 17 | ftdi_layout_init 0x0c08 0x0f1b 18 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 19 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 20 | 21 | script interface/calao-usb-a9260.cfg 22 | script target/at91sam9260minimal.cfg 23 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/calao-usb-a9260-c02.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # CALAO Systems USB-A9260-C02 3 | # 4 | # http://www.calao-systems.com/ 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, but is assumed to work as this" 9 | echo "interface uses the same layout as configs that were verified. Please report your" 10 | echo "experience with this file to openocd-devel mailing list, so it could be marked" 11 | echo "as working or fixed." 12 | 13 | interface ftdi 14 | ftdi_device_desc "USB-A9260" 15 | ftdi_vid_pid 0x0403 0x6001 16 | 17 | ftdi_layout_init 0x0c08 0x0f1b 18 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 19 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 20 | 21 | script interface/calao-usb-a9260.cfg 22 | script target/at91sam9260minimal.cfg 23 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/cortino.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hitex Cortino 3 | # 4 | # http://www.hitex.com/index.php?id=cortino 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Cortino" 9 | ftdi_vid_pid 0x0640 0x0032 10 | 11 | ftdi_layout_init 0x0108 0x010b 12 | ftdi_layout_signal nTRST -data 0x0100 13 | ftdi_layout_signal nSRST -data 0x0200 -oe 0x0200 14 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/digilent_jtag_smt2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Digilent JTAG-SMT2 3 | # 4 | # http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,395,1053&Prod=JTAG-SMT2 5 | # 6 | # Config is based on data from 7 | # http://electronix.ru/forum/index.php?showtopic=114633&view=findpost&p=1215497 and ZedBoard schematics 8 | # 9 | 10 | interface ftdi 11 | ftdi_vid_pid 0x0403 0x6014 12 | 13 | ftdi_layout_init 0x2088 0x3f8b 14 | ftdi_layout_signal nSRST -data 0x2000 15 | ftdi_layout_signal GPIO2 -data 0x2000 16 | ftdi_layout_signal GPIO1 -data 0x0200 17 | ftdi_layout_signal GPIO0 -data 0x0100 18 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/dlp-usb1232h.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # DLP Design DLP-USB1232H USB-to-UART/FIFO interface module 3 | # 4 | # http://www.dlpdesign.com/usb/usb1232h.shtml 5 | # 6 | # Schematics for OpenOCD usage: 7 | # http://randomprojects.org/wiki/DLP-USB1232H_and_OpenOCD_based_JTAG_adapter 8 | # 9 | 10 | echo "WARNING!" 11 | echo "This file was not tested with real interface, it is based on schematics and code" 12 | echo "in ft2232.c. Please report your experience with this file to openocd-devel" 13 | echo "mailing list, so it could be marked as working or fixed." 14 | 15 | interface ftdi 16 | ftdi_device_desc "Dual RS232-HS" 17 | ftdi_vid_pid 0x0403 0x6010 18 | 19 | ftdi_layout_init 0x0008 0x000b 20 | ftdi_layout_signal nTRST -data 0x0010 -oe 0x0010 21 | ftdi_layout_signal nSRST -data 0x0040 -oe 0x0040 22 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/dp_busblaster.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Dangerous Prototypes - Bus Blaster 3 | # 4 | # The Bus Blaster has a configurable buffer between the FTDI FT2232H and the 5 | # JTAG header which allows it to emulate various debugger types. It comes 6 | # configured as a JTAGkey device. 7 | # 8 | # http://dangerousprototypes.com/docs/Bus_Blaster 9 | # 10 | 11 | echo "Info : If you need SWD support, flash KT-Link buffer from https://github.com/bharrisau/busblaster 12 | and use dp_busblaster_kt-link.cfg instead" 13 | 14 | interface ftdi 15 | ftdi_device_desc "Dual RS232-HS" 16 | ftdi_vid_pid 0x0403 0x6010 17 | 18 | ftdi_layout_init 0x0c08 0x0f1b 19 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 20 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 21 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/dp_busblaster_kt-link.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Dangerous Prototypes - Bus Blaster (with KT-Link buffer) 3 | # 4 | # The Bus Blaster has a configurable buffer between the FTDI FT2232H 5 | # and the JTAG header which allows it to emulate various debugger 6 | # types. This config works with KT-Link compatible implementation from 7 | # https://github.com/bharrisau/busblaster and is SWD-enabled. 8 | # 9 | # http://dangerousprototypes.com/docs/Bus_Blaster 10 | # 11 | 12 | interface ftdi 13 | ftdi_device_desc "Dual RS232-HS" 14 | ftdi_vid_pid 0x0403 0x6010 15 | 16 | ftdi_layout_init 0x8c28 0xff3b 17 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 18 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 19 | ftdi_layout_signal LED -ndata 0x8000 20 | ftdi_layout_signal SWD_EN -ndata 0x0020 -oe 0x2000 21 | ftdi_layout_signal SWDIO_OE -ndata 0x1000 22 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/flyswatter.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TinCanTools Flyswatter 3 | # 4 | # http://www.tincantools.com/product.php?productid=16134 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Flyswatter" 9 | ftdi_vid_pid 0x0403 0x6010 10 | 11 | ftdi_layout_init 0x0818 0x0cfb 12 | ftdi_layout_signal nTRST -data 0x0010 13 | ftdi_layout_signal nSRST -oe 0x0020 14 | ftdi_layout_signal LED -data 0x0c00 15 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/flyswatter2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TinCanTools Flyswatter2 3 | # 4 | # http://www.tincantools.com/product.php?productid=16153 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Flyswatter2" 9 | ftdi_vid_pid 0x0403 0x6010 10 | 11 | ftdi_layout_init 0x0538 0x057b 12 | ftdi_layout_signal LED -ndata 0x0400 13 | ftdi_layout_signal nTRST -data 0x0010 14 | ftdi_layout_signal nSRST -data 0x0020 -noe 0x0100 15 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/gw16042.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Gateworks GW16042 JTAG Dongle 3 | # 4 | # http://www.gateworks.com/ 5 | # 6 | # Layout: FTDI FT2232H 7 | # ADBUS0 TCK 8 | # ADBUS1 TDI 9 | # ADBUS2 TDO (input) 10 | # ADBUS3 TMS 11 | # ADBUS4 nTRST 12 | # ADBUS5 nSRST 13 | # ADBUS6 OE (active high) for TRST, TDI, TMS, TCK 14 | # ADBUS7 NC 15 | # ACBUS0-7 NC 16 | # BDBUS0 RXD 17 | # BDBUS1 TXD (input) 18 | # 19 | 20 | interface ftdi 21 | ftdi_device_desc "USB-JTAG" 22 | ftdi_vid_pid 0x0403 0x6010 23 | 24 | ftdi_layout_init 0x0058 0x007b 25 | ftdi_layout_signal nTRST -data 0x0010 26 | ftdi_layout_signal nSRST -oe 0x0020 27 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/hilscher_nxhx10_etm.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hilscher NXHX 10-ETM 3 | # 4 | # http://de.hilscher.com/products_details_hardware.html?p_id=P_4ce145a5983e6 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 9 | echo "Please report your experience with this file to openocd-devel mailing list," 10 | echo "so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "NXHX 10-ETM" 14 | ftdi_vid_pid 0x0640 0x0028 15 | 16 | ftdi_layout_init 0x0308 0x030b 17 | ftdi_layout_signal nTRST -data 0x0100 18 | ftdi_layout_signal nSRST -data 0x0200 19 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/hilscher_nxhx500_etm.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hilscher NXHX 500-ETM 3 | # 4 | # http://de.hilscher.com/files_design/8/NXHX500-ETM_description_Rev01_EN.pdf 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 9 | echo "Please report your experience with this file to openocd-devel mailing list," 10 | echo "so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "NXHX 500-ETM" 14 | ftdi_vid_pid 0x0640 0x0028 15 | 16 | ftdi_layout_init 0x0308 0x030b 17 | ftdi_layout_signal nTRST -data 0x0100 18 | ftdi_layout_signal nSRST -data 0x0200 19 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/hilscher_nxhx500_re.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hilscher NXHX 500-RE 3 | # 4 | # http://de.hilscher.com/products_details_hardware.html?p_id=P_461ff2053bad1&bs=20 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 9 | echo "Please report your experience with this file to openocd-devel mailing list," 10 | echo "so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "NXHX 500-RE" 14 | ftdi_vid_pid 0x0640 0x0028 15 | 16 | ftdi_layout_init 0x0308 0x030b 17 | ftdi_layout_signal nTRST -data 0x0100 18 | ftdi_layout_signal nSRST -data 0x0200 19 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/hilscher_nxhx50_etm.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hilscher NXHX 50-ETM 3 | # 4 | # http://de.hilscher.com/files_design/8/NXHX50-ETM_description_Rev01_EN.pdf 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 9 | echo "Please report your experience with this file to openocd-devel mailing list," 10 | echo "so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "NXHX 50-ETM" 14 | ftdi_vid_pid 0x0640 0x0028 15 | 16 | ftdi_layout_init 0x0308 0x030b 17 | ftdi_layout_signal nTRST -data 0x0100 18 | ftdi_layout_signal nSRST -data 0x0200 19 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/hilscher_nxhx50_re.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hilscher NXHX 50-RE 3 | # 4 | # http://de.hilscher.com/products_details_hardware.html?p_id=P_483c0f582ad36&bs=20 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 9 | echo "Please report your experience with this file to openocd-devel mailing list," 10 | echo "so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "NXHX50-RE" 14 | ftdi_vid_pid 0x0640 0x0028 15 | 16 | ftdi_layout_init 0x0308 0x030b 17 | ftdi_layout_signal nTRST -data 0x0100 18 | ftdi_layout_signal nSRST -data 0x0200 19 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/hitex_lpc1768stick.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hitex LPC1768-Stick 3 | # 4 | # http://www.hitex.com/?id=1602 5 | # 6 | 7 | 8 | interface ftdi 9 | ftdi_device_desc "LPC1768-Stick" 10 | ftdi_vid_pid 0x0640 0x0026 11 | 12 | ftdi_layout_init 0x0388 0x038b 13 | ftdi_layout_signal nTRST -data 0x0100 14 | ftdi_layout_signal nSRST -data 0x0080 -noe 0x200 15 | 16 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/hitex_str9-comstick.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hitex STR9-comStick 3 | # 4 | # http://www.hitex.com/index.php?id=383 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "STR9-comStick" 9 | ftdi_vid_pid 0x0640 0x002c 10 | 11 | ftdi_layout_init 0x0108 0x010b 12 | ftdi_layout_signal nTRST -data 0x0100 13 | ftdi_layout_signal nSRST -data 0x0200 -oe 0x0200 14 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/icebear.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Section5 ICEBear 3 | # 4 | # http://section5.ch/icebear 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 9 | echo "Please report your experience with this file to openocd-devel mailing list," 10 | echo "so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "ICEbear JTAG adapter" 14 | ftdi_vid_pid 0x0403 0xc140 15 | 16 | ftdi_layout_init 0x0028 0x002b 17 | ftdi_layout_signal nTRST -data 0x0010 -oe 0x0010 18 | ftdi_layout_signal nSRST -data 0x0020 19 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/iotlab-usb.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # This is the integrated adapter as found on the IoT-LAB boards 3 | # https://github.com/iot-lab/iot-lab/wiki 4 | # 5 | 6 | interface ftdi 7 | ftdi_vid_pid 0x0403 0x6010 8 | 9 | ftdi_layout_init 0x0008 0x000b 10 | ftdi_layout_signal nTRST -data 0x0010 -oe 0x0010 11 | ftdi_layout_signal nSRST -data 0x0040 -oe 0x0040 12 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/jtag-lock-pick_tiny_2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # DISTORTEC JTAG-lock-pick Tiny 2 3 | # 4 | # http://www.distortec.com 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "JTAG-lock-pick Tiny 2" 9 | ftdi_vid_pid 0x0403 0x8220 10 | 11 | ftdi_layout_init 0x8c28 0xff3b 12 | ftdi_layout_signal SWD_EN -ndata 0x0020 -oe 0x2000 13 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 14 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 15 | ftdi_layout_signal SWDIO_OE -ndata 0x1000 16 | ftdi_layout_signal LED -ndata 0x8000 17 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/jtagkey.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Amontec JTAGkey 3 | # 4 | # http://www.amontec.com/jtagkey.shtml 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Amontec JTAGkey" 9 | ftdi_vid_pid 0x0403 0xcff8 10 | 11 | ftdi_layout_init 0x0c08 0x0f1b 12 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 13 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 14 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/jtagkey2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Amontec JTAGkey2 3 | # 4 | # http://www.amontec.com/jtagkey2.shtml 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Amontec JTAGkey-2" 9 | ftdi_vid_pid 0x0403 0xcff8 10 | 11 | ftdi_layout_init 0x0c08 0x0f1b 12 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 13 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 14 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/jtagkey2p.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Amontec JTAGkey2P 3 | # 4 | # http://www.amontec.com/jtagkey2p.shtml 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Amontec JTAGkey-2P" 9 | ftdi_vid_pid 0x0403 0xcff8 10 | 11 | ftdi_layout_init 0x0c08 0x0f1b 12 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 13 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 14 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/kt-link.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Kristech KT-Link 3 | # 4 | # http://www.kristech.eu 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "KT-LINK" 9 | ftdi_vid_pid 0x0403 0xbbe2 10 | 11 | ftdi_layout_init 0x8c28 0xff3b 12 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 13 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 14 | ftdi_layout_signal LED -data 0x8000 15 | ftdi_layout_signal SWD_EN -ndata 0x0020 -oe 0x2000 16 | ftdi_layout_signal SWDIO_OE -ndata 0x1000 17 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/lisa-l.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Lisa/L 3 | # 4 | # http://paparazzi.enac.fr/wiki/Lisa 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on schematics and code" 9 | echo "in ft2232.c. Please report your experience with this file to openocd-devel" 10 | echo "mailing list, so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "Lisa/L" 14 | ftdi_vid_pid 0x0403 0x6010 15 | ftdi_channel 1 16 | 17 | ftdi_layout_init 0x0008 0x180b 18 | ftdi_layout_signal nTRST -data 0x0010 -oe 0x0010 19 | ftdi_layout_signal nSRST -data 0x0040 -oe 0x0040 20 | ftdi_layout_signal LED -data 0x1800 21 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/luminary-lm3s811.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Luminary Micro Stellaris LM3S811 Evaluation Kit 3 | # 4 | # http://www.luminarymicro.com/products/stellaris_811_evaluation_kits.html 5 | # 6 | # NOTE: this is only for boards *before* Rev C, which adds support 7 | # for SWO tracing with ADBUS_6 DBG_ENn and BDBUS_4 SWO_EN signals. 8 | # The "evb_lm3s811" layout doesn't set up those signals. 9 | # 10 | # Rev C boards work more like the other Stellaris eval boards. They 11 | # need to use the "luminary_icdi" layout to work correctly. 12 | # 13 | 14 | interface ftdi 15 | ftdi_device_desc "LM3S811 Evaluation Board" 16 | ftdi_vid_pid 0x0403 0xbcd9 17 | 18 | ftdi_layout_init 0x0088 0x008b 19 | ftdi_layout_signal nSRST -data 0x0020 -oe 0x0020 20 | ftdi_layout_signal SWD_EN -ndata 0x0080 21 | ftdi_layout_signal SWDIO_OE -data 0x0008 22 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/m53evk.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # DENX M53EVK 3 | # 4 | # http://www.denx-cs.de/?q=M53EVK 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Dual RS232-HS" 9 | ftdi_vid_pid 0x0403 0x6010 10 | 11 | ftdi_channel 0 12 | ftdi_layout_init 0x0008 0x000b 13 | ftdi_layout_signal nTRST -data 0x0010 -oe 0x0010 14 | ftdi_layout_signal nSRST -data 0x0020 -oe 0x0020 15 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/minimodule.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # FTDI MiniModule 3 | # 4 | # http://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_FT2232H_Mini_Module.pdf 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 9 | echo "Please report your experience with this file to openocd-devel mailing list," 10 | echo "so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "FT2232H MiniModule" 14 | ftdi_vid_pid 0x0403 0x6010 15 | 16 | ftdi_layout_init 0x0018 0x05fb 17 | ftdi_layout_signal nSRST -data 0x0020 18 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/neodb.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Openmoko USB JTAG/RS232 adapter 3 | # 4 | # http://wiki.openmoko.org/wiki/Debug_Board_v3 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Debug Board for Neo1973" 9 | ftdi_vid_pid 0x1457 0x5118 10 | 11 | ftdi_layout_init 0x0508 0x0f1b 12 | ftdi_layout_signal nTRST -data 0x0200 -noe 0x0100 13 | ftdi_layout_signal nSRST -data 0x0800 -noe 0x0400 14 | ftdi_layout_signal nNOR_WP -data 0x0010 -oe 0x0010 15 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/ngxtech.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # NGX ARM USB JTAG 3 | # 4 | # http://shop.ngxtechnologies.com/product_info.php?cPath=26&products_id=30 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, but is assumed to work as this" 9 | echo "interface uses the same layout as configs that were verified. Please report your" 10 | echo "experience with this file to openocd-devel mailing list, so it could be marked" 11 | echo "as working or fixed." 12 | 13 | interface ftdi 14 | ftdi_device_desc "NGX JTAG" 15 | ftdi_vid_pid 0x0403 0x6010 16 | 17 | ftdi_layout_init 0x0508 0x0f1b 18 | ftdi_layout_signal nTRST -data 0x0200 -noe 0x0100 19 | ftdi_layout_signal nSRST -data 0x0800 -noe 0x0400 20 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/olimex-arm-jtag-swd.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex ARM JTAG SWD adapter 3 | # https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-SWD/ 4 | # 5 | 6 | transport select swd 7 | 8 | ftdi_layout_signal SWD_EN -nalias nTRST 9 | ftdi_layout_signal SWDIO_OE -alias TMS 10 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/olimex-arm-usb-ocd-h.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex ARM-USB-OCD-H 3 | # 4 | # http://www.olimex.com/dev/arm-usb-ocd-h.html 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-OCD-H" 9 | ftdi_vid_pid 0x15ba 0x002b 10 | 11 | ftdi_layout_init 0x0908 0x0b1b 12 | ftdi_layout_signal nSRST -oe 0x0200 13 | ftdi_layout_signal nTRST -data 0x0100 14 | ftdi_layout_signal LED -data 0x0800 15 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/olimex-arm-usb-ocd.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex ARM-USB-OCD 3 | # 4 | # http://www.olimex.com/dev/arm-usb-ocd.html 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Olimex OpenOCD JTAG" 9 | ftdi_vid_pid 0x15ba 0x0003 10 | 11 | ftdi_layout_init 0x0c08 0x0f1b 12 | ftdi_layout_signal nSRST -oe 0x0200 13 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 14 | ftdi_layout_signal LED -data 0x0800 15 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/olimex-arm-usb-tiny-h.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex ARM-USB-TINY-H 3 | # 4 | # http://www.olimex.com/dev/arm-usb-tiny-h.html 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" 9 | ftdi_vid_pid 0x15ba 0x002a 10 | 11 | ftdi_layout_init 0x0808 0x0a1b 12 | ftdi_layout_signal nSRST -oe 0x0200 13 | ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 14 | ftdi_layout_signal LED -data 0x0800 15 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/olimex-jtag-tiny.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex ARM-USB-TINY 3 | # 4 | # http://www.olimex.com/dev/arm-usb-tiny.html 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Olimex OpenOCD JTAG TINY" 9 | ftdi_vid_pid 0x15ba 0x0004 10 | 11 | ftdi_layout_init 0x0808 0x0a1b 12 | ftdi_layout_signal nSRST -oe 0x0200 13 | ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 14 | ftdi_layout_signal LED -data 0x0800 15 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/oocdlink.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Joern Kaipf's OOCDLink 3 | # 4 | # http://www.joernonline.de/contrexx2/cms/index.php?page=126 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, but is assumed to work as this" 9 | echo "interface uses the same layout as configs that were verified. Please report your" 10 | echo "experience with this file to openocd-devel mailing list, so it could be marked" 11 | echo "as working or fixed." 12 | 13 | interface ftdi 14 | ftdi_device_desc "OOCDLink" 15 | ftdi_vid_pid 0x0403 0xbaf8 16 | 17 | ftdi_layout_init 0x0508 0x0f1b 18 | ftdi_layout_signal nTRST -data 0x0200 -noe 0x0100 19 | ftdi_layout_signal nSRST -data 0x0800 -noe 0x0400 20 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/opendous_ftdi.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Opendous 3 | # 4 | # http://code.google.com/p/opendous/wiki/JTAG 5 | # 6 | # According to the website, it is similar to jtagkey, but it uses channel B 7 | # (and it has a different pid number). 8 | # 9 | 10 | interface ftdi 11 | ftdi_device_desc "Dual RS232-HS" 12 | ftdi_vid_pid 0x0403 0x6010 13 | ftdi_channel 1 14 | 15 | ftdi_layout_init 0x0c08 0x0f1b 16 | ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 17 | ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 18 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/openocd-usb-hs.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # embedded projects openocd usb adapter v3 3 | # 4 | # http://shop.embedded-projects.net/index.php?module=artikel&action=artikel&id=14 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Dual RS232-HS" 9 | ftdi_vid_pid 0x0403 0x6010 10 | 11 | ftdi_layout_init 0x0508 0x0f1b 12 | ftdi_layout_signal nTRST -data 0x0200 -noe 0x0100 13 | ftdi_layout_signal nSRST -data 0x0800 -noe 0x0400 14 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/openocd-usb.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hubert Hoegl's USB to JTAG 3 | # 4 | # http://www.hs-augsburg.de/~hhoegl/proj/usbjtag/usbjtag.html 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Dual RS232" 9 | ftdi_vid_pid 0x0403 0x6010 10 | 11 | ftdi_layout_init 0x0508 0x0f1b 12 | ftdi_layout_signal nTRST -data 0x0200 -noe 0x0100 13 | ftdi_layout_signal nSRST -data 0x0800 -noe 0x0400 14 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/openrd.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Marvell OpenRD 3 | # 4 | # http://www.marvell.com/products/embedded_processors/developer/kirkwood/openrd.jsp 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 9 | echo "Please report your experience with this file to openocd-devel mailing list," 10 | echo "so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "OpenRD JTAGKey FT2232D" 14 | ftdi_vid_pid 0x0403 0x9e90 15 | ftdi_channel 1 16 | 17 | ftdi_layout_init 0x0608 0x0f1b 18 | ftdi_layout_signal nTRST -data 0x0200 19 | ftdi_layout_signal nSRST -noe 0x0400 20 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/redbee-econotag.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Redwire Redbee-Econotag 3 | # 4 | # http://www.redwirellc.com/store/node/1 5 | # 6 | # The Redbee-Econotag has an onboard FT2232H with: 7 | # - FT2232H channel A wired to mc13224v JTAG 8 | # - FT2232H channel B wired to mc13224v UART1 9 | # 10 | 11 | echo "WARNING!" 12 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 13 | echo "Please report your experience with this file to openocd-devel mailing list," 14 | echo "so it could be marked as working or fixed." 15 | 16 | interface ftdi 17 | ftdi_vid_pid 0x0403 0x6010 18 | 19 | ftdi_layout_init 0x0c08 0x0c2b 20 | ftdi_layout_signal nTRST -data 0x0800 21 | ftdi_layout_signal nSRST -data 0x0400 22 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/redbee-usb.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Redwire Redbee-USB 3 | # 4 | # http://www.redwirellc.com 5 | # 6 | # The Redbee-USB has an onboard FT2232H with: 7 | # - FT2232H channel B wired to mc13224v JTAG 8 | # - FT2232H channel A wired to mc13224v UART1 9 | # 10 | 11 | echo "WARNING!" 12 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 13 | echo "Please report your experience with this file to openocd-devel mailing list," 14 | echo "so it could be marked as working or fixed." 15 | 16 | interface ftdi 17 | ftdi_vid_pid 0x0403 0x6010 18 | ftdi_channel 1 19 | 20 | ftdi_layout_init 0x0c08 0x0c2b 21 | ftdi_layout_signal nTRST -data 0x0800 22 | ftdi_layout_signal nSRST -data 0x0400 23 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/rowley-cc-arm-swd.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Rowley ARM SWD Adapter 3 | # http://sites.fastspring.com/rowley/product/armswdadapter 4 | # https://drive.google.com/file/d/0Bzv7UpKpOQhnTUNNdzI5OUR4WGs/edit?usp=sharing 5 | # 6 | 7 | transport select swd 8 | 9 | ftdi_layout_signal SWD_EN -nalias nTRST 10 | ftdi_layout_signal SWDIO_OE -alias TMS 11 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/sheevaplug.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Marvel SheevaPlug Development Kit 3 | # 4 | # http://www.marvell.com/products/embedded_processors/developer/kirkwood/sheevaplug.jsp 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "SheevaPlug JTAGKey FT2232D B" 9 | ftdi_vid_pid 0x9e88 0x9e8f 10 | ftdi_channel 1 11 | 12 | ftdi_layout_init 0x0608 0x0f1b 13 | ftdi_layout_signal nTRST -data 0x0200 14 | ftdi_layout_signal nSRST -noe 0x0400 15 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/signalyzer-lite.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Xverve Signalyzer LITE (DT-USB-SLITE) 3 | # 4 | # http://www.signalyzer.com 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 9 | echo "Please report your experience with this file to openocd-devel mailing list," 10 | echo "so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "Signalyzer LITE" 14 | ftdi_vid_pid 0x0403 0xbca1 15 | 16 | ftdi_layout_init 0x0008 0x000b 17 | ftdi_layout_signal nTRST -data 0x0010 -oe 0x0010 18 | ftdi_layout_signal nSRST -data 0x0020 -oe 0x0020 19 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/signalyzer.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Xverve Signalyzer Tool (DT-USB-ST) 3 | # 4 | # http://www.signalyzer.com 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on code in ft2232.c." 9 | echo "Please report your experience with this file to openocd-devel mailing list," 10 | echo "so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "Signalyzer" 14 | ftdi_vid_pid 0x0403 0xbca0 15 | 16 | ftdi_layout_init 0x0008 0x000b 17 | ftdi_layout_signal nTRST -data 0x0010 -oe 0x0010 18 | ftdi_layout_signal nSRST -data 0x0020 -oe 0x0020 19 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/stm32-stick.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hitex STM32-PerformanceStick 3 | # 4 | # http://www.hitex.com/index.php?id=340 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "STM32-PerformanceStick" 9 | ftdi_vid_pid 0x0640 0x002d 10 | 11 | ftdi_layout_init 0x0388 0x038b 12 | ftdi_layout_signal nTRST -data 0x0100 13 | ftdi_layout_signal nSRST -data 0x0080 -noe 0x200 14 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/ti-icdi.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # This is an FTDI-based debugging solution as found on some TI boards, 3 | # e.g. CC3200 LaunchPad. 4 | # 5 | # The schematics are identical to luminary-icdi (including SWD 6 | # support) but the USB IDs are different. 7 | # 8 | 9 | interface ftdi 10 | ftdi_vid_pid 0x0451 0xc32a 11 | 12 | ftdi_layout_init 0x00a8 0x00eb 13 | ftdi_layout_signal nSRST -noe 0x0020 14 | ftdi_layout_signal SWD_EN -ndata 0x0080 15 | ftdi_layout_signal SWDIO_OE -data 0x0008 16 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/tumpa-lite.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TIAO USB Multi-Protocol Adapter (TUMPA) Lite 3 | # 4 | # http://www.diygadget.com/tiao-usb-multi-protocol-adapter-lite-jtag-spi-i2c-serial.html 5 | # 6 | 7 | interface ftdi 8 | ftdi_vid_pid 0x0403 0x8a99 9 | 10 | ftdi_layout_init 0x0038 0x087b 11 | ftdi_layout_signal nTRST -data 0x0020 -oe 0x0020 12 | ftdi_layout_signal nSRST -data 0x0010 -oe 0x0010 13 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/tumpa.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TIAO USB Multi-Protocol Adapter (TUMPA) 3 | # 4 | # http://www.diygadget.com/tiao-usb-multi-protocol-adapter-jtag-spi-i2c-serial.html 5 | # 6 | 7 | interface ftdi 8 | ftdi_vid_pid 0x0403 0x8a98 0x0403 0x6010 9 | 10 | ftdi_layout_init 0x0038 0x087b 11 | ftdi_layout_signal nTRST -data 0x0020 12 | ftdi_layout_signal nSRST -data 0x0010 13 | 14 | reset_config srst_push_pull 15 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/turtelizer2-revB.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # egnite Turtelizer 2 rev B (with SRST only) 3 | # 4 | # http://www.ethernut.de/en/hardware/turtelizer/index.html 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, it is based on schematics and code" 9 | echo "in ft2232.c. Please report your experience with this file to openocd-devel" 10 | echo "mailing list, so it could be marked as working or fixed." 11 | 12 | interface ftdi 13 | ftdi_device_desc "Turtelizer JTAG/RS232 Adapter" 14 | ftdi_vid_pid 0x0403 0xbdc8 15 | 16 | ftdi_layout_init 0x0008 0x0c5b 17 | ftdi_layout_signal nSRST -oe 0x0040 18 | ftdi_layout_signal LED -data 0x0c00 19 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/turtelizer2-revC.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # egnite Turtelizer 2 revC (with TRST and SRST) 3 | # 4 | # http://www.ethernut.de/en/hardware/turtelizer/index.html 5 | # 6 | 7 | interface ftdi 8 | ftdi_device_desc "Turtelizer JTAG/RS232 Adapter" 9 | ftdi_vid_pid 0x0403 0xbdc8 10 | 11 | ftdi_layout_init 0x0008 0x0c7b 12 | ftdi_layout_signal nTRST -oe 0x0020 13 | ftdi_layout_signal nSRST -oe 0x0040 14 | ftdi_layout_signal LED -ndata 0x0c00 15 | -------------------------------------------------------------------------------- /tcl/interface/ftdi/vpaclink.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Voipac VPACLink 3 | # 4 | # http://voipac.com/27M-JTG-000 5 | # 6 | 7 | echo "WARNING!" 8 | echo "This file was not tested with real interface, but is assumed to work as this" 9 | echo "interface uses the same layout as configs that were verified. Please report your" 10 | echo "experience with this file to openocd-devel mailing list, so it could be marked" 11 | echo "as working or fixed." 12 | 13 | interface ftdi 14 | ftdi_device_desc "VPACLink" 15 | ftdi_vid_pid 0x0403 0x6010 16 | 17 | ftdi_layout_init 0x0508 0x0f1b 18 | ftdi_layout_signal nTRST -data 0x0200 -noe 0x0100 19 | ftdi_layout_signal nSRST -data 0x0800 -noe 0x0400 20 | -------------------------------------------------------------------------------- /tcl/interface/hilscher_nxhx10_etm.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hilscher NXHX 10-ETM 3 | # 4 | # http://de.hilscher.com/products_details_hardware.html?p_id=P_4ce145a5983e6 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "NXHX 10-ETM" 9 | ft2232_layout comstick 10 | ft2232_vid_pid 0x0640 0x0028 11 | adapter_khz 6000 12 | -------------------------------------------------------------------------------- /tcl/interface/hilscher_nxhx500_etm.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hilscher NXHX 500-ETM 3 | # 4 | # http://de.hilscher.com/files_design/8/NXHX500-ETM_description_Rev01_EN.pdf 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "NXHX 500-ETM" 9 | ft2232_layout comstick 10 | ft2232_vid_pid 0x0640 0x0028 11 | adapter_khz 6000 12 | -------------------------------------------------------------------------------- /tcl/interface/hilscher_nxhx500_re.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hilscher NXHX 500-RE 3 | # 4 | # http://de.hilscher.com/products_details_hardware.html?p_id=P_461ff2053bad1&bs=20 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "NXHX 500-RE" 9 | ft2232_layout comstick 10 | ft2232_vid_pid 0x0640 0x0028 11 | adapter_khz 6000 12 | -------------------------------------------------------------------------------- /tcl/interface/hilscher_nxhx50_etm.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hilscher NXHX 50-ETM 3 | # 4 | # http://de.hilscher.com/files_design/8/NXHX50-ETM_description_Rev01_EN.pdf 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "NXHX 50-ETM" 9 | ft2232_layout comstick 10 | ft2232_vid_pid 0x0640 0x0028 11 | adapter_khz 6000 12 | -------------------------------------------------------------------------------- /tcl/interface/hilscher_nxhx50_re.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hilscher NXHX 50-RE 3 | # 4 | # http://de.hilscher.com/products_details_hardware.html?p_id=P_483c0f582ad36&bs=20 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "NXHX50-RE" 9 | ft2232_layout comstick 10 | ft2232_vid_pid 0x0640 0x0028 11 | adapter_khz 6000 12 | -------------------------------------------------------------------------------- /tcl/interface/hitex_str9-comstick.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hitex STR9-comStick 3 | # 4 | # http://www.hitex.com/index.php?id=383 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "STR9-comStick" 9 | ft2232_layout comstick 10 | ft2232_vid_pid 0x0640 0x002c 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/icebear.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Section5 ICEBear 3 | # 4 | # http://section5.ch/icebear 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "ICEbear JTAG adapter" 9 | ft2232_layout icebear 10 | ft2232_vid_pid 0x0403 0xc140 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/jlink.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Segger J-Link 3 | # 4 | # http://www.segger.com/jlink.html 5 | # 6 | 7 | interface jlink 8 | 9 | 10 | # The serial number can be used to select a specific interface in case more than one 11 | # is connected to the host. 12 | # 13 | # Segger software omits leading zeros in serial number displays, 14 | # OpenOCD requires them. 15 | # 16 | # Example: Select J-Link with serial 123456789 17 | # 18 | # jlink serial 000123456789 19 | 20 | -------------------------------------------------------------------------------- /tcl/interface/jtag-lock-pick_tiny_2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # DISTORTEC JTAG-lock-pick Tiny 2 3 | # 4 | # http://www.distortec.com 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "JTAG-lock-pick Tiny 2" 9 | ft2232_layout ktlink 10 | ft2232_vid_pid 0x0403 0x8220 11 | -------------------------------------------------------------------------------- /tcl/interface/jtag_vpi.cfg: -------------------------------------------------------------------------------- 1 | interface jtag_vpi 2 | 3 | # Set the VPI JTAG server port 4 | if { [info exists VPI_PORT] } { 5 | set _VPI_PORT $VPI_PORT 6 | } else { 7 | set _VPI_PORT 5555 8 | } 9 | 10 | # Set the VPI JTAG server address 11 | if { [info exists VPI_ADDRESS] } { 12 | set _VPI_ADDRESS $VPI_ADDRESS 13 | } else { 14 | set _VPI_ADDRESS "127.0.0.1" 15 | } 16 | 17 | jtag_vpi_set_port $_VPI_PORT 18 | jtag_vpi_set_address $_VPI_ADDRESS 19 | -------------------------------------------------------------------------------- /tcl/interface/jtagkey-tiny.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Amontec JTAGkey-tiny 3 | # 4 | # http://www.amontec.com/jtagkey-tiny.shtml 5 | # 6 | 7 | # The JTAGkey-tiny uses exactly the same config as the JTAGkey. 8 | source [find interface/jtagkey.cfg] 9 | 10 | -------------------------------------------------------------------------------- /tcl/interface/jtagkey.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Amontec JTAGkey 3 | # 4 | # http://www.amontec.com/jtagkey.shtml 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Amontec JTAGkey" 9 | ft2232_layout jtagkey 10 | ft2232_vid_pid 0x0403 0xcff8 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/jtagkey2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Amontec JTAGkey2 3 | # 4 | # http://www.amontec.com/jtagkey2.shtml 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Amontec JTAGkey-2" 9 | ft2232_layout jtagkey 10 | ft2232_vid_pid 0x0403 0xCFF8 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/jtagkey2p.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Amontec JTAGkey2P 3 | # 4 | # http://www.amontec.com/jtagkey2p.shtml 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Amontec JTAGkey-2P" 9 | ft2232_layout jtagkey 10 | ft2232_vid_pid 0x0403 0xCFF8 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/kt-link.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Kristech KT-Link 3 | # 4 | # http://www.kristech.eu 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "KT-LINK" 9 | ft2232_layout ktlink 10 | ft2232_vid_pid 0x0403 0xBBE2 11 | -------------------------------------------------------------------------------- /tcl/interface/lisa-l.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Lisa/L 3 | # 4 | # http://paparazzi.enac.fr/wiki/Lisa 5 | # 6 | 7 | interface ft2232 8 | ft2232_vid_pid 0x0403 0x6010 9 | ft2232_device_desc "Lisa/L" 10 | ft2232_layout "lisa-l" 11 | ft2232_latency 2 12 | -------------------------------------------------------------------------------- /tcl/interface/luminary-lm3s811.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Luminary Micro Stellaris LM3S811 Evaluation Kit 3 | # 4 | # http://www.luminarymicro.com/products/stellaris_811_evaluation_kits.html 5 | # 6 | # NOTE: this is only for boards *before* Rev C, which adds support 7 | # for SWO tracing with ADBUS_6 DBG_ENn and BDBUS_4 SWO_EN signals. 8 | # The "evb_lm3s811" layout doesn't set up those signals. 9 | # 10 | # Rev C boards work more like the other Stellaris eval boards. They 11 | # need to use the "luminary_icdi" layout to work correctly. 12 | # 13 | 14 | interface ft2232 15 | ft2232_device_desc "LM3S811 Evaluation Board" 16 | ft2232_layout evb_lm3s811 17 | ft2232_vid_pid 0x0403 0xbcd9 18 | 19 | -------------------------------------------------------------------------------- /tcl/interface/minimodule.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # FTDI MiniModule 3 | # 4 | # http://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_FT2232H_Mini_Module.pdf 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "FT2232H MiniModule" 9 | ft2232_layout "minimodule" 10 | ft2232_vid_pid 0x0403 0x6010 11 | -------------------------------------------------------------------------------- /tcl/interface/nds32-aice.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Andes AICE 3 | # 4 | # http://www.andestech.com 5 | # 6 | 7 | interface aice 8 | aice desc "Andes AICE adapter" 9 | aice serial "C001-42163" 10 | aice vid_pid 0x1CFC 0x0000 11 | aice port aice_usb 12 | reset_config trst_and_srst 13 | adapter_khz 24000 14 | aice retry_times 50 15 | aice count_to_check_dbger 30 16 | -------------------------------------------------------------------------------- /tcl/interface/neodb.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Openmoko USB JTAG/RS232 adapter 3 | # 4 | # http://wiki.openmoko.org/wiki/Debug_Board_v3 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Debug Board for Neo1973" 9 | ft2232_layout jtagkey 10 | ft2232_vid_pid 0x1457 0x5118 11 | -------------------------------------------------------------------------------- /tcl/interface/ngxtech.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # NGX ARM USB JTAG 3 | # 4 | # http://shop.ngxtechnologies.com/product_info.php?cPath=26&products_id=30 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "NGX JTAG A" 9 | ft2232_vid_pid 0x0403 0x6010 10 | ft2232_layout "oocdlink" 11 | -------------------------------------------------------------------------------- /tcl/interface/olimex-arm-usb-ocd-h.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex ARM-USB-OCD-H 3 | # 4 | # http://www.olimex.com/dev/arm-usb-ocd.html 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Olimex OpenOCD JTAG ARM-USB-OCD-H" 9 | ft2232_layout olimex-jtag 10 | ft2232_vid_pid 0x15ba 0x002b 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/olimex-arm-usb-ocd.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex ARM-USB-OCD 3 | # 4 | # http://www.olimex.com/dev/arm-usb-ocd.html 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Olimex OpenOCD JTAG" 9 | ft2232_layout olimex-jtag 10 | ft2232_vid_pid 0x15ba 0x0003 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/olimex-arm-usb-tiny-h.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex ARM-USB-TINY-H 3 | # 4 | # http://www.olimex.com/dev/arm-usb-tiny-h.html 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" 9 | ft2232_layout olimex-jtag 10 | ft2232_vid_pid 0x15ba 0x002a 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/olimex-jtag-tiny.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Olimex ARM-USB-TINY 3 | # 4 | # http://www.olimex.com/dev/arm-usb-tiny.html 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Olimex OpenOCD JTAG TINY" 9 | ft2232_layout olimex-jtag 10 | ft2232_vid_pid 0x15ba 0x0004 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/oocdlink.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Joern Kaipf's OOCDLink 3 | # 4 | # http://www.joernonline.de/contrexx2/cms/index.php?page=126 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "OOCDLink" 9 | ft2232_layout oocdlink 10 | ft2232_vid_pid 0x0403 0xbaf8 11 | adapter_khz 5 12 | 13 | -------------------------------------------------------------------------------- /tcl/interface/opendous.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # opendous-jtag 3 | # 4 | # http://code.google.com/p/opendous-jtag/ 5 | # 6 | 7 | interface opendous 8 | -------------------------------------------------------------------------------- /tcl/interface/opendous_ftdi.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Opendous 3 | # 4 | # http://code.google.com/p/opendous/wiki/JTAG 5 | # 6 | # According to the website, it is similar to jtagkey, but it uses channel B 7 | # (and it has a different pid number). 8 | # 9 | 10 | interface ft2232 11 | ft2232_device_desc "Dual RS232-HS" 12 | ft2232_layout jtagkey 13 | ft2232_vid_pid 0x0403 0x6010 14 | ft2232_channel 2 15 | 16 | -------------------------------------------------------------------------------- /tcl/interface/openjtag.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # OpenJTAG 3 | # 4 | # www.openjtag.org 5 | # 6 | 7 | interface openjtag 8 | openjtag_device_desc "Open JTAG Project" -------------------------------------------------------------------------------- /tcl/interface/openocd-usb-hs.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # embedded projects openocd usb adapter v3 3 | # 4 | # http://shop.embedded-projects.net/index.php?module=artikel&action=artikel&id=14 5 | # 6 | 7 | interface ft2232 8 | ft2232_vid_pid 0x0403 0x6010 9 | ft2232_device_desc "Dual RS232-HS" 10 | ft2232_layout "oocdlink" 11 | ft2232_latency 2 12 | -------------------------------------------------------------------------------- /tcl/interface/openocd-usb.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hubert Hoegl's USB to JTAG 3 | # 4 | # http://www.hs-augsburg.de/~hhoegl/proj/usbjtag/usbjtag.html 5 | # 6 | 7 | interface ft2232 8 | ft2232_vid_pid 0x0403 0x6010 9 | ft2232_device_desc "Dual RS232" 10 | ft2232_layout "oocdlink" 11 | ft2232_latency 2 12 | -------------------------------------------------------------------------------- /tcl/interface/openrd.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Marvell OpenRD 3 | # 4 | # http://www.marvell.com/products/embedded_processors/developer/kirkwood/openrd.jsp 5 | # 6 | 7 | interface ft2232 8 | ft2232_layout sheevaplug 9 | ft2232_vid_pid 0x0403 0x9e90 10 | ft2232_device_desc "OpenRD JTAGKey FT2232D B" 11 | adapter_khz 3000 12 | 13 | -------------------------------------------------------------------------------- /tcl/interface/osbdm.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # P&E Micro OSBDM (aka OSJTAG) interface 3 | # 4 | # http://pemicro.com/osbdm/ 5 | # 6 | interface osbdm 7 | reset_config srst_only 8 | -------------------------------------------------------------------------------- /tcl/interface/parport.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Parallel port wiggler (many clones available) on port 0x378 3 | # 4 | # Addresses: 0x378/LPT1 or 0x278/LPT2 ... 5 | # 6 | 7 | if { [info exists PARPORTADDR] } { 8 | set _PARPORTADDR $PARPORTADDR 9 | } else { 10 | if {$tcl_platform(platform) eq "windows"} { 11 | set _PARPORTADDR 0x378 12 | } { 13 | set _PARPORTADDR 0 14 | } 15 | } 16 | 17 | interface parport 18 | parport_port $_PARPORTADDR 19 | parport_cable wiggler 20 | -------------------------------------------------------------------------------- /tcl/interface/parport_dlc5.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Xilinx Parallel Cable III 'DLC 5' (and various clones) 3 | # 4 | # http://www.xilinx.com/itp/xilinx4/data/docs/pac/appendixb.html 5 | # 6 | 7 | if { [info exists PARPORTADDR] } { 8 | set _PARPORTADDR $PARPORTADDR 9 | } else { 10 | set _PARPORTADDR 0 11 | } 12 | 13 | interface parport 14 | parport_port $_PARPORTADDR 15 | parport_cable dlc5 16 | 17 | -------------------------------------------------------------------------------- /tcl/interface/redbee-econotag.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Redwire Redbee-Econotag 3 | # 4 | # http://www.redwirellc.com/store/node/1 5 | # 6 | # The Redbee-Econotag has an onboard FT2232H with: 7 | # - FT2232H channel A wired to mc13224v JTAG 8 | # - FT2232H channel B wired to mc13224v UART1 9 | # 10 | 11 | interface ft2232 12 | ft2232_layout redbee-econotag 13 | ft2232_vid_pid 0x0403 0x6010 14 | -------------------------------------------------------------------------------- /tcl/interface/redbee-usb.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Redwire Redbee-USB 3 | # 4 | # http://www.redwirellc.com 5 | # 6 | # The Redbee-USB has an onboard FT2232H with: 7 | # - FT2232H channel B wired to mc13224v JTAG 8 | # - FT2232H channel A wired to mc13224v UART1 9 | # 10 | 11 | interface ft2232 12 | ft2232_layout redbee-usb 13 | ft2232_vid_pid 0x0403 0x6010 14 | -------------------------------------------------------------------------------- /tcl/interface/rlink.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Raisonance RLink 3 | # 4 | # http://www.mcu-raisonance.com/~rlink-debugger-programmer__microcontrollers__tool~tool__T018:4cn9ziz4bnx6.html 5 | # 6 | 7 | interface rlink 8 | 9 | -------------------------------------------------------------------------------- /tcl/interface/sheevaplug.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Marvel SheevaPlug Development Kit 3 | # 4 | # http://www.marvell.com/products/embedded_processors/developer/kirkwood/sheevaplug.jsp 5 | # 6 | 7 | interface ft2232 8 | ft2232_layout sheevaplug 9 | ft2232_vid_pid 0x9e88 0x9e8f 10 | ft2232_device_desc "SheevaPlug JTAGKey FT2232D B" 11 | adapter_khz 2000 12 | 13 | -------------------------------------------------------------------------------- /tcl/interface/signalyzer-h2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Xverve Signalyzer H2 (DT-USB-SH2) 3 | # 4 | # http://www.signalyzer.com 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Signalyzer H2" 9 | ft2232_layout signalyzer-h 10 | ft2232_vid_pid 0x0403 0xbca2 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/signalyzer-h4.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Xverve Signalyzer H4 (DT-USB-SH4) 3 | # 4 | # http://www.signalyzer.com 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Signalyzer H4" 9 | ft2232_layout signalyzer-h 10 | ft2232_vid_pid 0x0403 0xbca4 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/signalyzer-lite.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Xverve Signalyzer LITE (DT-USB-SLITE) 3 | # 4 | # http://www.signalyzer.com 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Signalyzer LITE" 9 | ft2232_layout signalyzer 10 | ft2232_vid_pid 0x0403 0xbca1 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/signalyzer.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Xverve Signalyzer Tool (DT-USB-ST) 3 | # 4 | # http://www.signalyzer.com 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Signalyzer" 9 | ft2232_layout signalyzer 10 | ft2232_vid_pid 0x0403 0xbca0 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/stlink-v1.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # STMicroelectronics ST-LINK/V1 in-circuit debugger/programmer 3 | # 4 | 5 | interface hla 6 | hla_layout stlink 7 | hla_device_desc "ST-LINK/V1" 8 | hla_vid_pid 0x0483 0x3744 9 | 10 | -------------------------------------------------------------------------------- /tcl/interface/stlink-v2-1.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # STMicroelectronics ST-LINK/V2-1 in-circuit debugger/programmer 3 | # 4 | 5 | interface hla 6 | hla_layout stlink 7 | hla_device_desc "ST-LINK/V2-1" 8 | hla_vid_pid 0x0483 0x374b 9 | 10 | # Optionally specify the serial number of ST-LINK/V2 usb device. ST-LINK/V2 11 | # devices seem to have serial numbers with unreadable characters. ST-LINK/V2 12 | # firmware version >= V2.J21.S4 recommended to avoid issues with adapter serial 13 | # number reset issues. 14 | # eg. 15 | #hla_serial "\xaa\xbc\x6e\x06\x50\x75\xff\x55\x17\x42\x19\x3f" 16 | 17 | -------------------------------------------------------------------------------- /tcl/interface/stlink-v2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # STMicroelectronics ST-LINK/V2 in-circuit debugger/programmer 3 | # 4 | 5 | interface hla 6 | hla_layout stlink 7 | hla_device_desc "ST-LINK/V2" 8 | hla_vid_pid 0x0483 0x3748 9 | 10 | # Optionally specify the serial number of ST-LINK/V2 usb device. ST-LINK/V2 11 | # devices seem to have serial numbers with unreadable characters. ST-LINK/V2 12 | # firmware version >= V2.J21.S4 recommended to avoid issues with adapter serial 13 | # number reset issues. 14 | # eg. 15 | #hla_serial "\xaa\xbc\x6e\x06\x50\x75\xff\x55\x17\x42\x19\x3f" 16 | 17 | -------------------------------------------------------------------------------- /tcl/interface/stm32-stick.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Hitex STM32-PerformanceStick 3 | # 4 | # http://www.hitex.com/index.php?id=340 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "STM32-PerformanceStick" 9 | ft2232_layout stm32stick 10 | ft2232_vid_pid 0x0640 0x002d 11 | 12 | -------------------------------------------------------------------------------- /tcl/interface/sysfsgpio-raspberrypi.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Config for using RaspberryPi's expansion header 3 | # 4 | # This is best used with a fast enough buffer but also 5 | # is suitable for direct connection if the target voltage 6 | # matches RPi's 3.3V 7 | # 8 | # Do not forget the GND connection, pin 6 of the expansion header. 9 | # 10 | 11 | interface sysfsgpio 12 | 13 | # Each of the JTAG lines need a gpio number set: tck tms tdi tdo 14 | # Header pin numbers: 23 22 19 21 15 | sysfsgpio_jtag_nums 11 25 10 9 16 | 17 | # At least one of srst or trst needs to be specified 18 | # Header pin numbers: TRST - 26, SRST - 18 19 | sysfsgpio_trst_num 7 20 | # sysfsgpio_srst_num 24 21 | 22 | -------------------------------------------------------------------------------- /tcl/interface/ti-icdi.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # TI Stellaris In-Circuit Debug Interface (ICDI) Board 3 | # 4 | # This is the propriety ICDI interface used on newer boards such as 5 | # LM4F232 Evaluation Kit - http://www.ti.com/tool/ek-lm4f232 6 | # Stellaris Launchpad - http://www.ti.com/stellaris-launchpad 7 | # http://www.ti.com/tool/ek-lm4f232 8 | # 9 | 10 | interface hla 11 | hla_layout ti-icdi 12 | hla_vid_pid 0x1cbe 0x00fd 13 | 14 | -------------------------------------------------------------------------------- /tcl/interface/turtelizer2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # egnite Turtelizer 2 3 | # 4 | # http://www.ethernut.de/en/hardware/turtelizer/index.html 5 | # 6 | # Deprecated, if possible use tcl/interface/ftdi/turtelizer... 7 | # To run, one of following configure option needed 8 | # --enable-legacy-ft2232_libftdi 9 | # --enable-legacy-ft2232_ftd2xx 10 | 11 | interface ft2232 12 | ft2232_device_desc "Turtelizer JTAG/RS232 Adapter" 13 | ft2232_layout turtelizer2 14 | ft2232_vid_pid 0x0403 0xbdc8 15 | 16 | -------------------------------------------------------------------------------- /tcl/interface/ulink.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Keil ULINK running OpenULINK firmware. 3 | # 4 | # http://www.keil.com/ulink1/ 5 | # http://article.gmane.org/gmane.comp.debugging.openocd.devel/17362 6 | # 7 | 8 | interface ulink 9 | -------------------------------------------------------------------------------- /tcl/interface/usb-jtag.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Kolja Waschk's USB-JTAG 3 | # 4 | # http://www.ixo.de/info/usb_jtag/ 5 | # 6 | 7 | interface usb_blaster 8 | usb_blaster_vid_pid 0x16C0 0x06AD 9 | usb_blaster_device_desc "USB-JTAG-IF" 10 | -------------------------------------------------------------------------------- /tcl/interface/usbprog.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Embedded Projects USBprog 3 | # 4 | # http://embedded-projects.net/index.php?page_id=135 5 | # 6 | 7 | interface usbprog 8 | # USBprog is broken w/short TMS sequences, this is a workaround 9 | # until the C code can be fixed. 10 | tms_sequence long 11 | -------------------------------------------------------------------------------- /tcl/interface/vpaclink.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Voipac VPACLink 3 | # 4 | # http://voipac.com/27M-JTG-000 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "VPACLink A" 9 | ft2232_layout oocdlink 10 | ft2232_vid_pid 0x0403 0x6010 11 | -------------------------------------------------------------------------------- /tcl/interface/vsllink.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Versaloon Link -- VSLLink 3 | # 4 | # http://www.versaloon.com/ 5 | # 6 | 7 | interface vsllink 8 | 9 | -------------------------------------------------------------------------------- /tcl/interface/xds100v2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Texas Instruments XDS100v2 3 | # 4 | # http://processors.wiki.ti.com/index.php/XDS100#XDS100v2_Features 5 | # 6 | 7 | interface ft2232 8 | ft2232_device_desc "Texas Instruments Inc.XDS100 Ver 2.0" 9 | ft2232_layout xds100v2 10 | ft2232_vid_pid 0x0403 0xa6d0 11 | -------------------------------------------------------------------------------- /tcl/mem_helper.tcl: -------------------------------------------------------------------------------- 1 | # Helper for common memory read/modify/write procedures 2 | 3 | # mrw: "memory read word", returns value of $reg 4 | proc mrw {reg} { 5 | set value "" 6 | mem2array value 32 $reg 1 7 | return $value(0) 8 | } 9 | 10 | add_usage_text mrw "address" 11 | add_help_text mrw "Returns value of word in memory." 12 | 13 | # mmw: "memory modify word", updates value of $reg 14 | # $reg <== ((value & ~$clearbits) | $setbits) 15 | proc mmw {reg setbits clearbits} { 16 | set old [mrw $reg] 17 | set new [expr ($old & ~$clearbits) | $setbits] 18 | mww $reg $new 19 | } 20 | 21 | add_usage_text mmw "address setbits clearbits" 22 | add_help_text mmw "Modify word in memory. new_val = (old_val & ~clearbits) | setbits;" 23 | -------------------------------------------------------------------------------- /tcl/target/alphascale_asm9260t.cfg: -------------------------------------------------------------------------------- 1 | if { [info exists CHIPNAME] } { 2 | set _CHIPNAME $_CHIPNAME 3 | } else { 4 | set _CHIPNAME asm9260t 5 | } 6 | 7 | if { [info exists ENDIAN] } { 8 | set _ENDIAN $ENDIAN 9 | } else { 10 | set _ENDIAN little 11 | } 12 | 13 | if { [info exists CPUTAPID] } { 14 | set _CPUTAPID $CPUTAPID 15 | } else { 16 | set _CPUTAPID 0x079264F3 17 | } 18 | 19 | # And srst_pulls_trst by chip design. 20 | reset_config srst_pulls_trst 21 | 22 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 23 | 24 | set _TARGETNAME $_CHIPNAME.cpu 25 | target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME 26 | -------------------------------------------------------------------------------- /tcl/target/armada370.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # armada370 -- support for the Marvell Armada/370 CPU family 3 | # 4 | # gerg@uclinux.org, OCT-2013 5 | # 6 | 7 | if { [info exists CHIPNAME] } { 8 | set _CHIPNAME $CHIPNAME 9 | } else { 10 | set _CHIPNAME armada370 11 | } 12 | 13 | if { [info exists CPUTAPID] } { 14 | set _CPUTAPID $CPUTAPID 15 | } else { 16 | set _CPUTAPID 0x4ba00477 17 | } 18 | 19 | jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 20 | 21 | set _TARGETNAME $_CHIPNAME.cpu 22 | target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap 23 | 24 | proc armada370_dbginit {target} { 25 | cortex_a dbginit 26 | } 27 | 28 | $_TARGETNAME configure -event reset-assert-post "armada370_dbginit $_TARGETNAME" 29 | 30 | # We need to init now, so we can run the apsel command. 31 | init 32 | dap apsel 1 33 | 34 | -------------------------------------------------------------------------------- /tcl/target/at32ap7000.cfg: -------------------------------------------------------------------------------- 1 | # Atmel AT32AP7000 2 | # 3 | # This is the only core in the now-inactive high end AVR32 product line, 4 | # with MMU, Java Acceleration, and "pixel coprocessor". The AP7 line 5 | # is for "Application Processors" (AP) with 7-stage pipelines. 6 | # 7 | # Most current AVR32 parts are in the UC3 flash based microcontroller (UC) 8 | # product line with 3-stage pipelines and without those extras. 9 | # 10 | # All AVR32 parts provide the Nexus Class 3 on-chip debug interfaces 11 | # through their JTAG interfaces. 12 | 13 | jtag newtap ap7 nexus -irlen 5 -expected-id 0x21e8203f 14 | 15 | # REVISIT declare an avr32 target ... needs OpenOCD infrastructure 16 | # for both Nexus (generic) and AVR32 (Atmel-specific). 17 | -------------------------------------------------------------------------------- /tcl/target/at91r40008.cfg: -------------------------------------------------------------------------------- 1 | # AT91R40008 target configuration file 2 | 3 | # TRST is tied to SRST on the AT91X40 family. 4 | reset_config srst_only srst_pulls_trst 5 | 6 | 7 | if {[info exists CHIPNAME]} { 8 | set _CHIPNAME $CHIPNAME 9 | } else { 10 | set _CHIPNAME at91r40008 11 | } 12 | 13 | if { [info exists ENDIAN] } { 14 | set _ENDIAN $ENDIAN 15 | } else { 16 | set _ENDIAN little 17 | } 18 | 19 | # Setup the JTAG scan chain. 20 | if { [info exists CPUTAPID] } { 21 | set _CPUTAPID $CPUTAPID 22 | } else { 23 | set _CPUTAPID 0x1f0f0f0f 24 | } 25 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 26 | 27 | set _TARGETNAME $_CHIPNAME.cpu 28 | target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME 29 | $_TARGETNAME configure -work-area-phys 0x20000 -work-area-size 0x20000 -work-area-backup 0 30 | -------------------------------------------------------------------------------- /tcl/target/at91sam3ax_4x.cfg: -------------------------------------------------------------------------------- 1 | # common stuff 2 | source [find target/at91sam3ax_xx.cfg] 3 | 4 | # size is automatically "calculated" by probing 5 | set _FLASHNAME $_CHIPNAME.flash0 6 | flash bank $_FLASHNAME at91sam3 0x000080000 0 1 1 $_TARGETNAME 7 | # This is a 256K chip - it has the 2nd bank 8 | set _FLASHNAME $_CHIPNAME.flash1 9 | flash bank $_FLASHNAME at91sam3 0x0000A0000 0 1 1 $_TARGETNAME 10 | -------------------------------------------------------------------------------- /tcl/target/at91sam3ax_8x.cfg: -------------------------------------------------------------------------------- 1 | # common stuff 2 | source [find target/at91sam3ax_xx.cfg] 3 | 4 | # size is automatically "calculated" by probing 5 | set _FLASHNAME $_CHIPNAME.flash0 6 | flash bank $_FLASHNAME at91sam3 0x000080000 0 1 1 $_TARGETNAME 7 | # This is a 512K chip - it has the 2nd bank 8 | set _FLASHNAME $_CHIPNAME.flash1 9 | flash bank $_FLASHNAME at91sam3 0x0000C0000 0 1 1 $_TARGETNAME 10 | 11 | 12 | -------------------------------------------------------------------------------- /tcl/target/at91sam3ax_xx.cfg: -------------------------------------------------------------------------------- 1 | # script for ATMEL sam3, a CORTEX-M3 chip 2 | # 3 | # at91sam3A4C 4 | # at91sam3A8C 5 | # at91sam3X4C 6 | # at91sam3X4E 7 | # at91sam3X8C 8 | # at91sam3X8E 9 | # at91sam3X8H 10 | source [find target/at91sam3XXX.cfg] 11 | 12 | -------------------------------------------------------------------------------- /tcl/target/at91sam3nXX.cfg: -------------------------------------------------------------------------------- 1 | 2 | # 3 | # Configuration for Atmel's SAM3N series 4 | # 5 | 6 | source [find target/swj-dp.tcl] 7 | 8 | if { [info exists CHIPNAME] } { 9 | set _CHIPNAME $CHIPNAME 10 | } else { 11 | set _CHIPNAME at91sam3n 12 | } 13 | 14 | if { [info exists CPUTAPID] } { 15 | set _CPUTAPID $CPUTAPID 16 | } else { 17 | set _CPUTAPID 0x4ba00477 18 | } 19 | 20 | swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 21 | 22 | set _TARGETNAME $_CHIPNAME.cpu 23 | target create $_TARGETNAME cortex_m -endian little -chain-position $_TARGETNAME 24 | 25 | set _FLASHNAME $_CHIPNAME.flash 26 | flash bank flash0 at91sam3 0x00400000 0 0 0 $_TARGETNAME 27 | 28 | if {![using_hla]} { 29 | # if srst is not fitted use SYSRESETREQ to 30 | # perform a soft reset 31 | cortex_m reset_config sysresetreq 32 | } 33 | -------------------------------------------------------------------------------- /tcl/target/at91sam3sXX.cfg: -------------------------------------------------------------------------------- 1 | # script for ATMEL sam3, a CORTEX-M3 chip 2 | # 3 | # at91sam3s4c 4 | # at91sam3s4b 5 | # at91sam3s4a 6 | # at91sam3s2c 7 | # at91sam3s2b 8 | # at91sam3s2a 9 | # at91sam3s1c 10 | # at91sam3s1b 11 | # at91sam3s1a 12 | 13 | source [find target/at91sam3XXX.cfg] 14 | 15 | set _FLASHNAME $_CHIPNAME.flash 16 | flash bank $_FLASHNAME at91sam3 0x00400000 0 1 1 $_TARGETNAME 17 | -------------------------------------------------------------------------------- /tcl/target/at91sam3u1c.cfg: -------------------------------------------------------------------------------- 1 | # common stuff 2 | source [find target/at91sam3uxx.cfg] 3 | 4 | # size is automatically "calculated" by probing 5 | set _FLASHNAME $_CHIPNAME.flash 6 | flash bank $_FLASHNAME at91sam3 0x000080000 0 1 1 $_TARGETNAME 7 | 8 | 9 | -------------------------------------------------------------------------------- /tcl/target/at91sam3u1e.cfg: -------------------------------------------------------------------------------- 1 | # common stuff 2 | source [find target/at91sam3uxx.cfg] 3 | 4 | # size is automatically "calculated" by probing 5 | set _FLASHNAME $_CHIPNAME.flash 6 | flash bank $_FLASHNAME at91sam3 0x000080000 0 1 1 $_TARGETNAME 7 | 8 | 9 | -------------------------------------------------------------------------------- /tcl/target/at91sam3u2c.cfg: -------------------------------------------------------------------------------- 1 | # common stuff 2 | source [find target/at91sam3uxx.cfg] 3 | 4 | # size is automatically "calculated" by probing 5 | set _FLASHNAME $_CHIPNAME.flash 6 | flash bank $_FLASHNAME at91sam3 0x000080000 0 1 1 $_TARGETNAME 7 | 8 | 9 | -------------------------------------------------------------------------------- /tcl/target/at91sam3u2e.cfg: -------------------------------------------------------------------------------- 1 | # common stuff 2 | source [find target/at91sam3uxx.cfg] 3 | 4 | # size is automatically "calculated" by probing 5 | set _FLASHNAME $_CHIPNAME.flash 6 | flash bank $_FLASHNAME at91sam3 0x000080000 0 1 1 $_TARGETNAME 7 | 8 | 9 | -------------------------------------------------------------------------------- /tcl/target/at91sam3u4c.cfg: -------------------------------------------------------------------------------- 1 | # common stuff 2 | source [find target/at91sam3uxx.cfg] 3 | 4 | # size is automatically "calculated" by probing 5 | set _FLASHNAME $_CHIPNAME.flash0 6 | flash bank $_FLASHNAME at91sam3 0x000080000 0 1 1 $_TARGETNAME 7 | # This is a 256K chip, it has the 2nd bank 8 | set _FLASHNAME $_CHIPNAME.flash1 9 | flash bank $_FLASHNAME at91sam3 0x000100000 0 1 1 $_TARGETNAME 10 | 11 | 12 | -------------------------------------------------------------------------------- /tcl/target/at91sam3u4e.cfg: -------------------------------------------------------------------------------- 1 | # common stuff 2 | source [find target/at91sam3uxx.cfg] 3 | 4 | # size is automatically "calculated" by probing 5 | set _FLASHNAME $_CHIPNAME.flash0 6 | flash bank $_FLASHNAME at91sam3 0x000080000 0 1 1 $_TARGETNAME 7 | # This is a 256K chip - it has the 2nd bank 8 | set _FLASHNAME $_CHIPNAME.flash1 9 | flash bank $_FLASHNAME at91sam3 0x000100000 0 1 1 $_TARGETNAME 10 | 11 | 12 | -------------------------------------------------------------------------------- /tcl/target/at91sam3uxx.cfg: -------------------------------------------------------------------------------- 1 | # script for ATMEL sam3, a CORTEX-M3 chip 2 | # 3 | # at91sam3u4e 4 | # at91sam3u2e 5 | # at91sam3u1e 6 | # at91sam3u4c 7 | # at91sam3u2c 8 | # at91sam3u1c 9 | 10 | source [find target/at91sam3XXX.cfg] 11 | 12 | -------------------------------------------------------------------------------- /tcl/target/at91sam4sXX.cfg: -------------------------------------------------------------------------------- 1 | # script for ATMEL sam4, a CORTEX-M4 chip 2 | # 3 | 4 | source [find target/at91sam4XXX.cfg] 5 | 6 | set _FLASHNAME $_CHIPNAME.flash 7 | flash bank $_FLASHNAME at91sam4 0x00400000 0 1 1 $_TARGETNAME 8 | -------------------------------------------------------------------------------- /tcl/target/at91sam4sd32x.cfg: -------------------------------------------------------------------------------- 1 | # script for ATMEL sam4sd32, a CORTEX-M4 chip 2 | # 3 | 4 | source [find target/at91sam4XXX.cfg] 5 | 6 | set _FLASHNAME $_CHIPNAME.flash0 7 | flash bank $_FLASHNAME at91sam4 0x00400000 0 1 1 $_TARGETNAME 8 | set _FLASHNAME $_CHIPNAME.flash1 9 | flash bank $_FLASHNAME at91sam4 0x00500000 0 1 1 $_TARGETNAME 10 | -------------------------------------------------------------------------------- /tcl/target/at91sam7a2.cfg: -------------------------------------------------------------------------------- 1 | 2 | if { [info exists CHIPNAME] } { 3 | set _CHIPNAME $CHIPNAME 4 | } else { 5 | set _CHIPNAME at91sam7a2 6 | } 7 | 8 | if { [info exists ENDIAN] } { 9 | set _ENDIAN $ENDIAN 10 | } else { 11 | set _ENDIAN little 12 | } 13 | 14 | if { [info exists CPUTAPID] } { 15 | set _CPUTAPID $CPUTAPID 16 | } else { 17 | set _CPUTAPID 0x1f0f0f0f 18 | } 19 | 20 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 21 | set _TARGETNAME $_CHIPNAME.cpu 22 | 23 | target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME 24 | -------------------------------------------------------------------------------- /tcl/target/at91sam9260.cfg: -------------------------------------------------------------------------------- 1 | ###################################### 2 | # Target: Atmel AT91SAM9260 3 | ###################################### 4 | 5 | if { [info exists CHIPNAME] } { 6 | set AT91_CHIPNAME $CHIPNAME 7 | } else { 8 | set AT91_CHIPNAME at91sam9260 9 | } 10 | 11 | source [find target/at91sam9.cfg] 12 | 13 | 14 | # Establish internal SRAM memory work areas that are important to pre-bootstrap loaders, etc. The 15 | # AT91SAM9260 has two SRAM areas, one starting at 0x00200000 and the other starting at 0x00300000. 16 | # Both areas are 4 kB long. 17 | 18 | #$_TARGETNAME configure -work-area-phys 0x00200000 -work-area-size 0x1000 -work-area-backup 1 19 | $_TARGETNAME configure -work-area-phys 0x00300000 -work-area-size 0x1000 -work-area-backup 1 20 | -------------------------------------------------------------------------------- /tcl/target/at91sam9261.cfg: -------------------------------------------------------------------------------- 1 | ###################################### 2 | # Target: Atmel AT91SAM9261 3 | ###################################### 4 | 5 | if { [info exists CHIPNAME] } { 6 | set AT91_CHIPNAME $CHIPNAME 7 | } else { 8 | set AT91_CHIPNAME at91sam9261 9 | } 10 | 11 | source [find target/at91sam9.cfg] 12 | 13 | # Internal sram1 memory 14 | $_TARGETNAME configure -work-area-phys 0x00300000 -work-area-size 0x28000 -work-area-backup 1 15 | -------------------------------------------------------------------------------- /tcl/target/at91sam9263.cfg: -------------------------------------------------------------------------------- 1 | ###################################### 2 | # Target: Atmel AT91SAM9263 3 | ###################################### 4 | 5 | if { [info exists CHIPNAME] } { 6 | set AT91_CHIPNAME $CHIPNAME 7 | } else { 8 | set AT91_CHIPNAME at91sam9263 9 | } 10 | 11 | source [find target/at91sam9.cfg] 12 | 13 | # Establish internal SRAM memory work areas that are important to pre-bootstrap loaders, etc. The 14 | # AT91SAM9263 has two SRAM areas, 15 | # one starting at 0x00300000 of 80KiB 16 | # and the other starting at 0x00500000 of 16KiB. 17 | 18 | # Internal sram1 memory 19 | $_TARGETNAME configure -work-area-phys 0x00300000 -work-area-size 0x14000 -work-area-backup 1 20 | #$_TARGETNAME configure -work-area-phys 0x00500000 -work-area-size 0x4000 -work-area-backup 1 21 | -------------------------------------------------------------------------------- /tcl/target/at91sam9g10.cfg: -------------------------------------------------------------------------------- 1 | ###################################### 2 | # Target: Atmel AT91SAM9G10 3 | ###################################### 4 | 5 | if { [info exists CHIPNAME] } { 6 | set AT91_CHIPNAME $CHIPNAME 7 | } else { 8 | set AT91_CHIPNAME at91sam9g10 9 | } 10 | 11 | source [find target/at91sam9.cfg] 12 | 13 | # Establish internal SRAM memory work areas that are important to pre-bootstrap loaders, etc. The 14 | # AT91SAM9G10 has one SRAM area at 0x00300000 of 16KiB 15 | 16 | $_TARGETNAME configure -work-area-phys 0x00300000 -work-area-size 0x4000 -work-area-backup 1 17 | -------------------------------------------------------------------------------- /tcl/target/at91sam9g45.cfg: -------------------------------------------------------------------------------- 1 | ###################################### 2 | # Target: Atmel AT91SAM9G45 3 | ###################################### 4 | 5 | if { [info exists CHIPNAME] } { 6 | set AT91_CHIPNAME $CHIPNAME 7 | } else { 8 | set AT91_CHIPNAME at91sam9g45 9 | } 10 | 11 | source [find target/at91sam9.cfg] 12 | 13 | # Establish internal SRAM memory work areas that are important to pre-bootstrap loaders, etc. The 14 | # AT91SAM9G45 has one SRAM area starting at 0x00300000 of 64 KiB. 15 | 16 | $_TARGETNAME configure -work-area-phys 0x00300000 -work-area-size 0x200000 -work-area-backup 1 17 | -------------------------------------------------------------------------------- /tcl/target/at91sam9rl.cfg: -------------------------------------------------------------------------------- 1 | ###################################### 2 | # Target: Atmel AT91SAM9RL 3 | ###################################### 4 | 5 | if { [info exists CHIPNAME] } { 6 | set AT91_CHIPNAME $CHIPNAME 7 | } else { 8 | set AT91_CHIPNAME at91sam9rl 9 | } 10 | 11 | source [find target/at91sam9.cfg] 12 | 13 | # Internal sram1 memory 14 | $_TARGETNAME configure -work-area-phys 0x00300000 -work-area-size 0x10000 -work-area-backup 1 15 | -------------------------------------------------------------------------------- /tcl/target/at91samg5x.cfg: -------------------------------------------------------------------------------- 1 | # script for the ATMEL samg5x CORTEX-M4F chip family 2 | # 3 | 4 | source [find target/at91sam4XXX.cfg] 5 | 6 | set _FLASHNAME $_CHIPNAME.flash 7 | flash bank $_FLASHNAME at91sam4 0x00400000 0 1 1 $_TARGETNAME 8 | -------------------------------------------------------------------------------- /tcl/target/atheros_ar9331.cfg: -------------------------------------------------------------------------------- 1 | if { [info exists CHIPNAME] } { 2 | set _CHIPNAME $_CHIPNAME 3 | } else { 4 | set _CHIPNAME ar9331 5 | } 6 | 7 | if { [info exists CPUTAPID] } { 8 | set _CPUTAPID $CPUTAPID 9 | } else { 10 | set _CPUTAPID 0x00000001 11 | } 12 | 13 | jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID 14 | 15 | set TARGETNAME $_CHIPNAME.cpu 16 | target create $TARGETNAME mips_m4k -endian big -chain-position $TARGETNAME 17 | -------------------------------------------------------------------------------- /tcl/target/avr32.cfg: -------------------------------------------------------------------------------- 1 | set _CHIPNAME avr32 2 | set _ENDIAN big 3 | 4 | set _CPUTAPID 0x21e8203f 5 | 6 | adapter_nsrst_delay 100 7 | jtag_ntrst_delay 100 8 | 9 | reset_config trst_and_srst separate 10 | 11 | # jtag scan chain 12 | # format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) 13 | jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_CPUTAPID 14 | 15 | set _TARGETNAME [format "%s.cpu" $_CHIPNAME] 16 | target create $_TARGETNAME avr32_ap7k -endian $_ENDIAN -chain-position $_TARGETNAME 17 | 18 | -------------------------------------------------------------------------------- /tcl/target/bcm4706.cfg: -------------------------------------------------------------------------------- 1 | set _CHIPNAME bcm4706 2 | set _CPUID 0x1008c17f 3 | 4 | jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUID 5 | 6 | set _TARGETNAME $_CHIPNAME.cpu 7 | target create $_TARGETNAME mips_m4k -endian little -chain-position $_TARGETNAME 8 | -------------------------------------------------------------------------------- /tcl/target/bcm4718.cfg: -------------------------------------------------------------------------------- 1 | set _CHIPNAME bcm4718 2 | set _LVTAPID 0x1471617f 3 | set _CPUID 0x0008c17f 4 | 5 | source [find target/bcm47xx.cfg] 6 | -------------------------------------------------------------------------------- /tcl/target/bcm5352e.cfg: -------------------------------------------------------------------------------- 1 | set _CHIPNAME bcm5352e 2 | set _CPUID 0x0535217f 3 | 4 | jtag newtap $_CHIPNAME cpu -irlen 8 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUID 5 | 6 | set _TARGETNAME $_CHIPNAME.cpu 7 | target create $_TARGETNAME mips_m4k -endian little -chain-position $_TARGETNAME 8 | -------------------------------------------------------------------------------- /tcl/target/bcm6348.cfg: -------------------------------------------------------------------------------- 1 | set _CHIPNAME bcm6348 2 | set _CPUID 0x0634817f 3 | 4 | adapter_khz 1000 5 | 6 | jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUID 7 | 8 | set _TARGETNAME $_CHIPNAME.cpu 9 | target create $_TARGETNAME mips_m4k -endian big -chain-position $_TARGETNAME 10 | -------------------------------------------------------------------------------- /tcl/target/cc2538.cfg: -------------------------------------------------------------------------------- 1 | # Config for Texas Instruments low power RF SoC CC2538 2 | # http://www.ti.com/lit/pdf/swru319 3 | 4 | if { [info exists CHIPNAME] } { 5 | set CHIPNAME $CHIPNAME 6 | } else { 7 | set CHIPNAME cc2538 8 | } 9 | 10 | if { [info exists JRC_TAPID] } { 11 | set JRC_TAPID $JRC_TAPID 12 | } else { 13 | set JRC_TAPID 0x8B96402F 14 | } 15 | 16 | source [find target/cc26xx.cfg] 17 | -------------------------------------------------------------------------------- /tcl/target/dragonite.cfg: -------------------------------------------------------------------------------- 1 | ###################################### 2 | # Target: Marvell Dragonite CPU core 3 | ###################################### 4 | 5 | if { [info exists CHIPNAME] } { 6 | set _CHIPNAME $CHIPNAME 7 | } else { 8 | set _CHIPNAME dragonite 9 | } 10 | 11 | if { [info exists ENDIAN] } { 12 | set _ENDIAN $ENDIAN 13 | } else { 14 | set _ENDIAN little 15 | } 16 | 17 | if { [info exists CPUTAPID] } { 18 | set _CPUTAPID $CPUTAPID 19 | } else { 20 | set _CPUTAPID 0x121003d3 21 | } 22 | 23 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 24 | 25 | set _TARGETNAME $_CHIPNAME.cpu 26 | target create $_TARGETNAME dragonite -endian $_ENDIAN -chain-position $_TARGETNAME 27 | 28 | reset_config trst_and_srst 29 | adapter_nsrst_delay 200 30 | jtag_ntrst_delay 200 31 | 32 | -------------------------------------------------------------------------------- /tcl/target/efm32_stlink.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: target/efm32_stlink.cfg is deprecated, please switch to target/efm32.cfg" 2 | source [find target/efm32.cfg] 3 | -------------------------------------------------------------------------------- /tcl/target/em358.cfg: -------------------------------------------------------------------------------- 1 | # Target configuration for the Silicon Labs EM358 chips 2 | 3 | # 4 | # em357 family supports JTAG and SWD transports 5 | # 6 | 7 | if { ![info exists CHIPNAME] } { 8 | set CHIPNAME em358 9 | } 10 | 11 | if { ![info exists BSTAPID] } { 12 | set BSTAPID 0x069aa62b 13 | } 14 | 15 | # 512K of flash in the em358 chips 16 | set FLASHSIZE 0x80000 17 | source [find target/em357.cfg] 18 | -------------------------------------------------------------------------------- /tcl/target/faux.cfg: -------------------------------------------------------------------------------- 1 | #Script for faux target - used for testing 2 | 3 | if { [info exists CHIPNAME] } { 4 | set _CHIPNAME $CHIPNAME 5 | } else { 6 | set _CHIPNAME at91eb40a 7 | } 8 | 9 | if { [info exists ENDIAN] } { 10 | set _ENDIAN $ENDIAN 11 | } else { 12 | set _ENDIAN little 13 | } 14 | 15 | if { [info exists CPUTAPID] } { 16 | set _CPUTAPID $CPUTAPID 17 | } else { 18 | set _CPUTAPID 0x00000000 19 | } 20 | 21 | 22 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 23 | 24 | #target configuration 25 | set _TARGETNAME $_CHIPNAME.cpu 26 | target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME 27 | 28 | #dummy flash driver 29 | set _FLASHNAME $_CHIPNAME.flash 30 | flash bank $_FLASHNAME faux 0x01000000 0x200000 2 2 $_TARGETNAME 31 | -------------------------------------------------------------------------------- /tcl/target/feroceon.cfg: -------------------------------------------------------------------------------- 1 | ###################################### 2 | # Target: Marvell Feroceon CPU core 3 | ###################################### 4 | 5 | if { [info exists CHIPNAME] } { 6 | set _CHIPNAME $CHIPNAME 7 | } else { 8 | set _CHIPNAME feroceon 9 | } 10 | 11 | if { [info exists ENDIAN] } { 12 | set _ENDIAN $ENDIAN 13 | } else { 14 | set _ENDIAN little 15 | } 16 | 17 | if { [info exists CPUTAPID] } { 18 | set _CPUTAPID $CPUTAPID 19 | } else { 20 | set _CPUTAPID 0x20a023d3 21 | } 22 | 23 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 24 | 25 | set _TARGETNAME $_CHIPNAME.cpu 26 | target create $_TARGETNAME feroceon -endian $_ENDIAN -chain-position $_TARGETNAME 27 | 28 | reset_config trst_and_srst 29 | adapter_nsrst_delay 200 30 | jtag_ntrst_delay 200 31 | 32 | -------------------------------------------------------------------------------- /tcl/target/fm4.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Spansion FM4 (ARM Cortex-M4) 3 | # 4 | 5 | if { [info exists CHIPNAME] } { 6 | set _CHIPNAME $CHIPNAME 7 | } else { 8 | set _CHIPNAME fm4 9 | } 10 | 11 | source [find target/swj-dp.tcl] 12 | 13 | if { [info exists CPUTAPID] } { 14 | set _CPU_TAPID $CPUTAPID 15 | } else { 16 | set _CPU_TAPID 0x2ba01477 17 | } 18 | 19 | swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_TAPID 20 | 21 | set _TARGETNAME $_CHIPNAME.cpu 22 | target create $_TARGETNAME cortex_m -endian little -chain-position $_TARGETNAME 23 | 24 | adapter_khz 500 25 | 26 | if {![using_hla]} { 27 | cortex_m reset_config sysresetreq 28 | } 29 | -------------------------------------------------------------------------------- /tcl/target/k40.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Freescale Kinetis K40 devices 3 | # 4 | 5 | set CHIPNAME k40 6 | source [find target/kx.cfg] 7 | -------------------------------------------------------------------------------- /tcl/target/k60.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Freescale Kinetis K60 devices 3 | # 4 | 5 | set CHIPNAME k60 6 | source [find target/kx.cfg] 7 | -------------------------------------------------------------------------------- /tcl/target/kl25.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Freescale Kinetis KL25 devices 3 | # 4 | 5 | set CHIPNAME kl25 6 | source [find target/klx.cfg] 7 | -------------------------------------------------------------------------------- /tcl/target/kl25z_hla.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: target/kl25z_hla.cfg is deprecated, please switch to target/kl25.cfg" 2 | source [find target/kl25.cfg] 3 | -------------------------------------------------------------------------------- /tcl/target/kl46.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Freescale Kinetis KL46 devices 3 | # 4 | 5 | set CHIPNAME kl46 6 | source [find target/klx.cfg] 7 | -------------------------------------------------------------------------------- /tcl/target/lpc11xx.cfg: -------------------------------------------------------------------------------- 1 | # NXP LPC11xx Cortex-M0 with at least 1kB SRAM 2 | set CHIPNAME lpc11xx 3 | set CHIPSERIES lpc1100 4 | if { ![info exists WORKAREASIZE] } { 5 | set WORKAREASIZE 0x400 6 | } 7 | 8 | source [find target/lpc1xxx.cfg] 9 | -------------------------------------------------------------------------------- /tcl/target/lpc12xx.cfg: -------------------------------------------------------------------------------- 1 | # NXP LPC12xx Cortex-M0 with at least 4kB SRAM 2 | set CHIPNAME lpc12xx 3 | set CHIPSERIES lpc1200 4 | if { ![info exists WORKAREASIZE] } { 5 | set WORKAREASIZE 0x1000 6 | } 7 | 8 | source [find target/lpc1xxx.cfg] 9 | -------------------------------------------------------------------------------- /tcl/target/lpc13xx.cfg: -------------------------------------------------------------------------------- 1 | # NXP LPC13xx Cortex-M3 with at least 4kB SRAM 2 | set CHIPNAME lpc13xx 3 | set CHIPSERIES lpc1300 4 | if { ![info exists WORKAREASIZE] } { 5 | set WORKAREASIZE 0x1000 6 | } 7 | 8 | source [find target/lpc1xxx.cfg] 9 | -------------------------------------------------------------------------------- /tcl/target/lpc17xx.cfg: -------------------------------------------------------------------------------- 1 | # NXP LPC17xx Cortex-M3 with at least 8kB SRAM 2 | set CHIPNAME lpc17xx 3 | set CHIPSERIES lpc1700 4 | if { ![info exists WORKAREASIZE] } { 5 | set WORKAREASIZE 0x2000 6 | } 7 | 8 | source [find target/lpc1xxx.cfg] 9 | -------------------------------------------------------------------------------- /tcl/target/lpc1850.cfg: -------------------------------------------------------------------------------- 1 | source [find target/swj-dp.tcl] 2 | 3 | adapter_khz 500 4 | 5 | if { [info exists CHIPNAME] } { 6 | set _CHIPNAME $CHIPNAME 7 | } else { 8 | set _CHIPNAME lpc1850 9 | } 10 | 11 | if { [info exists ENDIAN] } { 12 | set _ENDIAN $ENDIAN 13 | } else { 14 | set _ENDIAN little 15 | } 16 | # 17 | # M3 JTAG mode TAP 18 | # 19 | if { [info exists M3_JTAG_TAPID] } { 20 | set _M3_JTAG_TAPID $M3_JTAG_TAPID 21 | } else { 22 | set _M3_JTAG_TAPID 0x4ba00477 23 | } 24 | 25 | swj_newdap $_CHIPNAME m3 -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M3_JTAG_TAPID 26 | 27 | set _TARGETNAME $_CHIPNAME.m3 28 | target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position $_TARGETNAME 29 | 30 | if {![using_hla]} { 31 | # if srst is not fitted use SYSRESETREQ to 32 | # perform a soft reset 33 | cortex_m reset_config sysresetreq 34 | } 35 | -------------------------------------------------------------------------------- /tcl/target/lpc40xx.cfg: -------------------------------------------------------------------------------- 1 | # NXP LPC40xx Cortex-M4F with at least 16kB SRAM 2 | set CHIPNAME lpc40xx 3 | set CHIPSERIES lpc4000 4 | if { ![info exists WORKAREASIZE] } { 5 | set WORKAREASIZE 0x4000 6 | } 7 | 8 | source [find target/lpc1xxx.cfg] 9 | -------------------------------------------------------------------------------- /tcl/target/lpc8xx.cfg: -------------------------------------------------------------------------------- 1 | # NXP LPC8xx Cortex-M0+ with at least 1kB SRAM 2 | set CHIPNAME lpc8xx 3 | set CHIPSERIES lpc800 4 | if { ![info exists WORKAREASIZE] } { 5 | set WORKAREASIZE 0x400 6 | } 7 | 8 | source [find target/lpc1xxx.cfg] 9 | -------------------------------------------------------------------------------- /tcl/target/nds32v2.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Andes Core 3 | # 4 | # http://www.andestech.com 5 | # 6 | 7 | jtag newtap $_CHIPNAME cpu -expected-id $_CPUTAPID 8 | 9 | set _TARGETNAME $_CHIPNAME.cpu 10 | target create $_TARGETNAME nds32_v2 -endian little -chain-position $_TARGETNAME 11 | -------------------------------------------------------------------------------- /tcl/target/nds32v3.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Andes Core 3 | # 4 | # http://www.andestech.com 5 | # 6 | 7 | jtag newtap $_CHIPNAME cpu -expected-id $_CPUTAPID 8 | 9 | set _TARGETNAME $_CHIPNAME.cpu 10 | target create $_TARGETNAME nds32_v3 -endian little -chain-position $_TARGETNAME 11 | -------------------------------------------------------------------------------- /tcl/target/nds32v3m.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Andes Core 3 | # 4 | # http://www.andestech.com 5 | # 6 | 7 | jtag newtap $_CHIPNAME cpu -expected-id $_CPUTAPID 8 | 9 | set _TARGETNAME $_CHIPNAME.cpu 10 | target create $_TARGETNAME nds32_v3m -endian little -chain-position $_TARGETNAME 11 | -------------------------------------------------------------------------------- /tcl/target/nrf51_stlink.tcl: -------------------------------------------------------------------------------- 1 | echo "WARNING: target/nrf51_stlink.cfg is deprecated, please switch to target/nrf51.cfg" 2 | source [find target/nrf51.cfg] 3 | -------------------------------------------------------------------------------- /tcl/target/nuc910.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Nuvoton nuc910 (previously W90P910) based soc 3 | # 4 | 5 | if { [info exists CHIPNAME] } { 6 | set _CHIPNAME $CHIPNAME 7 | } else { 8 | set _CHIPNAME nuc910 9 | } 10 | 11 | if { [info exists ENDIAN] } { 12 | set _ENDIAN $ENDIAN 13 | } else { 14 | set _ENDIAN little 15 | } 16 | 17 | if { [info exists CPUTAPID] } { 18 | set _CPUTAPID $CPUTAPID 19 | } else { 20 | # set useful default 21 | set _CPUTAPID 0x07926f0f 22 | } 23 | 24 | set _TARGETNAME $_CHIPNAME.cpu 25 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 26 | 27 | target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME 28 | -------------------------------------------------------------------------------- /tcl/target/samsung_s3c4510.cfg: -------------------------------------------------------------------------------- 1 | if { [info exists CHIPNAME] } { 2 | set _CHIPNAME $CHIPNAME 3 | } else { 4 | set _CHIPNAME s3c4510 5 | } 6 | 7 | if { [info exists ENDIAN] } { 8 | set _ENDIAN $ENDIAN 9 | } else { 10 | set _ENDIAN little 11 | } 12 | 13 | 14 | # This appears to be a "Version 1" arm7tdmi. 15 | if { [info exists CPUTAPID] } { 16 | set _CPUTAPID $CPUTAPID 17 | } else { 18 | set _CPUTAPID 0x1f0f0f0f 19 | } 20 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 21 | 22 | set _TARGETNAME $_CHIPNAME.cpu 23 | target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME 24 | 25 | -------------------------------------------------------------------------------- /tcl/target/sharp_lh79532.cfg: -------------------------------------------------------------------------------- 1 | reset_config srst_only srst_pulls_trst 2 | 3 | if { [info exists CHIPNAME] } { 4 | set _CHIPNAME $CHIPNAME 5 | } else { 6 | set _CHIPNAME lh79532 7 | } 8 | 9 | if { [info exists ENDIAN] } { 10 | set _ENDIAN $ENDIAN 11 | } else { 12 | set _ENDIAN little 13 | } 14 | 15 | if { [info exists CPUTAPID] } { 16 | set _CPUTAPID $CPUTAPID 17 | } else { 18 | # sharp changed the number! 19 | set _CPUTAPID 0x00002061 20 | } 21 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 22 | 23 | set _TARGETNAME $_CHIPNAME.cpu 24 | target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME 25 | 26 | 27 | -------------------------------------------------------------------------------- /tcl/target/smp8634.cfg: -------------------------------------------------------------------------------- 1 | # script for Sigma Designs SMP8634 (eventually even SMP8635) 2 | 3 | if { [info exists CHIPNAME] } { 4 | set _CHIPNAME $CHIPNAME 5 | } else { 6 | set _CHIPNAME smp8634 7 | } 8 | 9 | if { [info exists ENDIAN] } { 10 | set _ENDIAN $ENDIAN 11 | } else { 12 | set _ENDIAN little 13 | } 14 | 15 | if { [info exists CPUTAPID] } { 16 | set _CPUTAPID $CPUTAPID 17 | } else { 18 | set _CPUTAPID 0x08630001 19 | } 20 | 21 | adapter_nsrst_delay 100 22 | jtag_ntrst_delay 100 23 | 24 | reset_config trst_and_srst separate 25 | 26 | # jtag scan chain 27 | # format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) 28 | jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1 29 | 30 | set _TARGETNAME $_CHIPNAME.cpu 31 | target create $_TARGETNAME mips_m4k -endian $_ENDIAN 32 | -------------------------------------------------------------------------------- /tcl/target/stellaris_icdi.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: target/stellaris_icdi.cfg is deprecated, please switch to target/stellaris.cfg" 2 | source [find target/stellaris.cfg] 3 | -------------------------------------------------------------------------------- /tcl/target/stm32_stlink.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: stm32_stlink.cfg is deprecated (and does nothing, you can safely remove it.)" 2 | -------------------------------------------------------------------------------- /tcl/target/stm32f0x_stlink.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: target/stm32f0x_stlink.cfg is deprecated, please switch to target/stm32f0x.cfg" 2 | source [find target/stm32f0x.cfg] 3 | -------------------------------------------------------------------------------- /tcl/target/stm32f1x_stlink.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: target/stm32f1x_stlink.cfg is deprecated, please switch to target/stm32f1x.cfg" 2 | source [find target/stm32f1x.cfg] 3 | -------------------------------------------------------------------------------- /tcl/target/stm32f2x_stlink.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: target/stm32f2x_stlink.cfg is deprecated, please switch to target/stm32f2x.cfg" 2 | source [find target/stm32f2x.cfg] 3 | -------------------------------------------------------------------------------- /tcl/target/stm32f3x_stlink.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: target/stm32f3x_stlink.cfg is deprecated, please switch to target/stm32f3x.cfg" 2 | source [find target/stm32f3x.cfg] 3 | -------------------------------------------------------------------------------- /tcl/target/stm32f4x_stlink.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: target/stm32f4x_stlink.cfg is deprecated, please switch to target/stm32f4x.cfg" 2 | source [find target/stm32f4x.cfg] 3 | -------------------------------------------------------------------------------- /tcl/target/stm32l1x_dual_bank.cfg: -------------------------------------------------------------------------------- 1 | source [find target/stm32l1.cfg] 2 | 3 | # The stm32l1x 384kb have a dual bank flash. 4 | # Let's add a definition for the second bank here. 5 | 6 | # Add the second flash bank. 7 | set _FLASHNAME $_CHIPNAME.flash1 8 | flash bank $_FLASHNAME stm32lx 0 0 0 0 $_TARGETNAME 9 | -------------------------------------------------------------------------------- /tcl/target/stm32lx_stlink.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: target/stm32lx_stlink.cfg is deprecated, please switch to target/stm32l1.cfg" 2 | source [find target/stm32l1.cfg] 3 | -------------------------------------------------------------------------------- /tcl/target/stm32w108_stlink.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: target/stm32w108xx_stlink.cfg is deprecated, please switch to target/stm32w108xx.cfg" 2 | source [find target/stm32w108xx.cfg] 3 | -------------------------------------------------------------------------------- /tcl/target/stm32xl.cfg: -------------------------------------------------------------------------------- 1 | # script for stm32xl family (dual flash bank) 2 | source [find target/stm32f1x.cfg] 3 | 4 | # flash size will be probed 5 | set _FLASHNAME $_CHIPNAME.flash1 6 | flash bank $_FLASHNAME stm32f1x 0x08080000 0 0 0 $_TARGETNAME 7 | -------------------------------------------------------------------------------- /tcl/target/test_reset_syntax_error.cfg: -------------------------------------------------------------------------------- 1 | # Test script to check that syntax error in reset 2 | # script is reported properly. 3 | 4 | # at91eb40a target 5 | 6 | #jtag scan chain 7 | set _CHIPNAME syntaxtest 8 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf 9 | 10 | #target configuration 11 | set _TARGETNAME $_CHIPNAME.cpu 12 | target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME 13 | 14 | $_TARGETNAME configure -event reset-init { 15 | 16 | syntax error 17 | } 18 | -------------------------------------------------------------------------------- /tcl/target/test_syntax_error.cfg: -------------------------------------------------------------------------------- 1 | # This script tests a syntax error in the startup 2 | # config script 3 | 4 | syntax error here 5 | -------------------------------------------------------------------------------- /tcl/target/ti-ar7.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Texas Instruments AR7 SOC - used in many adsl modems. 3 | # http://www.linux-mips.org/wiki/AR7 4 | # 5 | 6 | if { [info exists CHIPNAME] } { 7 | set _CHIPNAME $CHIPNAME 8 | } else { 9 | set _CHIPNAME ti-ar7 10 | } 11 | 12 | if { [info exists ENDIAN] } { 13 | set _ENDIAN $ENDIAN 14 | } else { 15 | set _ENDIAN little 16 | } 17 | 18 | if { [info exists CPUTAPID] } { 19 | set _CPUTAPID $CPUTAPID 20 | } else { 21 | set _CPUTAPID 0x0000100f 22 | } 23 | 24 | jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID 25 | 26 | set _TARGETNAME $_CHIPNAME.cpu 27 | target create $_TARGETNAME mips_m4k -endian $_ENDIAN -chain-position $_CHIPNAME.cpu 28 | 29 | # use onboard 4k sram as working area 30 | $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 0x00001000 31 | -------------------------------------------------------------------------------- /tcl/target/ti_rm4x.cfg: -------------------------------------------------------------------------------- 1 | source [find target/ti_tms570.cfg] 2 | -------------------------------------------------------------------------------- /tcl/target/ti_tms570ls20xxx.cfg: -------------------------------------------------------------------------------- 1 | # TMS570LS20216, TMS570LS20206, TMS570LS10216 2 | # TMS570LS10206, TMS570LS10116, TMS570LS10106 3 | set DAP_TAPID 0x0B7B302F 4 | set JRC_TAPID 0x0B7B302F 5 | 6 | source [find target/ti_tms570.cfg] 7 | -------------------------------------------------------------------------------- /tcl/target/ti_tms570ls3137.cfg: -------------------------------------------------------------------------------- 1 | # TMS570LS3137 2 | set DAP_TAPID 0x0B8A002F 3 | set JRC_TAPID 0x0B8A002F 4 | 5 | source [find target/ti_tms570.cfg] 6 | -------------------------------------------------------------------------------- /tcl/target/xmc1xxx.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Infineon XMC1100/XMC1200/XMC1300 family (ARM Cortex-M0 @ 32 MHz) 3 | # 4 | 5 | if { [info exists CHIPNAME] } { 6 | set _CHIPNAME $CHIPNAME 7 | } else { 8 | set _CHIPNAME xmc1000 9 | } 10 | 11 | # 12 | # Only SWD and SPD supported 13 | # 14 | source [find target/swj-dp.tcl] 15 | 16 | if { [info exists CPUTAPID] } { 17 | set _CPU_SWD_TAPID $CPUTAPID 18 | } else { 19 | set _CPU_SWD_TAPID 0x0BB11477 20 | } 21 | 22 | swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_SWD_TAPID 23 | 24 | set _TARGETNAME $_CHIPNAME.cpu 25 | target create $_TARGETNAME cortex_m -endian little -chain-position $_TARGETNAME 26 | 27 | adapter_khz 1000 28 | -------------------------------------------------------------------------------- /tcl/test/selftest.cfg: -------------------------------------------------------------------------------- 1 | 2 | add_help_text selftest "run selftest using working ram
" 3 | 4 | proc selftest {tmpfile address size} { 5 | 6 | for {set i 0} {$i < $size } {set i [expr $i+4]} { 7 | mww [expr $address+$i] $i 8 | } 9 | 10 | for {set i 0} {$i < 10 } {set i [expr $i+1]} { 11 | echo "Test iteration $i" 12 | dump_image $tmpfile $address $size 13 | verify_image $tmpfile $address bin 14 | load_image $tmpfile $address bin 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /toolchain.cmake: -------------------------------------------------------------------------------- 1 | SET(CMAKE_SYSTEM_NAME Windows) 2 | SET(CMAKE_C_COMPILER "${TOOLCHAIN_ROOT}/bin/gcc.exe") 3 | SET(CMAKE_CXX_COMPILER "${TOOLCHAIN_ROOT}/bin/g++.exe") 4 | 5 | if(EXISTS "$ENV{TOOLCHAIN_ROOT}/Qt/v5-CMake/Qt5Cross.cmake") 6 | include("$ENV{TOOLCHAIN_ROOT}/Qt/v5-CMake/Qt5Cross.cmake") 7 | endif() 8 | -------------------------------------------------------------------------------- /tools/rlink_make_speed_table/rlink_make_speed_table: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec perl "$0.pl" $* 3 | -------------------------------------------------------------------------------- /tools/st7_dtc_as/st7_dtc_as: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec perl "$0.pl" $* 3 | --------------------------------------------------------------------------------