Page 1 of 1

Flowcode_PIC_16bit ICD failure to communicate with target

Posted: Sun Jun 10, 2012 9:43 pm
by kersing
Trying to use ICD with the EB064 board, PSU powered. Target is 33FJ128GP802.

All attempts to use ICD, even with the simplest test flow (attached) to blink a led, fail with 'ICD has failed to communicate with the target'. The additional information window does not show anything wrong.
fc16-1.JPG
fc16-1.JPG (24.34 KiB) Viewed 4892 times
What could I try to get this to work?

Re: Flowcode_PIC_16bit ICD failure to communicate with targe

Posted: Mon Jun 11, 2012 9:42 am
by Benj
Hello,

Your problem could be clock speed related are you using the onboard PLL or anything like that?

What could be happening is that the clock is not up to speed when the ICD kicks in and this causes the data to be returned incorrectly.

One option is to increase the ICD communication speed value (actually a delay rather then the rate) or another option is to run in normal HS mode when debugging.

Re: Flowcode_PIC_16bit ICD failure to communicate with targe

Posted: Mon Jun 11, 2012 10:20 pm
by kersing
Hi Ben,

Tried HS without PLL, with internal oscillator and several ICD speed settings, did not get it working :-(

Best regards,

Jac

Re: Flowcode_PIC_16bit ICD failure to communicate with targe

Posted: Tue Jun 12, 2012 9:36 am
by Benj
Hi Jac,

I would disable the ICD and also disable the Set Clock C icon for now.

Then configure the device and the project clock speed so that the 1second delays are correct on the hardware.

Once you have done this you should be able to enable the ICD mode and hopefully it should just fire up for you.

Let me know how you get on.

Re: Flowcode_PIC_16bit ICD failure to communicate with targe

Posted: Sun Jun 17, 2012 7:45 pm
by kersing
Hi Ben,

The solution to the problem was to set the ICD connections to PORTB_L 1 (clock) and PORTB_L 0 (data). Obvious once you know it... The settings for ICD might be something to mention in the manual for the EB064 or even better, FC could set the appropriate defaults depending on the target device selected.

Best regards,

Jac