We wrote a simplified JTAG interface that includes a XSVF player ... device errata there’s a bug in the 24FJ64GA002 rev3 I2C module. This will work with a different chip (e.g. a 28pin dsPIC33).