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.
What could I try to get this to work?
Flowcode_PIC_16bit ICD failure to communicate with target
Moderator: Benj
-
- 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
- Attachments
-
- blink802-1.fcf_pic16
- Simple test flow
- (4.5 KiB) Downloaded 241 times
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
Hi Ben,
Tried HS without PLL, with internal oscillator and several ICD speed settings, did not get it working
Best regards,
Jac
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
― C.S. Lewis
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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
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
― C.S. Lewis