From 82f44a4708cdfdf2bf4b386a4751e6b43adad2b2 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Tue, 16 Mar 2010 09:55:20 +0000 Subject: [PATCH] PIC32: add Microchip Explorer16 cfg - add Microchip Explorer16 cfg using PIC32MX360F512L PIM. - remove reset config from PIC32 target cfg. Signed-off-by: Spencer Oliver --- tcl/board/microchip_explorer16.cfg | 13 +++++++++++++ tcl/board/pic-p32mx.cfg | 4 ---- tcl/target/pic32mx.cfg | 5 +---- 3 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 tcl/board/microchip_explorer16.cfg diff --git a/tcl/board/microchip_explorer16.cfg b/tcl/board/microchip_explorer16.cfg new file mode 100644 index 0000000000..f5c4faab44 --- /dev/null +++ b/tcl/board/microchip_explorer16.cfg @@ -0,0 +1,13 @@ +# Microchip Explorer 16 with PIC32MX360F512L PIM module. +# http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en024858 + +# TAPID for PIC32MX360F512L +set CPUTAPID 0x30938053 + +# use 32k working area +set WORKAREASIZE 32768 + +source [find target/pic32mx.cfg] + +# For more information about the configuration files, take a look at: +# openocd.texi diff --git a/tcl/board/pic-p32mx.cfg b/tcl/board/pic-p32mx.cfg index 412a50672f..661e3d63f4 100644 --- a/tcl/board/pic-p32mx.cfg +++ b/tcl/board/pic-p32mx.cfg @@ -2,7 +2,3 @@ set CPUTAPID 0x40916053 source [find target/pic32mx.cfg] - -init -flash probe 0 -flash probe 1 diff --git a/tcl/target/pic32mx.cfg b/tcl/target/pic32mx.cfg index 8c9a93d381..673d254107 100644 --- a/tcl/target/pic32mx.cfg +++ b/tcl/target/pic32mx.cfg @@ -14,7 +14,7 @@ if { [info exists ENDIAN] } { if { [info exists CPUTAPID ] } { set _CPUTAPID $CPUTAPID } else { - # force an error till we get a good number + # force an error till we get a good number set _CPUTAPID 0x30938053 } @@ -29,9 +29,6 @@ if { [info exists WORKAREASIZE] } { adapter_nsrst_delay 100 jtag_ntrst_delay 100 -#use combined on interfaces or targets that can't set TRST/SRST separately -reset_config srst_only - #jtag scan chain #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID -- 2.30.2