**** BEGIN LOGGING AT Fri Aug 21 02:59:56 2009 Aug 21 21:46:24 anybody familiar with using openocd + the pic32mx family? Aug 21 21:47:20 I'm trying to use it to erase some code that disables the JTAG interface at boot; I can connect to the chip while MCLR [SRST] is held low, but can't seem to figure out a way to get openocd to erase the chip whilst its in that state Aug 21 21:54:49 check if urjtag supports your chip Aug 21 21:55:06 urjtag can flash using boundary scan Aug 21 22:00:09 roxfan: long time no see! Anyhow; the flash is on-chip; I think I've figured out the sequence of jtag commands to get this thing to erase its internal flash without booting Aug 21 22:00:23 I just need to convince openocd to do them for me [via irscan / drscan] Aug 21 22:00:30 ok Aug 21 23:16:51 ahh; poll off. That was what I was missing. I think I can access everything now! Aug 21 23:38:43 for anyone googling and finding the chatlog; the magic sequence to erase a PIC32 when software disables jtag on boo using openocd is: poll off ; jtag_reset 0 1 ; irscan pic32mx.cpu 4 ; irscan pic32mx.cpu 7 ; drscan pic32mx.cpu 8 0xFC ; drscan pic32mx.cpu 8 0 [should show 0x89] ; irscan pic32mx.cpu 5 ; jtag_reset 0 0 **** ENDING LOGGING AT Sat Aug 22 02:59:57 2009