Hi I'm trying to program at 18F14K22 pic. I've copied the definition file for the 18F14K22 to my Flowcode v4\FCD directory and installed the HiTech compiler and changed the required file paths and parameters as per the instructions given in the "Using the HiTech compiler article (viewtopic.php?f=26&t=6812). My program compiles without issue but I get the flowing error when trying to write to the chip;
"Could not ID the onboard chip - assuming it is the one specified in the configuration screen, i.e.PIC18F14K22" when I click ok I get
"PICmicro has not been erased. Continue?" When I click yes I get
"Programming failed: Scheme size is zero or negative"
I've tried using a PICkit3 programmer as well with pretty much the same result.
Any help would be greatly appreciated.
Thanks
Amy
Problems programming a pic18F14K22
Moderator: Benj
- 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: Problems programming a pic18F14K22
Hello Amy,
Here is a set of updated files for PPP.
Extract the files into your "C:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PPP" folder.
I have also included a FCD for the device which can be placed into the "C:\Program Files\Matrix Multimedia\Flowcode V4\FCD" folder.
PICkit 3 does seem to have issues, What programmer settings are you using in the compiler options window.
Here is a set of updated files for PPP.
Extract the files into your "C:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PPP" folder.
I have also included a FCD for the device which can be placed into the "C:\Program Files\Matrix Multimedia\Flowcode V4\FCD" folder.
PICkit 3 does seem to have issues, What programmer settings are you using in the compiler options window.
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
Re: Problems programming a pic18F14K22
Hi Ben
The programmer settings I am using in the compiler options window is as follows;
Under Programmer
Location: C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Tools\PPP\PPPv3.exe
Parameters: -cs 2 -chip PIC%p -nogui "%f.hex"
Use external program to set configuration options is checked
Location: C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Tools\PPP\PPPv3.exe
Parameters: -cs 2 -chip PIC%p -config
Thanks for your help
The programmer settings I am using in the compiler options window is as follows;
Under Programmer
Location: C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Tools\PPP\PPPv3.exe
Parameters: -cs 2 -chip PIC%p -nogui "%f.hex"
Use external program to set configuration options is checked
Location: C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Tools\PPP\PPPv3.exe
Parameters: -cs 2 -chip PIC%p -config
Thanks for your help
- DavidA
- Matrix Staff
- Posts: 1076
- Joined: Fri Apr 23, 2010 2:18 pm
- Location: Matrix Multimedia Ltd
- Has thanked: 58 times
- Been thanked: 258 times
- Contact:
Re: Problems programming a pic18F14K22
Hi Amy,
Those command line parameters for PPP look correct, did the updated files for PPP and the FCD work for you?
Those command line parameters for PPP look correct, did the updated files for PPP and the FCD work for you?
Re: Problems programming a pic18F14K22
Hi David
No unfortunately I'm still encountering the same errors. I'll keep playing around and see if I can get it to work unless you can suggest anything else I should try.
Thanks
Amy
No unfortunately I'm still encountering the same errors. I'll keep playing around and see if I can get it to work unless you can suggest anything else I should try.
Thanks
Amy
- 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: Problems programming a pic18F14K22
Hello Amy,
What if you use the PICkit 3 programming software.
PICkit 3 Stand Alone Programmer App V1.0 Windows
http://www.microchip.com/Microchip.WWW. ... ts=pickit3#
You should be able to select the 18F as the device family and then hopefully the PICkit should find your device. You will need to ensure that the jumper on the EB006 is in the ICD2 or ICSP position depending on your version of the EB006.
Regarding programming though PPP I will see if we have one of these chips and do some testing.
What if you use the PICkit 3 programming software.
PICkit 3 Stand Alone Programmer App V1.0 Windows
http://www.microchip.com/Microchip.WWW. ... ts=pickit3#
You should be able to select the 18F as the device family and then hopefully the PICkit should find your device. You will need to ensure that the jumper on the EB006 is in the ICD2 or ICSP position depending on your version of the EB006.
Regarding programming though PPP I will see if we have one of these chips and do some testing.
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