summaryrefslogtreecommitdiff
path: root/src/target/mips_m4k.c
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-03-08 22:54:18 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-03-10 21:03:22 +0000
commit257a764582f52235414b5c35717b0ee2b49d4b0d (patch)
treea27fc813a19942d0bee8c58fe170a9f838ea2294 /src/target/mips_m4k.c
parentf10ed95a5ce6be416bcb2ec20826c6e508e4b622 (diff)
downloadopenocd+libswd-257a764582f52235414b5c35717b0ee2b49d4b0d.tar.gz
openocd+libswd-257a764582f52235414b5c35717b0ee2b49d4b0d.tar.bz2
openocd+libswd-257a764582f52235414b5c35717b0ee2b49d4b0d.tar.xz
openocd+libswd-257a764582f52235414b5c35717b0ee2b49d4b0d.zip
PIC32: add flash algorithm support
Add flash algorithm support for the PIC32MX. Still a few things todo but this dramatically decreases the programing time, eg. approx programming for 2.5k test file. - without fastload: 60secs - with fastload: 45secs - with fastload and algorithm: 2secs. Add new devices to supported list. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/target/mips_m4k.c')
-rw-r--r--src/target/mips_m4k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c
index f581ddf1..389daf97 100644
--- a/src/target/mips_m4k.c
+++ b/src/target/mips_m4k.c
@@ -914,7 +914,7 @@ int mips_m4k_examine(struct target *target)
{
/* we are using a pic32mx so select ejtag port
* as it is not selected by default */
- mips_ejtag_set_instr(ejtag_info, 0x05, NULL);
+ mips_ejtag_set_instr(ejtag_info, MTAP_SW_ETAP, NULL);
LOG_DEBUG("PIC32MX Detected - using EJTAG Interface");
}
}