ARRL

Forum Home - Rules - Help - Login - Forgot Password
Members can access, post and reply to the forums below. Before you do, please first read the RULES.

PIC Programming for Beginners

Apr 2nd 2012, 02:50

K0IQE

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
Following the ARRL PIC Programming for Beginners I get the following error when I try to program the target using Ch3 files on CD.

Programming Target (4/1/2012 10:37:43 PM)
Erasing Target
Programming Program Memory (0x0 - 0xA8)
Programming Program Memory (0x3FE - 0x3FF)
Verifying Program Memory (0x0 - 0xA8)
PK2Error0027: Failed verify (Address = 0x0 - Expected Value 0x0 - Value Read 0x3FFF)

Also after programming and Clicking View->Program Memory, all locations are zero except the last location which has a value of 0x38.

Program runs OK using MPLAB Sim

Alvin
Apr 2nd 2012, 17:23

WA8SME

Super Moderator

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
Alvin, what is the programmer that you are using?
Mark, mspencer@arrl.org
Apr 2nd 2012, 20:20

K0IQE

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
The hardware is from Canakit with a USB connection to a laptop running Windows 7

S/W is MPLAB IDE version 8.10.00
Programmer is PICkit 2 version 0.0.3.30

All files were loaded from the ARRL supplied CD and none have been updated via internet.
Alvin
Apr 2nd 2012, 20:47

WA8SME

Super Moderator

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
Alivn, I suspect the error 27 is coming from a problem with the CanaKit. There was a problem with a FET on the programmer that would currupt the OSCCAL value during programming and the programming would abort with the error 27 message (a timing issue). Did you purchase the programmer direct from CanaKit?

I have published a note about the problem and a possible work around. If you give me your e-mail direct, I can send it to you. If you purchased your programmer from the ARRL, they have been replacing the malfunctioning programmers with repaired versions. Contact Jackie at 860-594-0200.
Mark at mspencer@arrl.org
Apr 2nd 2012, 20:47

WA8SME

Super Moderator

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
Alivn, I suspect the error 27 is coming from a problem with the CanaKit. There was a problem with a FET on the programmer that would currupt the OSCCAL value during programming and the programming would abort with the error 27 message (a timing issue). Did you purchase the programmer direct from CanaKit?

I have published a note about the problem and a possible work around. If you give me your e-mail direct, I can send it to you. If you purchased your programmer from the ARRL, they have been replacing the malfunctioning programmers with repaired versions. Contact Jackie at 860-594-0200.
Mark at mspencer@arrl.org
Apr 2nd 2012, 23:27

K0IQE

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
Kit / Board was purchased from ARRL I'll contact Jackie in the morning.

Also, look for a direct e-mail as I would be interested in the workaround.

TNX for the help.
Alvin
May 9th 2012, 01:48

WB0PHV

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
I started another thread related to a question on the installation of the CD ROM software, specifically the p16f676.inc file not found error when trying to build the chapter 3 project in MPLab, but thought I would post it here as well. I did find the .inc file on Microchip's website, and placed it in the c:/program files (x86)/microchip/MPASM Suite folder, but I still get the build error. I wonder if MPLab expects all files to be in the /program files.. not the /program files (x86) folder when running under Windows 7.

Anyway, I would not care where the file resides as long as the compile was working, but apparently there is an error still. I must be the exception rather than the rule, otherwise everyone would be stuck in the mud trying to get this to execute. I apologize ahead of time if I am overlooking something simple.

thanks for your help,
Jim WB0PHV
May 9th 2012, 01:58

WB0PHV

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
I should correct something I wrote above. Although I did find the .inc file on microchip's web site, the file did already reside on my hard drive and I did tell MPLab to use that inc file in the ...program files (x86)/Microchip/MPASM Suite folder by choosing this file when right clicking on the P16F676.INC (file not found) line in the window in MPLab. So, at least the file was there on my drive, and I could associate it with the Ch 3 program build, but the build still did not complete successfully.

thanks,
Jim
May 9th 2012, 03:23

WB0PHV

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
Got this resolved and the ch 3 program is being built with no errors. Reading the error message in the MPLab output window was the key. A file pathname was too long, so changing the name of a folder to a shorter name was all it took, after getting the .inc file location made known to MPLab as described in the previous post.

Jim
WB0PHV
Oct 24th 2012, 13:32

WD4MRR

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
I have the error message. Faild verify (address = 0x0 - Expected value 0x0 - value read 0x3A80) It is a Canakit and I got it through the ARRL
email wd4mrr@bellsouth.net Help!!
Oct 24th 2012, 15:47

WA8SME

Super Moderator

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
Can you give a little more specifics? Do you get the message when you are trying to program or during some other time during the process. If you are getting the error during programming with a Canakit programmer, there might be a timing issue.

Mark
Jan 24th 2013, 21:31

WA9GMW

Joined: Apr 4th 1998, 00:00
Total Topics: 0
Total Posts: 0
I received my kit about a month ago and everything looked good. I checked the parts list and all the parts were there according to the list. As I started to use the kit while working my way through the ARRL Book I found that one of the 2) PIC16F676 chips does not have a calibration value in the 1024 location of the chip. The first one I used has 0x44 but the second chip has nothing (3FF) at that location, in fact at all locations. All From ARRL
Oct 14th 2013, 00:00

N2WMD

Joined: Jun 25th 2001, 00:00
Total Topics: 0
Total Posts: 0
I have misplaced the disk that came with my book. Anybody have any idea where I can find a new disk or access to the code?

Back to Top