Hi everyone...
Need some help quickly...
I've been using a pickit 3 to download my programs to the ucontroller...
I last used it 2 weeks ago and today when I tried to download it, it simply says:
Return code = 0
Launching the programmer...
C:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PICkit3\pk3cmd.exe -P16F877A -FFlash test.hex -E -M -Y
HEX File not found
Return code = 1
Flowcode was unable to transfer the flowchart to the microcontroller. Check the programmer options and physical connections.
It was working 2 weeks ago?
Things I've tried to correct it to no avail:
Made sure that mplab is sending the files correctly... It is
Make sure mplab is not open when using flowcode...
Redid the setting and configuration for compiler and programmer
Moved workfolders into documents library
rebooted the pc multiple times
Does anyone have any suggestions?
Thanks
Clauds
Pickit 3 problem with hex file?
Moderator: Benj
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
-
- Posts: 14
- Joined: Fri May 13, 2011 6:25 pm
- Has thanked: 3 times
- Been thanked: 2 times
- Contact:
Re: Pickit 3 problem with hex file?
Hi
Yes, exactly the same... even redownloaded the pickit 3 zip file to make sure...?
Running windows XP...
The only change I've made since I last used flowcode was that I installed a usb to serial converter driver...
Could this be the problem?
Thanks
Clauds
Yes, exactly the same... even redownloaded the pickit 3 zip file to make sure...?
Running windows XP...
The only change I've made since I last used flowcode was that I installed a usb to serial converter driver...
Could this be the problem?
Thanks
Clauds
- 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: Pickit 3 problem with hex file?
Hello Clauds,
I cant really see the USB to serial device causing you any problems. Have you changed the location of your Flowcode project files at all? It may also be worth opening MPLAB and ensuring the firmware on the PICkit is ok and up to date.
I cant really see the USB to serial device causing you any problems. Have you changed the location of your Flowcode project files at all? It may also be worth opening MPLAB and ensuring the firmware on the PICkit is ok and up to date.
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: 14
- Joined: Fri May 13, 2011 6:25 pm
- Has thanked: 3 times
- Been thanked: 2 times
- Contact:
Re: Pickit 3 problem with hex file?
Hi Benj
I was able to program the microcontroller by compiling in Flowcode, opening the asm file and then copy and paste to a project through MPlab..
It worked perfectly... So there is def no problem with MPlab or pickit...
I have also not moved any files on any programs at all, much less flowcode files...
I also tested making a new program through flowcode instead of just calling up an already made one, but still to no avail...
It's is one of the strangest problems I have had...
Everything works perfectly through flowcode or through MPlab (I don't have them on at same time when trying to program) except for the download to chip in flowcode...
?
Thanks
I was able to program the microcontroller by compiling in Flowcode, opening the asm file and then copy and paste to a project through MPlab..
It worked perfectly... So there is def no problem with MPlab or pickit...
I have also not moved any files on any programs at all, much less flowcode files...
I also tested making a new program through flowcode instead of just calling up an already made one, but still to no avail...
It's is one of the strangest problems I have had...
Everything works perfectly through flowcode or through MPlab (I don't have them on at same time when trying to program) except for the download to chip in flowcode...
?
Thanks
- 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: Pickit 3 problem with hex file?
Hello,
The last time we had reports of a problem like this it was an antivirus software that was causing problems. Are you running antivirus or firewall software? If you are then can you let us know what they are and try making the PK3CMD application an exception to see if this helps.
It is located in this directory. C:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PICkit3
If this doesn't help then you could also try making the Flowcode exe an exception and see if this changes anything.
As you say it was working fine so potentially it may have just been a system / software update that is now causing the issue.
The last time we had reports of a problem like this it was an antivirus software that was causing problems. Are you running antivirus or firewall software? If you are then can you let us know what they are and try making the PK3CMD application an exception to see if this helps.
It is located in this directory. C:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PICkit3
If this doesn't help then you could also try making the Flowcode exe an exception and see if this changes anything.
As you say it was working fine so potentially it may have just been a system / software update that is now causing the issue.
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: 14
- Joined: Fri May 13, 2011 6:25 pm
- Has thanked: 3 times
- Been thanked: 2 times
- Contact:
Re: Pickit 3 problem with hex file?
Hi Benj
I had my antivirus disabled and still could not get it to work...
I played in pk3cmd and manually tried a bunch of options and finally came right...
I had to change my parameters, but now have it working...
I changed it from:
-P%p -F%f.hex -E -M -Y
to:
-P%p -F"%f.hex" -E -M -Y"%f.hex"
It is working perfectly now...
Not sure why I've had to change it, but at least it is done now, and might help someone if they get stuck on same problem
Thanks for all the guidance
I had my antivirus disabled and still could not get it to work...
I played in pk3cmd and manually tried a bunch of options and finally came right...
I had to change my parameters, but now have it working...
I changed it from:
-P%p -F%f.hex -E -M -Y
to:
-P%p -F"%f.hex" -E -M -Y"%f.hex"
It is working perfectly now...
Not sure why I've had to change it, but at least it is done now, and might help someone if they get stuck on same problem
Thanks for all the guidance
- 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: Pickit 3 problem with hex file?
Hello,
Glad you have it working again and thanks for letting us know. I will add the findings to the FAQ topic.
Glad you have it working again and thanks for letting us know. I will add the findings to the FAQ topic.
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
- Eric Brouwer
- Posts: 20
- Joined: Sat Oct 30, 2010 10:17 am
- Has thanked: 3 times
- Been thanked: 11 times
- Contact:
Re: Pickit 3 problem with hex file?
Hi Claudsmrclauds wrote:Hi everyone...
Need some help quickly...
I've been using a pickit 3 to download my programs to the ucontroller...
I last used it 2 weeks ago and today when I tried to download it, it simply says:
Return code = 0
Launching the programmer...
C:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PICkit3\pk3cmd.exe -P16F877A -FFlash test.hex -E -M -Y
HEX File not found
Return code = 1
Flowcode was unable to transfer the flowchart to the microcontroller. Check the programmer options and physical connections.
It was working 2 weeks ago?
Things I've tried to correct it to no avail:
Made sure that mplab is sending the files correctly... It is
Make sure mplab is not open when using flowcode...
Redid the setting and configuration for compiler and programmer
Moved workfolders into documents library
rebooted the pc multiple times
Does anyone have any suggestions?
Thanks
Clauds
From your info, I notice that your original file you had problems with, was "Flash Test.FCF" When using the PicKit3, I have noticed that file names can not contain any spaces. Instead of "Flash Test.fcf", use "Flash_Test.fcf"