X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=doc%2Fopenocd.texi;h=bc92452d7179114c0e8c2f26649517494429c7b1;hp=e2d9d3fe95047e9faecc920dfd371c1854bc9888;hb=ef1c4a2b1f6cf5f3b48b33c6378dc10acb35e868;hpb=8fa4d71d5c33134cee269f5682871f102520b9c1 diff --git a/doc/openocd.texi b/doc/openocd.texi index e2d9d3fe95..bc92452d71 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -161,9 +161,9 @@ debugged via the GDB protocol. @b{Flash Programing:} Flash writing is supported for external CFI compatible NOR flashes (Intel and AMD/Spansion command set) and several -internal flashes (LPC1700, LPC2000, AT91SAM7, AT91SAM3U, STR7x, STR9x, LM3, -STM32x and EFM32). Preliminary support for various NAND flash controllers -(LPC3180, Orion, S3C24xx, more) controller is included. +internal flashes (LPC1700, LPC1800, LPC2000, LPC4300, AT91SAM7, AT91SAM3U, +STR7x, STR9x, LM3, STM32x and EFM32). Preliminary support for various NAND flash +controllers (LPC3180, Orion, S3C24xx, more) controller is included. @section OpenOCD Web Site @@ -222,7 +222,11 @@ or expand the OpenOCD source code. During the 0.3.x release cycle, OpenOCD switched from Subversion to a GIT repository hosted at SourceForge. The repository URL is: -@uref{git://openocd.git.sourceforge.net/gitroot/openocd/openocd} +@uref{git://git.code.sf.net/p/openocd/code} + +or via http + +@uref{http://git.code.sf.net/p/openocd/code} You may prefer to use a mirror and the HTTP protocol: @@ -234,8 +238,6 @@ There are also gitweb pages letting you browse the repository with a web browser, or download arbitrary snapshots without needing a GIT client: -@uref{http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd} - @uref{http://repo.or.cz/w/openocd.git} The @file{README} file contains the instructions for building the project @@ -334,8 +336,10 @@ on a chip from ``Future Technology Devices International'' (FTDI) known as the FTDI FT2232; this is a USB full speed (12 Mbps) chip. See: @url{http://www.ftdichip.com} for more information. In summer 2009, USB high speed (480 Mbps) versions of these FTDI -chips are starting to become available in JTAG adapters. (Adapters -using those high speed FT2232H chips may support adaptive clocking.) +chips are starting to become available in JTAG adapters. Around 2012 a new +variant appeared - FT232H - this is a single-channel version of FT2232H. +(Adapters using those high speed FT2232H or FT232H chips may support adaptive +clocking.) The FT2232 chips are flexible enough to support some other transport options, such as SWD or the SPI variants used to @@ -392,6 +396,8 @@ to be available anymore as of April 2012. @item @b{opendous} @* Link @url{http://code.google.com/p/opendous/wiki/JTAG} FT2232H-based (OpenHardware). +@item @b{JTAG-lock-pick Tiny 2} +@* Link @url{http://www.distortec.com/jtag-lock-pick-tiny-2} FT232H-based @end itemize @section USB-JTAG / Altera USB-Blaster compatibles @@ -984,7 +990,7 @@ that the @code{reset-init} event handler does. Likewise, the @command{arm9 vector_catch} command (or @cindex vector_catch its siblings @command{xscale vector_catch} -and @command{cortex_m3 vector_catch}) can be a timesaver +and @command{cortex_m vector_catch}) can be a timesaver during some debug sessions, but don't make everyone use that either. Keep those kinds of debugging aids in your user config file, along with messaging and tracing setup. @@ -1255,31 +1261,52 @@ Use them as-is where you can; or as models for new files. These are for debug adapters. Files that configure JTAG adapters go here. @example -$ ls interface -altera-usb-blaster.cfg hilscher_nxhx50_etm.cfg openrd.cfg -arm-jtag-ew.cfg hilscher_nxhx50_re.cfg osbdm.cfg -arm-usb-ocd.cfg hitex_str9-comstick.cfg parport.cfg -at91rm9200.cfg icebear.cfg parport_dlc5.cfg -axm0432.cfg jlink.cfg redbee-econotag.cfg -busblaster.cfg jtagkey2.cfg redbee-usb.cfg -buspirate.cfg jtagkey2p.cfg rlink.cfg -calao-usb-a9260-c01.cfg jtagkey.cfg sheevaplug.cfg -calao-usb-a9260-c02.cfg jtagkey-tiny.cfg signalyzer.cfg -calao-usb-a9260.cfg kt-link.cfg signalyzer-h2.cfg -chameleon.cfg lisa-l.cfg signalyzer-h4.cfg -cortino.cfg luminary.cfg signalyzer-lite.cfg -digilent-hs1.cfg luminary-icdi.cfg stlink-v1.cfg -dlp-usb1232h.cfg luminary-lm3s811.cfg stlink-v2.cfg -dummy.cfg minimodule.cfg stm32-stick.cfg -estick.cfg neodb.cfg turtelizer2.cfg -flashlink.cfg ngxtech.cfg ulink.cfg -flossjtag.cfg olimex-arm-usb-ocd.cfg usb-jtag.cfg -flossjtag-noeeprom.cfg olimex-arm-usb-ocd-h.cfg usbprog.cfg -flyswatter2.cfg olimex-arm-usb-tiny-h.cfg vpaclink.cfg -flyswatter.cfg olimex-jtag-tiny.cfg vsllink.cfg -hilscher_nxhx10_etm.cfg oocdlink.cfg xds100v2.cfg -hilscher_nxhx500_etm.cfg opendous.cfg -hilscher_nxhx500_re.cfg openocd-usb.cfg +$ ls interface -R +interface/: +altera-usb-blaster.cfg hilscher_nxhx50_re.cfg openocd-usb-hs.cfg +arm-jtag-ew.cfg hitex_str9-comstick.cfg openrd.cfg +at91rm9200.cfg icebear.cfg osbdm.cfg +axm0432.cfg jlink.cfg parport.cfg +busblaster.cfg jtagkey2.cfg parport_dlc5.cfg +buspirate.cfg jtagkey2p.cfg redbee-econotag.cfg +calao-usb-a9260-c01.cfg jtagkey.cfg redbee-usb.cfg +calao-usb-a9260-c02.cfg jtagkey-tiny.cfg rlink.cfg +calao-usb-a9260.cfg jtag-lock-pick_tiny_2.cfg sheevaplug.cfg +chameleon.cfg kt-link.cfg signalyzer.cfg +cortino.cfg lisa-l.cfg signalyzer-h2.cfg +digilent-hs1.cfg luminary.cfg signalyzer-h4.cfg +dlp-usb1232h.cfg luminary-icdi.cfg signalyzer-lite.cfg +dummy.cfg luminary-lm3s811.cfg stlink-v1.cfg +estick.cfg minimodule.cfg stlink-v2.cfg +flashlink.cfg neodb.cfg stm32-stick.cfg +flossjtag.cfg ngxtech.cfg sysfsgpio-raspberrypi.cfg +flossjtag-noeeprom.cfg olimex-arm-usb-ocd.cfg ti-icdi.cfg +flyswatter2.cfg olimex-arm-usb-ocd-h.cfg turtelizer2.cfg +flyswatter.cfg olimex-arm-usb-tiny-h.cfg ulink.cfg +ftdi olimex-jtag-tiny.cfg usb-jtag.cfg +hilscher_nxhx10_etm.cfg oocdlink.cfg usbprog.cfg +hilscher_nxhx500_etm.cfg opendous.cfg vpaclink.cfg +hilscher_nxhx500_re.cfg opendous_ftdi.cfg vsllink.cfg +hilscher_nxhx50_etm.cfg openocd-usb.cfg xds100v2.cfg + +interface/ftdi: +axm0432.cfg icebear.cfg oocdlink.cfg +calao-usb-a9260-c01.cfg jtagkey2.cfg opendous_ftdi.cfg +calao-usb-a9260-c02.cfg jtagkey2p.cfg openocd-usb.cfg +cortino.cfg jtagkey.cfg openocd-usb-hs.cfg +dlp-usb1232h.cfg jtag-lock-pick_tiny_2.cfg openrd.cfg +dp_busblaster.cfg kt-link.cfg redbee-econotag.cfg +flossjtag.cfg lisa-l.cfg redbee-usb.cfg +flossjtag-noeeprom.cfg luminary.cfg sheevaplug.cfg +flyswatter2.cfg luminary-icdi.cfg signalyzer.cfg +flyswatter.cfg luminary-lm3s811.cfg signalyzer-lite.cfg +hilscher_nxhx10_etm.cfg minimodule.cfg stm32-stick.cfg +hilscher_nxhx500_etm.cfg neodb.cfg turtelizer2-revB.cfg +hilscher_nxhx500_re.cfg ngxtech.cfg turtelizer2-revC.cfg +hilscher_nxhx50_etm.cfg olimex-arm-usb-ocd.cfg vpaclink.cfg +hilscher_nxhx50_re.cfg olimex-arm-usb-ocd-h.cfg xds100v2.cfg +hitex_lpc1768stick.cfg olimex-arm-usb-tiny-h.cfg +hitex_str9-comstick.cfg olimex-jtag-tiny.cfg $ @end example @item @file{board} ... @@ -1295,72 +1322,77 @@ board file. Boards may also contain multiple targets: two CPUs; or a CPU and an FPGA. @example $ ls board -actux3.cfg logicpd_imx27.cfg -am3517evm.cfg lubbock.cfg -arm_evaluator7t.cfg mcb1700.cfg -at91cap7a-stk-sdram.cfg microchip_explorer16.cfg -at91eb40a.cfg mini2440.cfg -at91rm9200-dk.cfg mini6410.cfg -at91rm9200-ek.cfg olimex_LPC2378STK.cfg -at91sam9261-ek.cfg olimex_lpc_h2148.cfg -at91sam9263-ek.cfg olimex_sam7_ex256.cfg -at91sam9g20-ek.cfg olimex_sam9_l9260.cfg -atmel_at91sam7s-ek.cfg olimex_stm32_h103.cfg -atmel_at91sam9260-ek.cfg olimex_stm32_h107.cfg -atmel_at91sam9rl-ek.cfg olimex_stm32_p107.cfg -atmel_sam3n_ek.cfg omap2420_h4.cfg -atmel_sam3s_ek.cfg open-bldc.cfg -atmel_sam3u_ek.cfg openrd.cfg -atmel_sam3x_ek.cfg osk5912.cfg -atmel_sam4s_ek.cfg phytec_lpc3250.cfg -balloon3-cpu.cfg pic-p32mx.cfg -colibri.cfg propox_mmnet1001.cfg -crossbow_tech_imote2.cfg pxa255_sst.cfg -csb337.cfg redbee.cfg -csb732.cfg rsc-w910.cfg -da850evm.cfg sheevaplug.cfg -digi_connectcore_wi-9c.cfg smdk6410.cfg -diolan_lpc4350-db1.cfg spear300evb.cfg -dm355evm.cfg spear300evb_mod.cfg -dm365evm.cfg spear310evb20.cfg -dm6446evm.cfg spear310evb20_mod.cfg -efikamx.cfg spear320cpu.cfg -eir.cfg spear320cpu_mod.cfg -ek-lm3s1968.cfg steval_pcc010.cfg -ek-lm3s3748.cfg stm320518_eval_stlink.cfg -ek-lm3s6965.cfg stm32100b_eval.cfg -ek-lm3s811.cfg stm3210b_eval.cfg -ek-lm3s811-revb.cfg stm3210c_eval.cfg -ek-lm3s9b9x.cfg stm3210e_eval.cfg +actux3.cfg lpc1850_spifi_generic.cfg +am3517evm.cfg lpc4350_spifi_generic.cfg +arm_evaluator7t.cfg lubbock.cfg +at91cap7a-stk-sdram.cfg mcb1700.cfg +at91eb40a.cfg microchip_explorer16.cfg +at91rm9200-dk.cfg mini2440.cfg +at91rm9200-ek.cfg mini6410.cfg +at91sam9261-ek.cfg netgear-dg834v3.cfg +at91sam9263-ek.cfg olimex_LPC2378STK.cfg +at91sam9g20-ek.cfg olimex_lpc_h2148.cfg +atmel_at91sam7s-ek.cfg olimex_sam7_ex256.cfg +atmel_at91sam9260-ek.cfg olimex_sam9_l9260.cfg +atmel_at91sam9rl-ek.cfg olimex_stm32_h103.cfg +atmel_sam3n_ek.cfg olimex_stm32_h107.cfg +atmel_sam3s_ek.cfg olimex_stm32_p107.cfg +atmel_sam3u_ek.cfg omap2420_h4.cfg +atmel_sam3x_ek.cfg open-bldc.cfg +atmel_sam4s_ek.cfg openrd.cfg +balloon3-cpu.cfg osk5912.cfg +colibri.cfg phone_se_j100i.cfg +crossbow_tech_imote2.cfg phytec_lpc3250.cfg +csb337.cfg pic-p32mx.cfg +csb732.cfg propox_mmnet1001.cfg +da850evm.cfg pxa255_sst.cfg +digi_connectcore_wi-9c.cfg redbee.cfg +diolan_lpc4350-db1.cfg rsc-w910.cfg +dm355evm.cfg sheevaplug.cfg +dm365evm.cfg smdk6410.cfg +dm6446evm.cfg spear300evb.cfg +efikamx.cfg spear300evb_mod.cfg +eir.cfg spear310evb20.cfg +ek-lm3s1968.cfg spear310evb20_mod.cfg +ek-lm3s3748.cfg spear320cpu.cfg +ek-lm3s6965.cfg spear320cpu_mod.cfg +ek-lm3s811.cfg steval_pcc010.cfg +ek-lm3s811-revb.cfg stm320518_eval_stlink.cfg +ek-lm3s8962.cfg stm32100b_eval.cfg +ek-lm3s9b9x.cfg stm3210b_eval.cfg +ek-lm3s9d92.cfg stm3210c_eval.cfg +ek-lm4f120xl.cfg stm3210e_eval.cfg ek-lm4f232.cfg stm3220g_eval.cfg embedded-artists_lpc2478-32.cfg stm3220g_eval_stlink.cfg ethernut3.cfg stm3241g_eval.cfg glyn_tonga2.cfg stm3241g_eval_stlink.cfg hammer.cfg stm32f0discovery.cfg -hilscher_nxdb500sys.cfg stm32f4discovery.cfg -hilscher_nxeb500hmi.cfg stm32ldiscovery.cfg -hilscher_nxhx10.cfg stm32vldiscovery.cfg -hilscher_nxhx500.cfg str910-eval.cfg -hilscher_nxhx50.cfg telo.cfg -hilscher_nxsb100.cfg ti_beagleboard.cfg -hitex_lpc2929.cfg ti_beagleboard_xm.cfg -hitex_stm32-performancestick.cfg ti_beaglebone.cfg -hitex_str9-comstick.cfg ti_blaze.cfg -iar_lpc1768.cfg ti_pandaboard.cfg -iar_str912_sk.cfg ti_pandaboard_es.cfg -icnova_imx53_sodimm.cfg topas910.cfg -icnova_sam9g45_sodimm.cfg topasa900.cfg -imx27ads.cfg twr-k60n512.cfg -imx27lnst.cfg tx25_stk5.cfg -imx28evk.cfg tx27_stk5.cfg -imx31pdk.cfg unknown_at91sam9260.cfg -imx35pdk.cfg uptech_2410.cfg -imx53loco.cfg verdex.cfg -keil_mcb1700.cfg voipac.cfg -keil_mcb2140.cfg voltcraft_dso-3062c.cfg -kwikstik.cfg x300t.cfg -linksys_nslu2.cfg zy1000.cfg -lisa-l.cfg +hilscher_nxdb500sys.cfg stm32f3discovery.cfg +hilscher_nxeb500hmi.cfg stm32f4discovery.cfg +hilscher_nxhx10.cfg stm32ldiscovery.cfg +hilscher_nxhx500.cfg stm32vldiscovery.cfg +hilscher_nxhx50.cfg str910-eval.cfg +hilscher_nxsb100.cfg telo.cfg +hitex_lpc1768stick.cfg ti_am335xevm.cfg +hitex_lpc2929.cfg ti_beagleboard.cfg +hitex_stm32-performancestick.cfg ti_beagleboard_xm.cfg +hitex_str9-comstick.cfg ti_beaglebone.cfg +iar_lpc1768.cfg ti_blaze.cfg +iar_str912_sk.cfg ti_pandaboard.cfg +icnova_imx53_sodimm.cfg ti_pandaboard_es.cfg +icnova_sam9g45_sodimm.cfg topas910.cfg +imx27ads.cfg topasa900.cfg +imx27lnst.cfg twr-k60f120m.cfg +imx28evk.cfg twr-k60n512.cfg +imx31pdk.cfg tx25_stk5.cfg +imx35pdk.cfg tx27_stk5.cfg +imx53loco.cfg unknown_at91sam9260.cfg +keil_mcb1700.cfg uptech_2410.cfg +keil_mcb2140.cfg verdex.cfg +kwikstik.cfg voipac.cfg +linksys_nslu2.cfg voltcraft_dso-3062c.cfg +lisa-l.cfg x300t.cfg +logicpd_imx27.cfg zy1000.cfg $ @end example @item @file{target} ... @@ -1372,71 +1404,83 @@ When a chip has multiple TAPs (maybe it has both ARM and DSP cores), the target config file defines all of them. @example $ ls target -$duc702x.cfg ixp42x.cfg -am335x.cfg k40.cfg -amdm37x.cfg k60.cfg -ar71xx.cfg lpc1768.cfg -at32ap7000.cfg lpc2103.cfg -at91r40008.cfg lpc2124.cfg -at91rm9200.cfg lpc2129.cfg -at91sam3ax_4x.cfg lpc2148.cfg -at91sam3ax_8x.cfg lpc2294.cfg -at91sam3ax_xx.cfg lpc2378.cfg -at91sam3nXX.cfg lpc2460.cfg -at91sam3sXX.cfg lpc2478.cfg -at91sam3u1c.cfg lpc2900.cfg -at91sam3u1e.cfg lpc2xxx.cfg -at91sam3u2c.cfg lpc3131.cfg -at91sam3u2e.cfg lpc3250.cfg -at91sam3u4c.cfg lpc4350.cfg -at91sam3u4e.cfg mc13224v.cfg -at91sam3uxx.cfg nuc910.cfg -at91sam3XXX.cfg omap2420.cfg -at91sam4sXX.cfg omap3530.cfg -at91sam4XXX.cfg omap4430.cfg -at91sam7se512.cfg omap4460.cfg -at91sam7sx.cfg omap5912.cfg -at91sam7x256.cfg omapl138.cfg -at91sam7x512.cfg pic32mx.cfg -at91sam9260.cfg pxa255.cfg -at91sam9260_ext_RAM_ext_flash.cfg pxa270.cfg -at91sam9261.cfg pxa3xx.cfg -at91sam9263.cfg readme.txt -at91sam9.cfg samsung_s3c2410.cfg -at91sam9g10.cfg samsung_s3c2440.cfg -at91sam9g20.cfg samsung_s3c2450.cfg -at91sam9g45.cfg samsung_s3c4510.cfg -at91sam9rl.cfg samsung_s3c6410.cfg -atmega128.cfg sharp_lh79532.cfg -avr32.cfg smp8634.cfg -c100.cfg spear3xx.cfg -c100config.tcl stellaris.cfg -c100helper.tcl stm32.cfg -c100regs.tcl stm32f0x_stlink.cfg -cs351x.cfg stm32f1x.cfg -davinci.cfg stm32f1x_stlink.cfg -dragonite.cfg stm32f2x.cfg -dsp56321.cfg stm32f2x_stlink.cfg -dsp568013.cfg stm32f2xxx.cfg -dsp568037.cfg stm32f4x.cfg -epc9301.cfg stm32f4x_stlink.cfg -faux.cfg stm32l.cfg -feroceon.cfg stm32lx_stlink.cfg -fm3.cfg stm32_stlink.cfg -hilscher_netx10.cfg stm32xl.cfg -hilscher_netx500.cfg str710.cfg -hilscher_netx50.cfg str730.cfg -icepick.cfg str750.cfg -imx21.cfg str912.cfg -imx25.cfg swj-dp.tcl -imx27.cfg test_reset_syntax_error.cfg -imx28.cfg test_syntax_error.cfg -imx31.cfg ti_dm355.cfg -imx35.cfg ti_dm365.cfg -imx51.cfg ti_dm6446.cfg -imx53.cfg tmpa900.cfg -imx.cfg tmpa910.cfg -is5114.cfg u8500.cfg +aduc702x.cfg lpc1763.cfg +am335x.cfg lpc1764.cfg +amdm37x.cfg lpc1765.cfg +ar71xx.cfg lpc1766.cfg +at32ap7000.cfg lpc1767.cfg +at91r40008.cfg lpc1768.cfg +at91rm9200.cfg lpc1769.cfg +at91sam3ax_4x.cfg lpc1788.cfg +at91sam3ax_8x.cfg lpc17xx.cfg +at91sam3ax_xx.cfg lpc1850.cfg +at91sam3nXX.cfg lpc2103.cfg +at91sam3sXX.cfg lpc2124.cfg +at91sam3u1c.cfg lpc2129.cfg +at91sam3u1e.cfg lpc2148.cfg +at91sam3u2c.cfg lpc2294.cfg +at91sam3u2e.cfg lpc2378.cfg +at91sam3u4c.cfg lpc2460.cfg +at91sam3u4e.cfg lpc2478.cfg +at91sam3uxx.cfg lpc2900.cfg +at91sam3XXX.cfg lpc2xxx.cfg +at91sam4sd32x.cfg lpc3131.cfg +at91sam4sXX.cfg lpc3250.cfg +at91sam4XXX.cfg lpc4350.cfg +at91sam7se512.cfg lpc4350.cfg.orig +at91sam7sx.cfg mc13224v.cfg +at91sam7x256.cfg nuc910.cfg +at91sam7x512.cfg omap2420.cfg +at91sam9260.cfg omap3530.cfg +at91sam9260_ext_RAM_ext_flash.cfg omap4430.cfg +at91sam9261.cfg omap4460.cfg +at91sam9263.cfg omap5912.cfg +at91sam9.cfg omapl138.cfg +at91sam9g10.cfg pic32mx.cfg +at91sam9g20.cfg pxa255.cfg +at91sam9g45.cfg pxa270.cfg +at91sam9rl.cfg pxa3xx.cfg +atmega128.cfg readme.txt +avr32.cfg samsung_s3c2410.cfg +c100.cfg samsung_s3c2440.cfg +c100config.tcl samsung_s3c2450.cfg +c100helper.tcl samsung_s3c4510.cfg +c100regs.tcl samsung_s3c6410.cfg +cs351x.cfg sharp_lh79532.cfg +davinci.cfg smp8634.cfg +dragonite.cfg spear3xx.cfg +dsp56321.cfg stellaris.cfg +dsp568013.cfg stellaris_icdi.cfg +dsp568037.cfg stm32f0x_stlink.cfg +efm32_stlink.cfg stm32f1x.cfg +epc9301.cfg stm32f1x_stlink.cfg +faux.cfg stm32f2x.cfg +feroceon.cfg stm32f2x_stlink.cfg +fm3.cfg stm32f3x.cfg +hilscher_netx10.cfg stm32f3x_stlink.cfg +hilscher_netx500.cfg stm32f4x.cfg +hilscher_netx50.cfg stm32f4x_stlink.cfg +icepick.cfg stm32l.cfg +imx21.cfg stm32lx_dual_bank.cfg +imx25.cfg stm32lx_stlink.cfg +imx27.cfg stm32_stlink.cfg +imx28.cfg stm32w108_stlink.cfg +imx31.cfg stm32xl.cfg +imx35.cfg str710.cfg +imx51.cfg str730.cfg +imx53.cfg str750.cfg +imx6.cfg str912.cfg +imx.cfg swj-dp.tcl +is5114.cfg test_reset_syntax_error.cfg +ixp42x.cfg test_syntax_error.cfg +k40.cfg ti-ar7.cfg +k60.cfg ti_calypso.cfg +lpc1751.cfg ti_dm355.cfg +lpc1752.cfg ti_dm365.cfg +lpc1754.cfg ti_dm6446.cfg +lpc1756.cfg tmpa900.cfg +lpc1758.cfg tmpa910.cfg +lpc1759.cfg u8500.cfg @end example @item @emph{more} ... browse for other library files which may be useful. For example, there are various generic and CPU-specific utilities. @@ -1876,14 +1920,14 @@ After setting targets, you can define a list of targets working in SMP. @example set _TARGETNAME_1 $_CHIPNAME.cpu1 set _TARGETNAME_2 $_CHIPNAME.cpu2 -target create $_TARGETNAME_1 cortex_a8 -chain-position $_CHIPNAME.dap \ +target create $_TARGETNAME_1 cortex_a -chain-position $_CHIPNAME.dap \ -coreid 0 -dbgbase $_DAP_DBG1 -target create $_TARGETNAME_2 cortex_a8 -chain-position $_CHIPNAME.dap \ +target create $_TARGETNAME_2 cortex_a -chain-position $_CHIPNAME.dap \ -coreid 1 -dbgbase $_DAP_DBG2 #define 2 targets working in smp. target smp $_CHIPNAME.cpu2 $_CHIPNAME.cpu1 @end example -In the above example on cortex_a8, 2 cpus are working in SMP. +In the above example on cortex_a, 2 cpus are working in SMP. In SMP only one GDB instance is created and : @itemize @bullet @item a set of hardware breakpoint sets the same breakpoint on all targets in the list. @@ -1894,32 +1938,32 @@ In SMP only one GDB instance is created and : displayed by the GDB session @pxref{usingopenocdsmpwithgdb,,Using OpenOCD SMP with GDB}. @end itemize -The SMP behaviour can be disabled/enabled dynamically. On cortex_a8 following +The SMP behaviour can be disabled/enabled dynamically. On cortex_a following command have been implemented. @itemize @bullet -@item cortex_a8 smp_on : enable SMP mode, behaviour is as described above. -@item cortex_a8 smp_off : disable SMP mode, the current target is the one +@item cortex_a smp_on : enable SMP mode, behaviour is as described above. +@item cortex_a smp_off : disable SMP mode, the current target is the one displayed in the GDB session, only this target is now controlled by GDB session. This behaviour is useful during system boot up. -@item cortex_a8 smp_gdb : display/fix the core id displayed in GDB session see +@item cortex_a smp_gdb : display/fix the core id displayed in GDB session see following example. @end itemize @example ->cortex_a8 smp_gdb +>cortex_a smp_gdb gdb coreid 0 -> -1 #0 : coreid 0 is displayed to GDB , #-> -1 : next resume triggers a real resume -> cortex_a8 smp_gdb 1 +> cortex_a smp_gdb 1 gdb coreid 0 -> 1 #0 :coreid 0 is displayed to GDB , #->1 : next resume displays coreid 1 to GDB > resume -> cortex_a8 smp_gdb +> cortex_a smp_gdb gdb coreid 1 -> 1 #1 :coreid 1 is displayed to GDB , #->1 : next resume displays coreid 1 to GDB -> cortex_a8 smp_gdb -1 +> cortex_a smp_gdb -1 gdb coreid 1 -> -1 #1 :coreid 1 is displayed to GDB, #->-1 : next resume triggers a real resume @@ -1946,7 +1990,7 @@ don't want to reset all targets at once. Such a handler might write to chip registers to force a reset, use a JRC to do that (preferable -- the target may be wedged!), or force a watchdog timer to trigger. -(For Cortex-M3 targets, this is not necessary. The target +(For Cortex-M targets, this is not necessary. The target driver knows how to use trigger an NVIC reset when SRST is not available.) @@ -3951,7 +3995,7 @@ look like with more than one: TargetName Type Endian TapName State -- ------------------ ---------- ------ ------------------ ------------ 0* at91rm9200.cpu arm920t little at91rm9200.cpu running - 1 MyTarget cortex_m3 little mychip.foo tap-disabled + 1 MyTarget cortex_m little mychip.foo tap-disabled @end verbatim One member of that list is the @dfn{current target}, which @@ -4062,8 +4106,8 @@ At this writing, the supported CPU types and variants are: @item @code{arm9tdmi} -- this is an ARMv4 core @item @code{avr} -- implements Atmel's 8-bit AVR instruction set. (Support for this is preliminary and incomplete.) -@item @code{cortex_a8} -- this is an ARMv7 core with an MMU -@item @code{cortex_m3} -- this is an ARMv7 core, supporting only the +@item @code{cortex_a} -- this is an ARMv7 core with an MMU +@item @code{cortex_m} -- this is an ARMv7 core, supporting only the compact Thumb2 instruction set. @item @code{dragonite} -- resembles arm966e @item @code{dsp563xx} -- implements Freescale's 24-bit DSP. @@ -4117,7 +4161,7 @@ to be much more board-specific. The key steps you use might look something like this @example -target create MyTarget cortex_m3 -chain-position mychip.cpu +target create MyTarget cortex_m -chain-position mychip.cpu $MyTarget configure -work-area-phys 0x08000 -work-area-size 8096 $MyTarget configure -event reset-deassert-pre @{ jtag_rclk 5 @} $MyTarget configure -event reset-init @{ myboard_reinit @} @@ -5012,8 +5056,9 @@ supported.} @end deffn @deffn {Flash Driver} lpc2000 -Most members of the LPC1700 and LPC2000 microcontroller families from NXP -include internal flash and use Cortex-M3 (LPC1700) or ARM7TDMI (LPC2000) cores. +Most members of the LPC1700, LPC1800, LPC2000 and LPC4300 microcontroller +families from NXP include internal flash and use Cortex-M3 (LPC1700, LPC1800), +Cortex-M4 (LPC4300) or ARM7TDMI (LPC2000) cores. @quotation Note There are LPC2000 devices which are not supported by the @var{lpc2000} @@ -5029,7 +5074,9 @@ which must appear in the following order: @item @var{variant} ... required, may be @option{lpc2000_v1} (older LPC21xx and LPC22xx) @option{lpc2000_v2} (LPC213x, LPC214x, LPC210[123], LPC23xx and LPC24xx) -or @option{lpc1700} (LPC175x and LPC176x) +@option{lpc1700} (LPC175x and LPC176x) +or @option{lpc4300} - available also as @option{lpc1800} alias (LPC18x[2357] and +LPC43x[2357]) @item @var{clock_kHz} ... the frequency, in kiloHertz, at which the core is running @item @option{calc_checksum} ... optional (but you probably want to provide this!), @@ -7295,7 +7342,7 @@ cores @emph{except the ARM1176} use the same six bits. @cindex Debug Access Port @cindex DAP These commands are specific to ARM architecture v7 Debug Access Port (DAP), -included on Cortex-M3 and Cortex-A8 systems. +included on Cortex-M and Cortex-A systems. They are available in addition to other core-specific commands that may be available. @deffn Command {dap apid} [num] @@ -7323,10 +7370,15 @@ memory bus access [0-255], giving additional time to respond to reads. If @var{value} is defined, first assigns that. @end deffn -@subsection Cortex-M3 specific commands -@cindex Cortex-M3 +@deffn Command {dap apcsw} [0 / 1] +fix CSW_SPROT from register AP_REG_CSW on selected dap. +Defaulting to 0. +@end deffn + +@subsection Cortex-M specific commands +@cindex Cortex-M -@deffn Command {cortex_m3 maskisr} (@option{auto}|@option{on}|@option{off}) +@deffn Command {cortex_m maskisr} (@option{auto}|@option{on}|@option{off}) Control masking (disabling) interrupts during target step/resume. The @option{auto} option handles interrupts during stepping a way they get @@ -7343,7 +7395,7 @@ with interrupts enabled, i.e. the same way the @option{off} option does. Default is @option{auto}. @end deffn -@deffn Command {cortex_m3 vector_catch} [@option{all}|@option{none}|list] +@deffn Command {cortex_m vector_catch} [@option{all}|@option{none}|list] @cindex vector_catch Vector Catch hardware provides dedicated breakpoints for certain hardware events. @@ -7370,7 +7422,7 @@ must also be explicitly enabled. This finishes by listing the current vector catch configuration. @end deffn -@deffn Command {cortex_m3 reset_config} (@option{srst}|@option{sysresetreq}|@option{vectreset}) +@deffn Command {cortex_m reset_config} (@option{srst}|@option{sysresetreq}|@option{vectreset}) Control reset handling. The default @option{srst} is to use srst if fitted, otherwise fallback to @option{vectreset}. @itemize @minus @@ -7378,7 +7430,7 @@ otherwise fallback to @option{vectreset}. @item @option{sysresetreq} use NVIC SYSRESETREQ to reset system. @item @option{vectreset} use NVIC VECTRESET to reset system. @end itemize -Using @option{vectreset} is a safe option for all current Cortex-M3 cores. +Using @option{vectreset} is a safe option for all current Cortex-M cores. This however has the disadvantage of only resetting the core, all peripherals are uneffected. A solution would be to use a @code{reset-init} event handler to manually reset the peripherals. @@ -7397,7 +7449,7 @@ The most powerful mechanism is semihosting, but there is also a lighter weight mechanism using only the DCC channel. Currently @command{target_request debugmsgs} -is supported only for @option{arm7_9} and @option{cortex_m3} cores. +is supported only for @option{arm7_9} and @option{cortex_m} cores. These messages are received as part of target polling, so you need to have @command{poll on} active to receive them. They are intrusive in that they will affect program execution @@ -7903,10 +7955,10 @@ and an RTOS until he told GDB to disable the IRQs while stepping: @example define hook-step -mon cortex_m3 maskisr on +mon cortex_m maskisr on end define hookpost-step -mon cortex_m3 maskisr off +mon cortex_m maskisr off end @end example