USB Cable not connected?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

USB Cable not connected?

Post 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
Attachments
Fire Simulation 16F690.fcf
(13.5 KiB) Downloaded 390 times

JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

Re: USB Cable not connected?

Post 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

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: USB Cable not connected?

Post 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

JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

Re: USB Cable not connected?

Post 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

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: USB Cable not connected?

Post by Benj »

Hi John,

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

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

JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

Re: USB Cable not connected?

Post 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
Attachments
Fire Simulation A 16F690.fcf
(13.5 KiB) Downloaded 365 times

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: USB Cable not connected?

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

JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

Re: USB Cable not connected?

Post by JDR04 »

I'll check out what you have suggested tonight and post accordingly.

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

JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

Re: USB Cable not connected?-Resolved

Post 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

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: USB Cable not connected?

Post by Benj »

Hi John,

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

Post Reply