├── ChangeLog ├── tcl ├── board │ ├── redbee.cfg │ ├── atmel_sam3x_ek.cfg │ ├── atmel_sam3u_ek.cfg │ ├── ti_blaze.cfg │ ├── ti_pandaboard.cfg │ ├── iar_str912_sk.cfg │ ├── nds32_xc5.cfg │ ├── ti_pandaboard_es.cfg │ ├── atmel_sam3s_ek.cfg │ ├── atmel_sam4s_ek.cfg │ ├── pic-p32mx.cfg │ ├── olimex_sam7_ex256.cfg │ ├── diolan_lpc4350-db1.cfg │ ├── keil_mcb1700.cfg │ ├── keil_mcb2140.cfg │ ├── olimex_lpc_h2148.cfg │ ├── ti_tmdx570ls31usb.cfg │ ├── bcm28155_ap.cfg │ ├── nordic_nrf51822_mkit.cfg │ ├── ti_am43xx_evm.cfg │ ├── xmc4500-application-kit-general.cfg │ ├── atmel_at91sam7s-ek.cfg │ ├── atmel_sam4e_ek.cfg │ ├── mbed-lpc1768.cfg │ ├── open-bldc.cfg │ ├── atmel_sam3n_ek.cfg │ ├── lisa-l.cfg │ ├── olimex_stm32_h103.cfg │ ├── kwikstik.cfg │ ├── atmel_samd21_xplained_pro.cfg │ ├── atmel_saml21_xplained_pro.cfg │ ├── atmel_samr21_xplained_pro.cfg │ ├── ti_am335xevm.cfg │ ├── olimex_stm32_h107.cfg │ ├── olimex_stm32_p107.cfg │ ├── stm32100b_eval.cfg │ ├── xmc4500-application-kit-sdram.cfg │ ├── arm_evaluator7t.cfg │ ├── stm3210c_eval.cfg │ ├── stm3210b_eval.cfg │ ├── atmel_sam4l8_xplained_pro.cfg │ ├── atmel_sam4s_xplained_pro.cfg │ ├── atmel_samd20_xplained_pro.cfg │ ├── atmel_samg53_xplained_pro.cfg │ ├── quark_x10xx_board.cfg │ ├── ti_beagleboard.cfg │ ├── xmc-2go.cfg │ ├── linksys_nslu2.cfg │ ├── xmc4200-application-kit-actuator.cfg │ ├── digilent_zedboard.cfg │ ├── efikamx.cfg │ ├── hitex_lpc1768stick.cfg │ ├── ti_beaglebone.cfg │ ├── xmc1100-boot-kit.cfg │ ├── stm32f334discovery.cfg │ ├── stm32f3discovery.cfg │ ├── stm32f4discovery.cfg │ ├── dk-tm4c129.cfg │ ├── mbed-lpc11u24.cfg │ ├── ek-tm4c123gxl.cfg │ ├── st_nucleo_f3.cfg │ ├── st_nucleo_l1.cfg │ ├── ek-tm4c1294xl.cfg │ ├── olimex_LPC2378STK.cfg │ ├── st_nucleo_f103rb.cfg │ ├── xmc4500-relax.cfg │ ├── stm32f429discovery.cfg │ ├── stm32l0discovery.cfg │ ├── phone_se_j100i.cfg │ ├── stm32f0discovery.cfg │ ├── stm32ldiscovery.cfg │ ├── stm32vldiscovery.cfg │ ├── stm3220g_eval.cfg │ ├── stm3241g_eval.cfg │ ├── ti_beagleboard_xm.cfg │ ├── microchip_explorer16.cfg │ ├── spansion_sk-fm4-176l-s6e2cc.cfg │ ├── stm320518_eval.cfg │ ├── gumstix-aerocore.cfg │ ├── stm32429i_eval.cfg │ ├── stm32439i_eval.cfg │ ├── crossbow_tech_imote2.cfg │ ├── colibri.cfg │ ├── steval_pcc010.cfg │ ├── logicpd_imx27.cfg │ ├── smdk6410.cfg │ ├── ti-cc3200-launchxl.cfg │ ├── dp_busblaster_v3.cfg │ ├── ek-lm3s3748.cfg │ ├── frdm-kl25z.cfg │ ├── frdm-kl46z.cfg │ ├── ek-lm3s9d92.cfg │ ├── ek-lm4f232.cfg │ ├── twr-k60n512.cfg │ ├── ek-lm3s811-revb.cfg │ ├── ek-lm3s9b9x.cfg │ ├── iar_lpc1768.cfg │ ├── st_nucleo_f4.cfg │ ├── ek-lm4f120xl.cfg │ ├── ti_am437x_idk.cfg │ ├── ek-lm3s6965.cfg │ ├── ek-lm3s8962.cfg │ ├── efm32.cfg │ ├── linksys-wrt54gl.cfg │ ├── omap2420_h4.cfg │ ├── da850evm.cfg │ ├── ek-lm3s811.cfg │ ├── voipac.cfg │ ├── asus-rt-n16.cfg │ ├── bt-homehubv1.cfg │ ├── ti_tmdx570ls20susb.cfg │ ├── stm320518_eval_stlink.cfg │ ├── stm3220g_eval_stlink.cfg │ ├── stm3241g_eval_stlink.cfg │ ├── twr-k60f120m.cfg │ ├── hitex_stm32-performancestick.cfg │ ├── st_nucleo_f0.cfg │ ├── stm32429i_eval_stlink.cfg │ ├── stm32439i_eval_stlink.cfg │ ├── altera_sockit.cfg │ ├── balloon3-cpu.cfg │ ├── verdex.cfg │ ├── ek-lm3s1968.cfg │ ├── lpc1850_spifi_generic.cfg │ ├── lpc4350_spifi_generic.cfg │ ├── asus-rt-n66u.cfg │ ├── netgear-dg834v3.cfg │ ├── am3517evm.cfg │ └── hilscher_nxsb100.cfg ├── target │ ├── ti_rm4x.cfg │ ├── k40.cfg │ ├── k60.cfg │ ├── kl25.cfg │ ├── kl46.cfg │ ├── stm32_stlink.cfg │ ├── test_syntax_error.cfg │ ├── bcm4718.cfg │ ├── kl25z_hla.cfg │ ├── ti_tms570ls3137.cfg │ ├── efm32_stlink.cfg │ ├── nrf51_stlink.tcl │ ├── stm32lx_stlink.cfg │ ├── stellaris_icdi.cfg │ ├── stm32f0x_stlink.cfg │ ├── stm32f1x_stlink.cfg │ ├── stm32f2x_stlink.cfg │ ├── stm32f3x_stlink.cfg │ ├── stm32f4x_stlink.cfg │ ├── stm32w108_stlink.cfg │ ├── at91sam4sXX.cfg │ ├── ti_tms570ls20xxx.cfg │ ├── at91samg5x.cfg │ ├── lpc11xx.cfg │ ├── lpc12xx.cfg │ ├── lpc13xx.cfg │ ├── lpc17xx.cfg │ ├── lpc8xx.cfg │ ├── lpc40xx.cfg │ ├── at91sam3uxx.cfg │ ├── stm32xl.cfg │ ├── at91sam3u1c.cfg │ ├── at91sam3u1e.cfg │ ├── at91sam3u2c.cfg │ ├── at91sam3u2e.cfg │ ├── at91sam3ax_xx.cfg │ ├── nds32v2.cfg │ ├── nds32v3.cfg │ ├── nds32v3m.cfg │ ├── bcm4706.cfg │ ├── bcm5352e.cfg │ ├── stm32l1x_dual_bank.cfg │ ├── bcm6348.cfg │ ├── at91sam4sd32x.cfg │ ├── at91sam3ax_4x.cfg │ ├── at91sam3sXX.cfg │ ├── at91sam3u4c.cfg │ ├── at91sam3u4e.cfg │ ├── cc2538.cfg │ ├── em358.cfg │ ├── at91sam3ax_8x.cfg │ ├── atheros_ar9331.cfg │ ├── at91sam9261.cfg │ ├── at91sam9rl.cfg │ ├── test_reset_syntax_error.cfg │ ├── avr32.cfg │ ├── at91sam9g10.cfg │ ├── at91sam9g45.cfg │ ├── at91sam7a2.cfg │ ├── fm4.cfg │ ├── samsung_s3c4510.cfg │ ├── xmc1xxx.cfg │ ├── alphascale_asm9260t.cfg │ ├── sharp_lh79532.cfg │ ├── nuc910.cfg │ ├── at32ap7000.cfg │ ├── at91sam9260.cfg │ ├── at91sam9263.cfg │ ├── faux.cfg │ ├── smp8634.cfg │ ├── ti-ar7.cfg │ ├── feroceon.cfg │ ├── dragonite.cfg │ ├── at91sam3nXX.cfg │ ├── armada370.cfg │ ├── lpc1850.cfg │ ├── at91r40008.cfg │ ├── ks869x.cfg │ ├── at91sam9g20.cfg │ ├── bcm281xx.cfg │ ├── dsp56321.cfg │ └── imx21.cfg ├── chip │ ├── ti │ │ └── lm3s │ │ │ └── lm3s.tcl │ ├── st │ │ └── stm32 │ │ │ └── stm32.tcl │ └── atmel │ │ └── at91 │ │ ├── hardware.cfg │ │ └── pmc.tcl ├── interface │ ├── dummy.cfg │ ├── estick.cfg │ ├── opendous.cfg │ ├── vsllink.cfg │ ├── openjtag.cfg │ ├── arm-jtag-ew.cfg │ ├── osbdm.cfg │ ├── at91rm9200.cfg │ ├── chameleon.cfg │ ├── rlink.cfg │ ├── ulink.cfg │ ├── kt-link.cfg │ ├── stlink-v1.cfg │ ├── usb-jtag.cfg │ ├── vpaclink.cfg │ ├── axm0432.cfg │ ├── cortino.cfg │ ├── icebear.cfg │ ├── lisa-l.cfg │ ├── jtagkey-tiny.cfg │ ├── jtagkey.cfg │ ├── jtagkey2.cfg │ ├── altera-usb-blaster2.cfg │ ├── jtagkey2p.cfg │ ├── signalyzer.cfg │ ├── hitex_str9-comstick.cfg │ ├── jtag-lock-pick_tiny_2.cfg │ ├── signalyzer-h2.cfg │ ├── signalyzer-h4.cfg │ ├── flyswatter.cfg │ ├── signalyzer-lite.cfg │ ├── flyswatter2.cfg │ ├── neodb.cfg │ ├── ftdi │ │ ├── olimex-arm-jtag-swd.cfg │ │ ├── cortino.cfg │ │ ├── rowley-cc-arm-swd.cfg │ │ ├── hitex_str9-comstick.cfg │ │ ├── iotlab-usb.cfg │ │ ├── jtagkey.cfg │ │ ├── hitex_lpc1768stick.cfg │ │ ├── jtagkey2.cfg │ │ ├── jtagkey2p.cfg │ │ ├── m53evk.cfg │ │ ├── stm32-stick.cfg │ │ ├── openocd-usb.cfg │ │ ├── flyswatter.cfg │ │ ├── tumpa-lite.cfg │ │ ├── olimex-arm-usb-ocd.cfg │ │ ├── flyswatter2.cfg │ │ ├── olimex-arm-usb-ocd-h.cfg │ │ ├── olimex-jtag-tiny.cfg │ │ ├── tumpa.cfg │ │ ├── olimex-arm-usb-tiny-h.cfg │ │ ├── openocd-usb-hs.cfg │ │ ├── sheevaplug.cfg │ │ ├── neodb.cfg │ │ ├── turtelizer2-revC.cfg │ │ ├── kt-link.cfg │ │ ├── ti-icdi.cfg │ │ ├── opendous_ftdi.cfg │ │ ├── jtag-lock-pick_tiny_2.cfg │ │ ├── axm0432.cfg │ │ ├── digilent_jtag_smt2.cfg │ │ ├── icebear.cfg │ │ ├── minimodule.cfg │ │ ├── signalyzer.cfg │ │ ├── signalyzer-lite.cfg │ │ ├── gw16042.cfg │ │ ├── hilscher_nxhx10_etm.cfg │ │ ├── hilscher_nxhx50_etm.cfg │ │ ├── hilscher_nxhx500_etm.cfg │ │ ├── hilscher_nxhx500_re.cfg │ │ ├── hilscher_nxhx50_re.cfg │ │ ├── openrd.cfg │ │ ├── lisa-l.cfg │ │ ├── turtelizer2-revB.cfg │ │ ├── vpaclink.cfg │ │ ├── oocdlink.cfg │ │ ├── ngxtech.cfg │ │ ├── redbee-usb.cfg │ │ ├── redbee-econotag.cfg │ │ ├── dp_busblaster.cfg │ │ ├── calao-usb-a9260-c01.cfg │ │ ├── calao-usb-a9260-c02.cfg │ │ ├── dlp-usb1232h.cfg │ │ ├── luminary-lm3s811.cfg │ │ └── dp_busblaster_kt-link.cfg │ ├── ngxtech.cfg │ ├── olimex-arm-usb-ocd.cfg │ ├── stm32-stick.cfg │ ├── calao-usb-a9260.cfg │ ├── olimex-jtag-tiny.cfg │ ├── cmsis-dap.cfg │ ├── olimex-arm-usb-ocd-h.cfg │ ├── oocdlink.cfg │ ├── usbprog.cfg │ ├── altera-usb-blaster.cfg │ ├── olimex-arm-usb-tiny-h.cfg │ ├── openocd-usb.cfg │ ├── minimodule.cfg │ ├── xds100v2.cfg │ ├── hilscher_nxhx50_etm.cfg │ ├── hilscher_nxhx10_etm.cfg │ ├── hilscher_nxhx500_etm.cfg │ ├── hilscher_nxhx50_re.cfg │ ├── hilscher_nxhx500_re.cfg │ ├── openrd.cfg │ ├── openocd-usb-hs.cfg │ ├── calao-usb-a9260-c01.cfg │ ├── calao-usb-a9260-c02.cfg │ ├── nds32-aice.cfg │ ├── redbee-usb.cfg │ ├── sheevaplug.cfg │ ├── redbee-econotag.cfg │ ├── parport_dlc5.cfg │ ├── opendous_ftdi.cfg │ ├── dlp-usb1232h.cfg │ ├── flashlink.cfg │ ├── ti-icdi.cfg │ ├── jtag_vpi.cfg │ ├── busblaster.cfg │ ├── jlink.cfg │ ├── parport.cfg │ ├── turtelizer2.cfg │ ├── digilent-hs1.cfg │ ├── stlink-v2.cfg │ ├── stlink-v2-1.cfg │ ├── flossjtag-noeeprom.cfg │ ├── buspirate.cfg │ ├── flossjtag.cfg │ ├── luminary-lm3s811.cfg │ └── sysfsgpio-raspberrypi.cfg ├── cpu │ └── arm │ │ ├── arm7tdmi.tcl │ │ ├── arm920.tcl │ │ ├── arm946.tcl │ │ ├── arm966.tcl │ │ └── cortex_m3.tcl ├── cpld │ ├── lattice-lc4032ze.cfg │ └── xilinx-xcr3256.cfg ├── test │ └── selftest.cfg └── mem_helper.tcl ├── testing ├── examples │ ├── STR710Test │ │ ├── .gitignore │ │ ├── prj │ │ │ ├── str710_program.script │ │ │ ├── eclipse_ram.gdb │ │ │ └── eclipse_rom.gdb │ │ ├── test_ram.elf │ │ └── test_rom.elf │ ├── STM32-103 │ │ ├── main.elf │ │ └── readme.txt │ ├── cortex │ │ ├── lm3s3748.elf │ │ └── test.c │ ├── PIC32 │ │ ├── BlinkingLeds.elf │ │ ├── readme.txt │ │ └── BlinkingLeds.c │ ├── LPC2148Test │ │ ├── test_ram.elf │ │ ├── test_rom.elf │ │ └── prj │ │ │ ├── eclipse_ram.gdb │ │ │ └── eclipse_rom.gdb │ ├── LPC2294Test │ │ ├── test_ram.elf │ │ ├── test_rom.elf │ │ └── prj │ │ │ ├── eclipse_ram.gdb │ │ │ └── eclipse_rom.gdb │ ├── SAM7S256Test │ │ ├── test_ram.elf │ │ ├── test_rom.elf │ │ └── prj │ │ │ ├── sam7s256_reset.script │ │ │ ├── eclipse_ram.gdb │ │ │ └── eclipse_rom.gdb │ ├── SAM7X256Test │ │ ├── test_ram.elf │ │ ├── test_rom.elf │ │ └── prj │ │ │ ├── sam7x256_reset.script │ │ │ ├── eclipse_ram.gdb │ │ │ └── eclipse_rom.gdb │ ├── STR710JtagSpeed │ │ ├── test.elf │ │ └── prj │ │ │ └── eclipse_ft2232_ram.gdb │ ├── STR912Test │ │ ├── test_ram.elf │ │ ├── test_rom.elf │ │ └── prj │ │ │ ├── str912_program.script │ │ │ ├── eclipse_ram.gdb │ │ │ └── eclipse_rom.gdb │ ├── ledtest-imx27ads │ │ ├── test.elf │ │ ├── ldscript │ │ └── gdbinit-imx27ads │ ├── ledtest-imx31pdk │ │ ├── test.elf │ │ ├── ldscript │ │ └── gdbinit-imx31pdk │ └── AT91R40008Test │ │ ├── test_ram.elf │ │ └── prj │ │ ├── at91r40008_reset.script │ │ └── eclipse_ram.gdb ├── tcl_server.tcl └── build.test1 │ ├── mingw32_help │ └── include │ │ └── sys │ │ └── cdefs.h │ └── README.TXT ├── tools ├── st7_dtc_as │ └── st7_dtc_as ├── rlink_make_speed_table │ └── rlink_make_speed_table ├── checkpatch.sh └── uncrustify1.sh ├── src ├── flash │ ├── nor │ │ └── sim3x.c │ ├── Makefile.am │ └── nand │ │ └── Makefile.am ├── target │ ├── xscale │ │ ├── debug_handler.bin │ │ └── build.sh │ └── openrisc │ │ ├── Makefile.am │ │ └── jsp_server.h ├── svf │ └── Makefile.am ├── xsvf │ └── Makefile.am ├── pld │ └── Makefile.am ├── transport │ └── Makefile.am ├── server │ ├── startup.tcl │ └── Makefile.am ├── jtag │ ├── hla │ │ └── Makefile.am │ ├── aice │ │ └── Makefile.am │ └── drivers │ │ └── usb_blaster │ │ └── Makefile.am └── helper │ └── bin2char.sh ├── doc ├── manual │ ├── images │ │ └── jtag-state-machine-large.png │ └── app.txt └── Makefile.am ├── contrib ├── loaders │ └── flash │ │ └── at91sam7x │ │ └── at91sam7x_ocl_flash.script ├── libdcc │ └── README └── rtos-helpers │ └── FreeRTOS-openocd.c ├── .gitmodules ├── common.mk ├── AUTHORS.ChangeLog └── AUTHORS /ChangeLog: -------------------------------------------------------------------------------- 1 | Retired in favor of git log. 2 | -------------------------------------------------------------------------------- /tcl/board/redbee.cfg: -------------------------------------------------------------------------------- 1 | source [find target/mc13224v.cfg] 2 | -------------------------------------------------------------------------------- /tcl/target/ti_rm4x.cfg: -------------------------------------------------------------------------------- 1 | source [find target/ti_tms570.cfg] 2 | -------------------------------------------------------------------------------- /testing/examples/STR710Test/.gitignore: -------------------------------------------------------------------------------- 1 | .dep 2 | src/main.lst 3 | -------------------------------------------------------------------------------- /tools/st7_dtc_as/st7_dtc_as: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec perl "$0.pl" $* 3 | -------------------------------------------------------------------------------- /tcl/chip/ti/lm3s/lm3s.tcl: -------------------------------------------------------------------------------- 1 | source [find chip/ti/lm3s/lm3s_regs.tcl] 2 | -------------------------------------------------------------------------------- /tools/rlink_make_speed_table/rlink_make_speed_table: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec perl "$0.pl" $* 3 | -------------------------------------------------------------------------------- /src/flash/nor/sim3x.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/src/flash/nor/sim3x.c -------------------------------------------------------------------------------- /tcl/board/atmel_sam3x_ek.cfg: -------------------------------------------------------------------------------- 1 | source [find target/at91sam3ax_8x.cfg] 2 | 3 | reset_config srst_only 4 | -------------------------------------------------------------------------------- /tcl/board/atmel_sam3u_ek.cfg: -------------------------------------------------------------------------------- 1 | source [find target/at91sam3u4e.cfg] 2 | 3 | reset_config srst_only 4 | 5 | -------------------------------------------------------------------------------- /tcl/interface/dummy.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Dummy interface (for testing purposes) 3 | # 4 | 5 | interface dummy 6 | 7 | -------------------------------------------------------------------------------- /testing/examples/STR710Test/prj/str710_program.script: -------------------------------------------------------------------------------- 1 | flash protect 0 0 7 off 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/target/xscale/debug_handler.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/src/target/xscale/debug_handler.bin -------------------------------------------------------------------------------- /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/interface/estick.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # eStick 3 | # 4 | # http://code.google.com/p/estick-jtag/ 5 | # 6 | 7 | interface opendous 8 | -------------------------------------------------------------------------------- /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/kl46.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Freescale Kinetis KL46 devices 3 | # 4 | 5 | set CHIPNAME kl46 6 | source [find target/klx.cfg] 7 | -------------------------------------------------------------------------------- /tcl/target/stm32_stlink.cfg: -------------------------------------------------------------------------------- 1 | echo "WARNING: stm32_stlink.cfg is deprecated (and does nothing, you can safely remove it.)" 2 | -------------------------------------------------------------------------------- /testing/examples/STM32-103/main.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/STM32-103/main.elf -------------------------------------------------------------------------------- /testing/examples/cortex/lm3s3748.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/cortex/lm3s3748.elf -------------------------------------------------------------------------------- /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/nds32_xc5.cfg: -------------------------------------------------------------------------------- 1 | set _CPUTAPID 0x1000063d 2 | set _CHIPNAME nds32 3 | source [find target/nds32v3.cfg] 4 | 5 | jtag init 6 | -------------------------------------------------------------------------------- /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/target/test_syntax_error.cfg: -------------------------------------------------------------------------------- 1 | # This script tests a syntax error in the startup 2 | # config script 3 | 4 | syntax error here 5 | -------------------------------------------------------------------------------- /testing/examples/PIC32/BlinkingLeds.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/PIC32/BlinkingLeds.elf -------------------------------------------------------------------------------- /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_sam4s_ek.cfg: -------------------------------------------------------------------------------- 1 | source [find target/at91sam4sXX.cfg] 2 | 3 | $_TARGETNAME configure -event gdb-attach { reset init } 4 | -------------------------------------------------------------------------------- /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/interface/opendous.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # opendous-jtag 3 | # 4 | # http://code.google.com/p/opendous-jtag/ 5 | # 6 | 7 | interface opendous 8 | -------------------------------------------------------------------------------- /testing/examples/LPC2148Test/test_ram.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/LPC2148Test/test_ram.elf -------------------------------------------------------------------------------- /testing/examples/LPC2148Test/test_rom.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/LPC2148Test/test_rom.elf -------------------------------------------------------------------------------- /testing/examples/LPC2294Test/test_ram.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/LPC2294Test/test_ram.elf -------------------------------------------------------------------------------- /testing/examples/LPC2294Test/test_rom.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/LPC2294Test/test_rom.elf -------------------------------------------------------------------------------- /testing/examples/SAM7S256Test/test_ram.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/SAM7S256Test/test_ram.elf -------------------------------------------------------------------------------- /testing/examples/SAM7S256Test/test_rom.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/SAM7S256Test/test_rom.elf -------------------------------------------------------------------------------- /testing/examples/SAM7X256Test/test_ram.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/SAM7X256Test/test_ram.elf -------------------------------------------------------------------------------- /testing/examples/SAM7X256Test/test_rom.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/SAM7X256Test/test_rom.elf -------------------------------------------------------------------------------- /testing/examples/STR710JtagSpeed/test.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/STR710JtagSpeed/test.elf -------------------------------------------------------------------------------- /testing/examples/STR710Test/test_ram.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/STR710Test/test_ram.elf -------------------------------------------------------------------------------- /testing/examples/STR710Test/test_rom.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/STR710Test/test_rom.elf -------------------------------------------------------------------------------- /testing/examples/STR912Test/test_ram.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/STR912Test/test_ram.elf -------------------------------------------------------------------------------- /testing/examples/STR912Test/test_rom.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/STR912Test/test_rom.elf -------------------------------------------------------------------------------- /testing/examples/ledtest-imx27ads/test.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/ledtest-imx27ads/test.elf -------------------------------------------------------------------------------- /testing/examples/ledtest-imx31pdk/test.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/ledtest-imx31pdk/test.elf -------------------------------------------------------------------------------- /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/interface/vsllink.cfg: -------------------------------------------------------------------------------- 1 | # 2 | # Versaloon Link -- VSLLink 3 | # 4 | # http://www.versaloon.com/ 5 | # 6 | 7 | interface vsllink 8 | 9 | -------------------------------------------------------------------------------- /testing/examples/AT91R40008Test/test_ram.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/testing/examples/AT91R40008Test/test_ram.elf -------------------------------------------------------------------------------- /doc/manual/images/jtag-state-machine-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/projectgus/openocd/HEAD/doc/manual/images/jtag-state-machine-large.png -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /tools/checkpatch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | 4 | since=${1:-HEAD^} 5 | git format-patch -M --stdout $since | tools/scripts/checkpatch.pl - --no-tree 6 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /testing/examples/STR912Test/prj/str912_program.script: -------------------------------------------------------------------------------- 1 | str9x flash_config 0 4 2 0 0x80000 2 | flash protect 0 0 7 off 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "tools/git2cl"] 2 | path = tools/git2cl 3 | url = http://repo.or.cz/r/git2cl.git 4 | [submodule "jimtcl"] 5 | path = jimtcl 6 | url = http://repo.or.cz/r/jimtcl.git 7 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /testing/examples/STM32-103/readme.txt: -------------------------------------------------------------------------------- 1 | Olimex STM32-p103 board. 2 | 3 | main.elf is a file that can be programmed to flash for 4 | testing purposes(e.g. test GDB load performance). 5 | 6 | http://www.olimex.com/dev/stm32-p103.html -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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_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/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/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/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 | -------------------------------------------------------------------------------- /testing/examples/AT91R40008Test/prj/at91r40008_reset.script: -------------------------------------------------------------------------------- 1 | wait_halt 2 | sleep 10 3 | poll 4 | # Ethernut 3 remapping is required to access external flash memory. 5 | mww 0xffe00000 0x1000213d 6 | mww 0xffe00004 0x20003e3d 7 | mww 0xffe00020 0x00000001 8 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/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.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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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_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_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/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/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/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/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/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 | -------------------------------------------------------------------------------- /testing/examples/LPC2148Test/prj/eclipse_ram.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 sw_bkpts enable 7 | monitor mww 0xE01FC040 0x0002 8 | monitor mdw 0xE01FC040 9 | load 10 | break main 11 | continue -------------------------------------------------------------------------------- /testing/examples/LPC2294Test/prj/eclipse_ram.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 sw_bkpts enable 7 | monitor mww 0xE01FC040 0x0002 8 | monitor mdw 0xE01FC040 9 | load 10 | break main 11 | continue -------------------------------------------------------------------------------- /testing/examples/STR710Test/prj/eclipse_ram.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 sw_bkpts enable 7 | monitor mww 0xA0000050 0x01c2 8 | monitor mdw 0xA0000050 9 | load 10 | break main 11 | continue -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /testing/examples/LPC2148Test/prj/eclipse_rom.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 force_hw_bkpts enable 7 | monitor mww 0xE01FC040 0x0002 8 | monitor mdw 0xE01FC040 9 | load 10 | break main 11 | continue -------------------------------------------------------------------------------- /testing/examples/LPC2294Test/prj/eclipse_rom.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 force_hw_bkpts enable 7 | monitor mww 0xE01FC040 0x0002 8 | monitor mdw 0xE01FC040 9 | load 10 | break main 11 | continue -------------------------------------------------------------------------------- /testing/examples/STR710Test/prj/eclipse_rom.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 force_hw_bkpts enable 7 | monitor mww 0xA0000050 0x01c2 8 | monitor mdw 0xA0000050 9 | load 10 | break main 11 | continue -------------------------------------------------------------------------------- /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/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/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/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/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/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/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_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/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/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/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/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/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/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/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/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/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/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_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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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-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/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/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 | -------------------------------------------------------------------------------- /testing/examples/AT91R40008Test/prj/eclipse_ram.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 sw_bkpts enable 7 | monitor mww 0xFFE00000 0x1000213D 8 | monitor mww 0xFFE00004 0x20003E3D 9 | monitor mww 0xFFE00020 0x00000001 10 | monitor mdw 0xFFE00000 1 11 | monitor mdw 0xFFE00004 1 12 | load 13 | break main 14 | continue 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /testing/tcl_server.tcl: -------------------------------------------------------------------------------- 1 | # Simple tcl client to connect to openocd 2 | puts "Use empty line to exit" 3 | set fo [socket 127.0.0.1 6666] 4 | puts -nonewline stdout "> " 5 | flush stdout 6 | while {[gets stdin line] >= 0} { 7 | if {$line eq {}} break 8 | puts $fo $line 9 | flush $fo 10 | gets $fo line 11 | puts $line 12 | puts -nonewline stdout "> " 13 | flush stdout 14 | } 15 | close $fo 16 | -------------------------------------------------------------------------------- /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/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/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/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/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 | -------------------------------------------------------------------------------- /testing/examples/PIC32/readme.txt: -------------------------------------------------------------------------------- 1 | Here you'll find a simple example tested with PIC32 Starter kit (source code and .elf file). It will blink repeatedly the LEDs on the board. 2 | The program was compiled and written on the target using MPLAB IDE v 8.0 that comes with the kit because openocd is missing currently the ability 3 | to program the flash for this specific target. It is possible in the future this limitation to be removed. 4 | -------------------------------------------------------------------------------- /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/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/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/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/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-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 | -------------------------------------------------------------------------------- /testing/examples/STR912Test/prj/eclipse_ram.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 sw_bkpts enable 7 | 8 | # Set SRAM size to 96 KB 9 | monitor mww 0x5C002034 0x0197 10 | monitor mdw 0x5C002034 11 | 12 | # Set Flash, Bank0 size to 512 KB 13 | monitor mww 0x54000000 0xf 14 | 15 | load 16 | break main 17 | continue 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /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/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/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/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/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/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 | -------------------------------------------------------------------------------- /testing/examples/STR912Test/prj/eclipse_rom.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 force_hw_bkpts enable 7 | 8 | # Set SRAM size to 96 KB 9 | monitor mww 0x5C002034 0x0197 10 | monitor mdw 0x5C002034 11 | 12 | # Set Flash, Bank0 size to 512 KB 13 | monitor mww 0x54000000 0xf 14 | 15 | load 16 | break main 17 | continue 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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-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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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 | -------------------------------------------------------------------------------- /AUTHORS.ChangeLog: -------------------------------------------------------------------------------- 1 | drath:Dominic Rath 2 | mlu:Magnus Lundin 3 | mifi:Michael Fischer 4 | ntfreak:Spencer Oliver 5 | duane:Duane Ellis 6 | oharboe:Øyvind Harboe 7 | kc8apf:Rick Altherr 8 | zwelch:Zachary T Welch 9 | vpalatin:Vincent Palatin 10 | bodylove:Carsten Schlote 11 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /testing/examples/ledtest-imx31pdk/ldscript: -------------------------------------------------------------------------------- 1 | SECTIONS 2 | { 3 | . = 0x80000100; 4 | .text : { *(.text) } 5 | .data ALIGN(0x10): { *(.data) } 6 | .bss ALIGN(0x10): { 7 | __bss_start__ = ABSOLUTE(.); 8 | *(.bss) 9 | . += 0x100; 10 | } 11 | __bss_end__ = .; 12 | PROVIDE (__stack = .); 13 | _end = .; 14 | .debug_info 0 : { *(.debug_info) } 15 | .debug_abbrev 0 : { *(.debug_abbrev) } 16 | .debug_line 0 : { *(.debug_line) } 17 | .debug_frame 0 : { *(.debug_frame) } 18 | } 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /testing/examples/ledtest-imx27ads/ldscript: -------------------------------------------------------------------------------- 1 | SECTIONS 2 | { 3 | . = 0xA0000000; 4 | .text : { *(.text) } 5 | .data ALIGN(0x10): { *(.data) } 6 | .bss ALIGN(0x10): { 7 | __bss_start__ = ABSOLUTE(.); 8 | *(.bss) 9 | . += 0x100; 10 | } 11 | __bss_end__ = .; 12 | PROVIDE (__stack = .); 13 | _end = .; 14 | .debug_info 0 : { *(.debug_info) } 15 | .debug_abbrev 0 : { *(.debug_abbrev) } 16 | .debug_line 0 : { *(.debug_line) } 17 | .debug_frame 0 : { *(.debug_frame) } 18 | } 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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_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/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/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/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/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/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_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/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 | -------------------------------------------------------------------------------- /testing/examples/PIC32/BlinkingLeds.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(void) 3 | { 4 | int i; 5 | mPORTDClearBits(BIT_0); 6 | mPORTDSetPinsDigitalOut(BIT_0); 7 | mPORTDClearBits(BIT_1); 8 | mPORTDSetPinsDigitalOut(BIT_1); 9 | mPORTDClearBits(BIT_2); 10 | mPORTDSetPinsDigitalOut(BIT_2); 11 | 12 | while (1) 13 | { 14 | for (i = 0; i < 500000; i++) 15 | mPORTDToggleBits(BIT_0); 16 | for (i = 0; i < 500000; i++) 17 | mPORTDToggleBits(BIT_1); 18 | for (i = 0; i < 500000; i++) 19 | mPORTDToggleBits(BIT_2); 20 | } 21 | 22 | return 0; 23 | } 24 | -------------------------------------------------------------------------------- /testing/examples/cortex/test.c: -------------------------------------------------------------------------------- 1 | /* simple app. 2 | 3 | modify test.ld to change address. 4 | 5 | Even if the app is position independent, the symbols 6 | need to match to test basic debugging. 7 | 8 | To load the app to 0x20000000 in GDB, use: 9 | 10 | load a.out 11 | monitor reg sp 0x20004000 12 | monitor reg pc 0x20002000 13 | stepi 14 | 15 | arm-elf-gcc -mthumb -mcpu = cortex-m3 -nostdlib -Ttest.ld test.c 16 | 17 | 18 | */ 19 | int j; 20 | void _start() 21 | { 22 | int i; 23 | for (i = 0; i < 1000; i++) 24 | { 25 | j++; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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/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/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_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_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_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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /testing/build.test1/mingw32_help/include/sys/cdefs.h: -------------------------------------------------------------------------------- 1 | /* sys/cdefs.h 2 | 3 | Copyright 1998, 2000, 2001 Red Hat, Inc. 4 | 5 | This file is part of Cygwin. 6 | 7 | This software is a copyrighted work licensed under the terms of the 8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9 | details. */ 10 | 11 | #ifndef _SYS_CDEFS_H 12 | #define _SYS_CDEFS_H 13 | #ifdef __cplusplus 14 | #define __BEGIN_DECLS extern "C" { 15 | #define __END_DECLS } 16 | #else 17 | #define __BEGIN_DECLS 18 | #define __END_DECLS 19 | #endif 20 | #define __P(protos) protos /* full-blown ANSI C */ 21 | #define __CONCAT(__x,__y) __x##__y 22 | #endif 23 | 24 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /testing/examples/SAM7S256Test/prj/sam7s256_reset.script: -------------------------------------------------------------------------------- 1 | # 2 | # Init - taken form the script openocd_at91sam7_ecr.script 3 | # 4 | # I take this script from the following page: 5 | # 6 | # http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/openocd_intro/index.html 7 | # 8 | mww 0xfffffd44 0x00008000 # disable watchdog 9 | mww 0xfffffd08 0xa5000001 # enable user reset 10 | mww 0xfffffc20 0x00000601 # CKGR_MOR : enable the main oscillator 11 | sleep 10 12 | mww 0xfffffc2c 0x00481c0e # CKGR_PLLR: 96.1097 MHz 13 | sleep 10 14 | mww 0xfffffc30 0x00000007 # PMC_MCKR : MCK = PLL / 2 ~= 48 MHz 15 | sleep 10 16 | mww 0xffffff60 0x003c0100 # MC_FMR: flash mode (FWS=1,FMCN=60) 17 | sleep 100 18 | -------------------------------------------------------------------------------- /testing/examples/SAM7X256Test/prj/sam7x256_reset.script: -------------------------------------------------------------------------------- 1 | # 2 | # Init - taken form the script openocd_at91sam7_ecr.script 3 | # 4 | # I take this script from the following page: 5 | # 6 | # http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/openocd_intro/index.html 7 | # 8 | mww 0xfffffd44 0x00008000 # disable watchdog 9 | mww 0xfffffd08 0xa5000001 # enable user reset 10 | mww 0xfffffc20 0x00000601 # CKGR_MOR : enable the main oscillator 11 | sleep 10 12 | mww 0xfffffc2c 0x00481c0e # CKGR_PLLR: 96.1097 MHz 13 | sleep 10 14 | mww 0xfffffc30 0x00000007 # PMC_MCKR : MCK = PLL / 2 ~= 48 MHz 15 | sleep 10 16 | mww 0xffffff60 0x003c0100 # MC_FMR: flash mode (FWS=1,FMCN=60) 17 | sleep 100 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /testing/examples/SAM7S256Test/prj/eclipse_ram.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 sw_bkpts enable 7 | 8 | # WDT_MR, disable watchdog 9 | monitor mww 0xFFFFFD44 0x00008000 10 | 11 | # RSTC_MR, enable user reset 12 | monitor mww 0xfffffd08 0xa5000001 13 | 14 | # CKGR_MOR 15 | monitor mww 0xFFFFFC20 0x00000601 16 | monitor sleep 10 17 | 18 | # CKGR_PLLR 19 | monitor mww 0xFFFFFC2C 0x00481c0e 20 | monitor sleep 10 21 | 22 | # PMC_MCKR 23 | monitor mww 0xFFFFFC30 0x00000007 24 | monitor sleep 10 25 | 26 | # PMC_IER 27 | monitor mww 0xFFFFFF60 0x00480100 28 | monitor sleep 100 29 | 30 | load 31 | break main 32 | continue 33 | -------------------------------------------------------------------------------- /testing/examples/SAM7X256Test/prj/eclipse_ram.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 sw_bkpts enable 7 | 8 | # WDT_MR, disable watchdog 9 | monitor mww 0xFFFFFD44 0x00008000 10 | 11 | # RSTC_MR, enable user reset 12 | monitor mww 0xfffffd08 0xa5000001 13 | 14 | # CKGR_MOR 15 | monitor mww 0xFFFFFC20 0x00000601 16 | monitor sleep 10 17 | 18 | # CKGR_PLLR 19 | monitor mww 0xFFFFFC2C 0x00481c0e 20 | monitor sleep 10 21 | 22 | # PMC_MCKR 23 | monitor mww 0xFFFFFC30 0x00000007 24 | monitor sleep 10 25 | 26 | # PMC_IER 27 | monitor mww 0xFFFFFF60 0x00480100 28 | monitor sleep 100 29 | 30 | load 31 | break main 32 | continue 33 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /testing/examples/SAM7S256Test/prj/eclipse_rom.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 force_hw_bkpts enable 7 | 8 | # WDT_MR, disable watchdog 9 | monitor mww 0xFFFFFD44 0x00008000 10 | 11 | # RSTC_MR, enable user reset 12 | monitor mww 0xfffffd08 0xa5000001 13 | 14 | # CKGR_MOR 15 | monitor mww 0xFFFFFC20 0x00000601 16 | monitor sleep 10 17 | 18 | # CKGR_PLLR 19 | monitor mww 0xFFFFFC2C 0x00481c0e 20 | monitor sleep 10 21 | 22 | # PMC_MCKR 23 | monitor mww 0xFFFFFC30 0x00000007 24 | monitor sleep 10 25 | 26 | # PMC_IER 27 | monitor mww 0xFFFFFF60 0x00480100 28 | monitor sleep 100 29 | 30 | load 31 | break main 32 | continue 33 | -------------------------------------------------------------------------------- /testing/examples/SAM7X256Test/prj/eclipse_rom.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | monitor reset 3 | monitor sleep 500 4 | monitor poll 5 | monitor soft_reset_halt 6 | monitor arm7_9 force_hw_bkpts enable 7 | 8 | # WDT_MR, disable watchdog 9 | monitor mww 0xFFFFFD44 0x00008000 10 | 11 | # RSTC_MR, enable user reset 12 | monitor mww 0xfffffd08 0xa5000001 13 | 14 | # CKGR_MOR 15 | monitor mww 0xFFFFFC20 0x00000601 16 | monitor sleep 10 17 | 18 | # CKGR_PLLR 19 | monitor mww 0xFFFFFC2C 0x00481c0e 20 | monitor sleep 10 21 | 22 | # PMC_MCKR 23 | monitor mww 0xFFFFFC30 0x00000007 24 | monitor sleep 10 25 | 26 | # PMC_IER 27 | monitor mww 0xFFFFFF60 0x00480100 28 | monitor sleep 100 29 | 30 | load 31 | break main 32 | continue 33 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /testing/examples/STR710JtagSpeed/prj/eclipse_ft2232_ram.gdb: -------------------------------------------------------------------------------- 1 | target remote localhost:3333 2 | 3 | monitor reset 4 | monitor sleep 500 5 | monitor poll 6 | monitor soft_reset_halt 7 | monitor arm7_9 sw_bkpts enable 8 | monitor mww 0xA0000050 0x01c2 9 | monitor mdw 0xA0000050 10 | monitor mww 0x6C000004 0x8005 11 | monitor mdw 0x6C000004 12 | monitor mww 0xE0005000 0xFFFF 13 | monitor mww 0xE0005004 0x00FF 14 | monitor mww 0xE0005008 0xFFFF 15 | monitor mdw 0xE0005000 16 | monitor mdw 0xE0005004 17 | monitor mdw 0xE0005008 18 | monitor mww 0xE000500C 0x0000 19 | 20 | monitor arm7_9 fast_memory_access enable 21 | monitor arm7_9 dcc_downloads enable 22 | monitor verify_ircapture disable 23 | 24 | load 25 | break main 26 | continue 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /testing/examples/ledtest-imx27ads/gdbinit-imx27ads: -------------------------------------------------------------------------------- 1 | echo Script to load ledtest on iMX27ADS.\n 2 | 3 | # Note: you need to startup openocd with "-f board/imx27ads.cfg" 4 | # in order to it initialize RAM memory. 5 | 6 | # SETUP GDB : 7 | # 8 | # Common gdb setup for ARM CPUs 9 | set complaints 1 10 | set output-radix 10 11 | set input-radix 10 12 | set prompt (arm-gdb) 13 | set endian little 14 | dir . 15 | 16 | # CONNECT TO TARGET : 17 | target remote 127.0.0.1:3333 18 | 19 | # LOAD IMAGE : 20 | # 21 | 22 | # Load the program executable called "u-boot" 23 | load test.elf 24 | 25 | # Load the symbols for the program. 26 | symbol-file test.elf 27 | 28 | # RUN TO MAIN : 29 | # 30 | # Set a breakpoint at main(). 31 | #b reset 32 | b main 33 | 34 | # Run to the breakpoint. 35 | c 36 | 37 | -------------------------------------------------------------------------------- /testing/examples/ledtest-imx31pdk/gdbinit-imx31pdk: -------------------------------------------------------------------------------- 1 | echo Script to load ledtest on iMX31PDK.\n 2 | 3 | # Note: you need to startup openocd with "-f board/imx31pdk.cfg" 4 | # in order to it initialize RAM memory. 5 | 6 | # SETUP GDB : 7 | # 8 | # Common gdb setup for ARM CPUs 9 | set complaints 1 10 | set output-radix 10 11 | set input-radix 10 12 | set prompt (arm-gdb) 13 | set endian little 14 | dir . 15 | 16 | # CONNECT TO TARGET : 17 | target remote 127.0.0.1:3333 18 | 19 | # LOAD IMAGE : 20 | # 21 | 22 | # Load the program executable called "u-boot" 23 | load test.elf 24 | 25 | # Load the symbols for the program. 26 | symbol-file test.elf 27 | 28 | # RUN TO MAIN : 29 | # 30 | # Set a breakpoint at main(). 31 | #b reset 32 | b main 33 | 34 | # Run to the breakpoint. 35 | c 36 | 37 | -------------------------------------------------------------------------------- /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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/board/hilscher_nxsb100.cfg: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # Author: Michael Trensch (MTrensch@googlemail.com) 3 | ################################################################################ 4 | 5 | source [find target/hilscher_netx500.cfg] 6 | 7 | reset_config trst_and_srst 8 | adapter_nsrst_delay 500 9 | jtag_ntrst_delay 500 10 | 11 | $_TARGETNAME configure -work-area-virt 0x1000 -work-area-phys 0x1000 -work-area-size 0x4000 -work-area-backup 1 12 | 13 | $_TARGETNAME configure -event reset-init { 14 | halt 15 | 16 | arm7_9 fast_memory_access enable 17 | arm7_9 dcc_downloads enable 18 | 19 | sdram_fix 20 | 21 | puts "Configuring SDRAM controller for MT48LC2M32 (8MB) " 22 | mww 0x00100140 0 23 | mww 0x00100144 0x03C23251 24 | mww 0x00100140 0x030D0001 25 | 26 | } 27 | 28 | init 29 | reset init 30 | -------------------------------------------------------------------------------- /tools/uncrustify1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Run the beautifier "Uncrustify" on a single file. 3 | # Because the file "uncrustify.cfg" only exists in the top level of the project 4 | # you should run this script from there so this script can find your uncrustify.cfg file. 5 | 6 | 7 | UNCRUSTIFYTMP=/tmp/uncrustify.tmp 8 | 9 | 10 | if [ ! -f uncrustify.cfg ]; then 11 | echo "unable to find uncrustify.cfg, aborting" 12 | exit 1 13 | fi 14 | 15 | UNCRUSTIFYBIN=`which uncrustify` 16 | 17 | if [ "$UNCRUSTIFYBIN" = "" ]; then 18 | echo "you must specify uncrustify in your PATH, I cannot find it" 19 | exit 2 20 | fi 21 | 22 | if [ $# -lt 1 ]; then 23 | echo "Usage $0 " 24 | exit 3 25 | fi 26 | 27 | uncrustify -c uncrustify.cfg <$1 >$UNCRUSTIFYTMP 28 | 29 | # you can comment this out while tuning the uncrustify.cfg file: 30 | mv $UNCRUSTIFYTMP $1 31 | -------------------------------------------------------------------------------- /tcl/target/ks869x.cfg: -------------------------------------------------------------------------------- 1 | # ARM920T CPU 2 | 3 | if { [info exists CHIPNAME] } { 4 | set _CHIPNAME $CHIPNAME 5 | } else { 6 | set _CHIPNAME ks869x 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 0x00922f0f 19 | } 20 | 21 | adapter_khz 6000 22 | 23 | # jtag scan chain 24 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 25 | 26 | set _TARGETNAME $_CHIPNAME.cpu 27 | 28 | target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME 29 | 30 | $_TARGETNAME configure -work-area-phys 0x20000 -work-area-size 0x20000 -work-area-backup 0 31 | 32 | # speed up memory downloads 33 | arm7_9 fast_memory_access enable 34 | arm7_9 dcc_downloads enable 35 | -------------------------------------------------------------------------------- /tcl/target/at91sam9g20.cfg: -------------------------------------------------------------------------------- 1 | ###################################### 2 | # Target: Atmel AT91SAM9G20 3 | ###################################### 4 | 5 | if { [info exists CHIPNAME] } { 6 | set AT91_CHIPNAME $CHIPNAME 7 | } else { 8 | set AT91_CHIPNAME at91sam9g20 9 | } 10 | 11 | source [find target/at91sam9.cfg] 12 | 13 | # Set fallback clock to 1/6 of worst-case clock speed (which would be the 32.768 kHz slow clock). 14 | 15 | adapter_khz 5 16 | 17 | # Establish internal SRAM memory work areas that are important to pre-bootstrap loaders, etc. The 18 | # AT91SAM9G20 has two SRAM areas, one starting at 0x00200000 and the other starting at 0x00300000. 19 | # Both areas are 16 kB long. 20 | 21 | #$_TARGETNAME configure -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 1 22 | $_TARGETNAME configure -work-area-phys 0x00300000 -work-area-size 0x4000 -work-area-backup 1 23 | -------------------------------------------------------------------------------- /tcl/target/bcm281xx.cfg: -------------------------------------------------------------------------------- 1 | # BCM281xx 2 | 3 | if { [info exists CHIPNAME] } { 4 | set _CHIPNAME $CHIPNAME 5 | } else { 6 | set _CHIPNAME bcm281xx 7 | } 8 | 9 | 10 | # Main CPU DAP 11 | if { [info exists DAP_TAPID] } { 12 | set _DAP_TAPID $DAP_TAPID 13 | } else { 14 | set _DAP_TAPID 0x4ba00477 15 | } 16 | 17 | jtag newtap $_CHIPNAME dap -expected-id $_DAP_TAPID -irlen 4 18 | 19 | 20 | # Dual Cortex A9s 21 | set _TARGETNAME0 $_CHIPNAME.cpu0 22 | set _TARGETNAME1 $_CHIPNAME.cpu1 23 | 24 | target create $_TARGETNAME0 cortex_a -chain-position $_CHIPNAME.dap -coreid 0 -dbgbase 0x3fe10000 25 | target create $_TARGETNAME1 cortex_a -chain-position $_CHIPNAME.dap -coreid 1 -dbgbase 0x3fe12000 26 | target smp $_TARGETNAME0 $_TARGETNAME1 27 | 28 | $_TARGETNAME0 configure -event gdb-attach { 29 | cortex_a dbginit 30 | } 31 | $_TARGETNAME1 configure -event gdb-attach { 32 | cortex_a dbginit 33 | } 34 | -------------------------------------------------------------------------------- /testing/build.test1/README.TXT: -------------------------------------------------------------------------------- 1 | -- Duane Ellis'es test case for building numerous openocd configurations... 2 | Dec 26,2008 3 | --------------------------------------------------------------------------- 4 | 5 | 1) Make a directory some where.. 6 | 7 | mkdir ~/test 8 | 9 | 2) Change to that directory 10 | 11 | cd ~/test 12 | 13 | 3) Checkout OpenOCD in that directory. 14 | 15 | cd ~/test 16 | svn co https://svn.berlios.de/svnroot/repos/openocd/trunk openocd 17 | 18 | 4) Copy the "build.test1" directory to the "~/work" directory. 19 | 20 | 21 | cd ~/test 22 | cp ~/openocd/testing/build.test1/. ~/test/. 23 | 24 | 5) If needed, download various components. 25 | 26 | cd ~/work 27 | make all.download 28 | 29 | 30 | 6) For Linux - type: 31 | 32 | cd ~/work 33 | make linux.buildtest 34 | 35 | 7) For Cygwin - type: 36 | 37 | cd ~/work 38 | make cygwin.buildtest 39 | 40 | -------------------------------------------------------------------------------- /tcl/target/dsp56321.cfg: -------------------------------------------------------------------------------- 1 | # Script for freescale DSP56321 2 | # 3 | 4 | if { [info exists CHIPNAME] } { 5 | set _CHIPNAME $CHIPNAME 6 | } else { 7 | set _CHIPNAME dsp56321 8 | } 9 | 10 | if { [info exists ENDIAN] } { 11 | set _ENDIAN $ENDIAN 12 | } else { 13 | # this defaults to a big endian 14 | set _ENDIAN big 15 | } 16 | 17 | if { [info exists CPUTAPID] } { 18 | set _CPUTAPID $CPUTAPID 19 | } else { 20 | set _CPUTAPID 0x1181501d 21 | } 22 | 23 | #jtag speed 24 | adapter_khz 4500 25 | 26 | #has only srst 27 | reset_config srst_only 28 | 29 | #jtag scan chain 30 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0x1 -expected-id $_CPUTAPID 31 | 32 | #target configuration 33 | set _TARGETNAME $_CHIPNAME.cpu 34 | target create $_TARGETNAME dsp563xx -endian $_ENDIAN -chain-position $_TARGETNAME 35 | 36 | #working area at base of ram 37 | $_TARGETNAME configure -work-area-virt 0 38 | -------------------------------------------------------------------------------- /tcl/target/imx21.cfg: -------------------------------------------------------------------------------- 1 | #use combined on interfaces or targets that can't set TRST/SRST separately 2 | # 3 | # Hmmm.... should srst_pulls_trst be used here like i.MX27??? 4 | reset_config trst_and_srst 5 | 6 | if { [info exists CHIPNAME] } { 7 | set _CHIPNAME $CHIPNAME 8 | } else { 9 | set _CHIPNAME imx21 10 | } 11 | 12 | if { [info exists ENDIAN] } { 13 | set _ENDIAN $ENDIAN 14 | } else { 15 | set _ENDIAN little 16 | } 17 | 18 | 19 | # Note above there is 1 tap 20 | 21 | # The CPU tap 22 | if { [info exists CPUTAPID] } { 23 | set _CPUTAPID $CPUTAPID 24 | } else { 25 | set _CPUTAPID 0x0792611f 26 | } 27 | jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID 28 | 29 | 30 | # Create the GDB Target. 31 | set _TARGETNAME $_CHIPNAME.cpu 32 | target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME 33 | 34 | arm7_9 dcc_downloads enable 35 | --------------------------------------------------------------------------------