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
USB Cable not connected?
Moderator: Benj
-
- Posts: 271
- Joined: Tue Mar 05, 2013 10:49 pm
- Has thanked: 111 times
- Been thanked: 13 times
- Contact:
Re: USB Cable not connected?
I've tried disabling the drivers "enforcement" but the same problem persists. Really could do with some help on this one. Thanks folks......John
- 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?
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
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
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
-
- Posts: 271
- Joined: Tue Mar 05, 2013 10:49 pm
- Has thanked: 111 times
- Been thanked: 13 times
- Contact:
Re: USB Cable not connected?
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
- 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?
Hi John,
Yes a PICkit 2 is slightly different, the setting for this are here.
http://www.matrixtsl.com/support/viewto ... 894d52570a
Yes a PICkit 2 is slightly different, the setting for this are here.
http://www.matrixtsl.com/support/viewto ... 894d52570a
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
-
- Posts: 271
- Joined: Tue Mar 05, 2013 10:49 pm
- Has thanked: 111 times
- Been thanked: 13 times
- Contact:
Re: USB Cable not connected?
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
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
- 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?
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?
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?
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
-
- Posts: 271
- Joined: Tue Mar 05, 2013 10:49 pm
- Has thanked: 111 times
- Been thanked: 13 times
- Contact:
Re: USB Cable not connected?
I'll check out what you have suggested tonight and post accordingly.
Appreciate your time.............John
Appreciate your time.............John
-
- 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
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
- 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?
Hi John,
Glad you got it working, it's easy to make a simple mistake that causes lots of issues.
Glad you got it working, it's easy to make a simple mistake that causes lots of issues.
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