On Mon, May 18, 2009 at 8:58 AM, David Brownell <davi...@pacbell.net> wrote: > On Sunday 17 May 2009, Strontium wrote: >> >> Pic32 has 2 debug interfaces. 4 Wire JTAG. And a pin count compressed >> version of Jtag which is serialised over 2 wires (ICSP). The protocol >> is the same as JTAG, the electrical interface is the only thing that >> differs. 2 wire mode should be able to be driven using a FT2232 type >> device, in a similar fashion to I2C (Tie TDI and TDO together).
This is wrong. ICSP is Microchip's proprietory protocol for programming and debugging. The ICSP module is independent from the EJTAG module in PIC32. You can read Chapter 33 of the PIC32MX Family Manual for more information. The ICSP debugging protocol is kept secret by Microchip and Microchip does not want to released to public. NDA access might be possible for certain 3rd party. The ICSP programming protocol is open to the public through the programming specification. "To use ICD, an external system that supports ICD must load a debugger executive program into the microcontroller. This is automatically handled by many debugger tools, such as the MPLAB IDE. For PIC32MX devices, the program is loaded into the last page of the Boot Flash memory space. When not debugging, the application is free to use the last page of Boot Flash Memory. PIC32MX ICSP supports standard debugging functions including memory and register viewing and modification. Breakpoints can be set and the program execution may be stopped or started. In addition to these functions registers or memory contents can be viewed and modified while the CPU is running." The debug executive hex files are available from MPLAB installation. Microchip's tools like Real ICE, ICD 3, ICD 2 do not use EJTAG. But JTAG support is available from 3rd party. http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2602 > Is that 2-wire mode the same one that the JTAG folk have > been working with, or is it specific to Microchip? Do > you know? As answered before, the 2-wire ICSP is not JTAG and the only way to know it is through reverse engineering. The only project I know of is the Piklab project which tries to support ICSP debugging with ICD 2. Anyway, to openocd, it is possible to support JTAG debugging/programming. -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development