CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Verification problem with V4.074

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
KL



Joined: 24 Feb 2004
Posts: 11

View user's profile Send private message

Verification problem with V4.074
PostPosted: Fri Sep 19, 2008 10:37 am     Reply with quote

I have a program that was written and compiled with an earlier version compiler. We upgraded to V4.074 and I made a few minor changes to the code (Nothing to do with Fuse settings). When I re-compile with V4.074 and attempt to flash the processor (PIC18F6720), I receive a verification error for the configuration fuses.

Actual Expected

CCP2C1 CCP2C1
RESERVED
STVREN STVREN

Where "RESERVED" is in red

Actual Data (Hex) 00 22 0E 0E 83 01 81 00 FF C0 00 E0 FF 40
Expected Data (Hex) 00 22 0E 0E 83 03 81 00 FF C0 00 E0 FF 40

What do I need to do to correct this problem?

Thank you for the input.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Sep 19, 2008 6:56 pm     Reply with quote

Quote:
Actual Data (Hex) 00 22 0E 0E 83 01 81 00 FF C0 00 E0 FF 40
Expected Data (Hex) 00 22 0E 0E 83 03 81 00 FF C0 00 E0 FF 40
The 03 value seems correct, see the datasheet Table 23-1, note 3.
Quote:
3: Unimplemented in PIC18FX620 and PIC18FX720 devices; maintain this bit set.

But... Register 23-5, note 1 (page 240) mentions:
Quote:
Note 1: Unimplemented in PIC18FX620 and PIC18FX720 devices; read as ‘0’.
So the documentation on this bit is confusing. I'm not sure what the correct value should be.

You didn't mention the fuses you have set in your program so I used the following configuration for testing:
Code:
#fuses HS,NOWDT,PUT, NOPROTECT, NOLVP
My v4.077 generates the same 0x01. I don't have the latest compiler release so can't check if it has been changed.

Quote:
I have a program that was written and compiled with an earlier version compiler.
What was the version number of this old compiler? I tried with v3.249 and v4.038 but both versions generate a 0x01 instead of 0x03.

Which programmer are you using? ICD2, UCD40, etc?
Which IDE are you using? CCS, MPLAB, etc? And what version number?

A workaround:
If you have the CCS Windows compiler version you can use the Chipedit program to change the configuration fuses. Chipedit is available in the IDEUTILS package from the websites download section.
Select the PIC18F6720 device and in the top-right table change the fuse setting:
Code:
           MASK VALUE CW
RESERVED   0200  0000  3    to  0200 0200 3
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group