View previous topic :: View next topic |
Author |
Message |
mikehagans
Joined: 20 Jun 2007 Posts: 7 Location: Texas, USA
|
Verification Failure on CCS Development Kit using ICD-U64 |
Posted: Sun Dec 13, 2009 9:12 am |
|
|
Greetings smart people.
I bought the CCS Capacitive Touch Development Kit and upgraded PCW (now running 4.103) recently. I'm getting a verification error on the fuse programming even when trying the simplest sample programs (blinky LED) supplied for the demo board in the kit. The demo board uses a 16LF727.
I get the same result if I try to run the blinky led program from debug in PCW or if I compile it with PCW (no warnings or errors) and burn the hex file into the target using ccsload directly.
I'm hoping this is some newbie setup mistake on my part... something that I don't even know I don't know...
Here's the ridiculously simple code:
Code: |
#include <16lf727.h>
#device ICD=TRUE
#fuses HS,NOWDT
#use delay(INTERNAL=8mhz)
#define GREEN_LED PIN_A1
void main() {
while (TRUE) {
output_low (GREEN_LED);
delay_ms (1000);
output_high (GREEN_LED);
delay_ms (1000);
}
}
|
Here's the error:
It looks like the actual and expected don't match on the second config byte, but neither seems to match the fuses I specified in the code snippet.
Please help a newbie out.
Humbly submitted,
Mike |
|
|
Guest
|
|
Posted: Mon Dec 14, 2009 12:57 am |
|
|
Change HS ti INTRC_IO. |
|
|
mikehagans
Joined: 20 Jun 2007 Posts: 7 Location: Texas, USA
|
|
Posted: Mon Dec 14, 2009 9:50 am |
|
|
Anonymous wrote: | Change HS ti INTRC_IO. |
Thanks for replying, but this makes no difference. I still get exactly the same verification results error screen as in the original post. Neither the actual nor the expected fuses listed in the results match what I expected for the fuse settings. (For example, NOWDT in #fuses shows up as WDT in the verification results)
Mike |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Dec 14, 2009 12:21 pm |
|
|
Quote: | The demo board uses a 16LF727. |
Your problem is with Config Word #2.
In the 16LF727 data sheet, most of the bits in Config Word #2
are not used and default to 1's. The only available bits are the
VCAP bits. But there is a note that says:
Quote: |
bit 5-4 VCAPEN<1:0>: Voltage Regulator Capacitor Enable bits
For the PIC16LF72X:
These bits are ignored.
All VCAP pin functions are disabled.
For the PIC16F72X:
00 =VCAP functionality is enabled on RA0
01 =VCAP functionality is enabled on RA5
10 =VCAP functionality is enabled on RA6
11 = All VCAP functions are disabled (not recommended)
|
So the VCAP bits probably read as 1's with the 16LF727, but there's no
guarantee that they do. I don't have the hardware so I can't verify it.
Your programmer claims it's reading 0x3FCF, which I suppose is possible.
That means it's reading the VCAP bits as 0's.
The problem is in the "Expected" result column. It expects 0000 and this
is clearly wrong, according to the data sheet. What could cause this ?
I think one cause could be that CCS has incorrect fuse data in the
devices4.dat file for the 16LF727. If you have the full IDE (PCW), then
you can use the Device Editor to check this, and correct this if necessary.
I believe the fuses are shown in the upper right corner of the Device
Editor. (I don't have the full IDE).
However, that might not be the problem. There are at least 20 topics
in the Programmer forum on "Verification Errors". Many different
solutions are proposed. Here is one thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=34168&highlight=verification
My personal solution is to use ICD2 and MPLAB. I've never had a
verification error. |
|
|
mikehagans
Joined: 20 Jun 2007 Posts: 7 Location: Texas, USA
|
|
Posted: Fri Dec 18, 2009 2:39 pm |
|
|
Thanks for the thoughtful replies. I've sent in a tech support request with CCS and they sent me a new ccsload (ICD programming software) that was supposed to address my issue. It didn't make any difference.
This could be a simple something that I'm doing wrong, but I followed the CCS instructions, using the CCS IDE and the CCS development kit. Very frustrating - it's a miserable first impression for the quality of CCS products and tech support.
Hopefully they will figure out what's wrong yet...
Of course, I'm losing days of time...
Sorry to rant - your suggestions make more sense than CCS'. I'll check the devices file and see if I can find their mistake.
Happy Holidays!
Mike |
|
|
hans_kurth Guest
|
Re: Verification Failure on CCS Development Kit using ICD-U6 |
Posted: Sat Dec 26, 2009 11:49 am |
|
|
I have exactly the same problem with Capacitive Touch Development Kit. Compiler V4.103 CCSload V4.022. Now I have removed the file devices4.dat and file devices4p.dat renamed to devices4.dat. Apparently this is an older version, that does work better for the PICLF727. No verification error and no error message when you start the debugger. |
|
|
|