Page 1 of 1

USB Cable not connected?

Posted: Sat Feb 18, 2017 6:26 pm
by JDR04
Hello everyone. I'm hoping somebody can help me with this.

I've done a program that flashes 4 LED's to simulate a small fire. One LED stays on all the time.

The program compiles to C and HEX fine but will not burn to the chip.

I'm using Windows 8.1 64 bit.
PIC 16F690
PICKIT 2 programmer with Microchip Low Pin Count board.
Flowcode 5

Tried connecting up to different USB connections and a second cable but to no avail.

Any help will be much appreciated. Thanks..........John

Re: USB Cable not connected?

Posted: Sun Feb 19, 2017 8:26 pm
by JDR04
I've tried disabling the drivers "enforcement" but the same problem persists. Really could do with some help on this one. Thanks folks......John

Re: USB Cable not connected?

Posted: Mon Feb 20, 2017 12:24 pm
by Benj
Hello,

Flowcode PIC defaults to look for the EB006 programmer hardware so this is what the USB cable not connected is referring to.

If you want to setup Flowcode to directly use the PICkit then there is a FAQ on how to do this here.

http://www.matrixtsl.com/support/viewto ... da4239b6a6

Re: USB Cable not connected?

Posted: Mon Feb 20, 2017 12:53 pm
by JDR04
Thanks Benj, will give it a try tonight. Does it make any difference that I am using PICKIT 2 and not PICKIT 3 programmer?? Many Thanks........John

Re: USB Cable not connected?

Posted: Mon Feb 20, 2017 12:56 pm
by Benj
Hi John,

Yes a PICkit 2 is slightly different, the setting for this are here.

http://www.matrixtsl.com/support/viewto ... 894d52570a

Re: USB Cable not connected?

Posted: Thu Feb 23, 2017 1:58 pm
by JDR04
Hi Benj, have done what you said and the "cable not connected" issue seems to be resolved.

However, when I compile to chip there seems to be a brief flashing of LEDs but then all goes dead. I've checked that for some reason when the PICKIT2 programmer stops compiling to chip, the power is switched off? A meter shows no power on the board.

I've attached the modified program for your perusal.

Thanks for your time guys...................John

Re: USB Cable not connected?

Posted: Thu Feb 23, 2017 4:17 pm
by Benj
Hi John,

It seems the program is ok and the compilation is ok it's the programming that is failing.

Are you trying to power your circuit from the PICkit 2? Maybe the circuit is trying to use too much power e.g. more than the PICkit can supply? Have you tried powering the circuitry externally to see if that helps.

Also what are your Compiler Options -> Programmer tab currently looking like?

On the compiler messages window what messages are you receiving?

Re: USB Cable not connected?

Posted: Thu Feb 23, 2017 6:27 pm
by JDR04
I'll check out what you have suggested tonight and post accordingly.

Appreciate your time.............John

Re: USB Cable not connected?-Resolved

Posted: Thu Mar 09, 2017 8:42 am
by JDR04
Hi Benj, sorry for the late feedback. I stripped the circuit right back to one led and added one part at a time. Finally I discovered I had the switch hardware wrong and the software. All is good now so thanks for your time.........John

Re: USB Cable not connected?

Posted: Thu Mar 09, 2017 11:11 am
by Benj
Hi John,

Glad you got it working, it's easy to make a simple mistake that causes lots of issues.