Flowcode_PIC_16bit ICD failure to communicate with target

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Flowcode_PIC_16bit ICD failure to communicate with target

Post 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 4188 times
What could I try to get this to work?
Attachments
blink802-1.fcf_pic16
Simple test flow
(4.5 KiB) Downloaded 242 times
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Flowcode_PIC_16bit ICD failure to communicate with targe

Post 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.

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Flowcode_PIC_16bit ICD failure to communicate with targe

Post by kersing »

Hi Ben,

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

Best regards,

Jac
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Flowcode_PIC_16bit ICD failure to communicate with targe

Post 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.

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Flowcode_PIC_16bit ICD failure to communicate with targe

Post 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
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Post Reply