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 CCS Technical Support

Configuration Memory Errors

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



Joined: 06 Jul 2005
Posts: 2

View user's profile Send private message

Configuration Memory Errors
PostPosted: Thu Jul 07, 2005 10:32 pm     Reply with quote

Hi
I have added PIC12F683 using Device editor and it compiles well but i cant flashed the program in without errors..
It always give me the Configuration Memory Errors where it states that e.g WDT expected to be OFF (as set using fuse) but is received as ON..

Field expected received Voltage
OSC Internal RC No Clock External RC Clockout 5.000000
WDT Off On 5.000000
MCLRE Internal External 5.000000

I aso cant use the setup_oscillator command as the compiler said its a undefined identifier.. so i read the forum and got around it by setting OSCCON directly..
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jul 07, 2005 11:26 pm     Reply with quote

I don't have the Device Editor. The only thing I have to look at is
this screen shot:
http://www.ccsinfo.com/images/content/device_editor.gif
Based on that, it looks like you should setup your fuses in the
following way. These values are entered in the upper right
corner of the Device Editor.
Code:

Fuse           Mask    Value   CW
 LP            0007    0000     1
 XT            0007    0001     1
 HS            0007    0002     1
 EC_IO         0007    0003     1
 INTRC_IO      0007    0004     1
 INTRC         0007    0005     1
 RC_IO         0007    0006     1
 RC            0007    0007     1

 WDT           0008    0008     1
 NOWDT         0008    0000     1           

 PUT           0010    0000     1
 NOPUT         0010    0010     1

 MCLR          0020    0020     1
 NOMCLR        0020    0000     1
 
 PROTECT       0040    0000     1
 NOPROTECT     0040    0040     1

 CPD           0080    0000     1
 NOCPD         0080    0080     1

 NOBROWNOUT    0300    0000     1
 BROWNOUT_SW   0300    0100     1
 BROWNOUT_NOSL 0300    0200     1
 BROWNOUT      0300    0300     1

 IESO          0400    0400     1
 NOIESO        0400    0000     1

 FCMEN         0800    0800     1
 NOFCMEN       0800    0000     1


Also, for the Device Identification box, I looked up the Device ID
in the programming specification, and the HW Mask is sort of
obvious. With respect the C Device # and MPLAB #, I'm not sure.
Code:

C Device #:    683    (a guess)
MPLAB #:      6683   (just a guess)
HW Device ID: 0460
HW Mask:      FFE0


---------------------------
Edited to fix a broken link.


Last edited by PCM programmer on Tue Nov 14, 2006 2:21 pm; edited 1 time in total
joe_
Guest







PostPosted: Fri Jul 08, 2005 12:19 am     Reply with quote

yup, my fuse configuration are the same. The settings and mask are correct also.. But the problem still exist..

Is it possible that only the new compiler can resolve this?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 08, 2005 12:43 am     Reply with quote

What is your programmer ? Is it the CCS ICD ?
Are you using PCW to control it ?

It could be that PCW doesn't know how to program the 12F683.
There's a selection in the Device Editor for Programming Algorithm,
but what if your version is so old, that it won't program that PIC
or any similar PIC ?

If you have the CCS ICD, what if you try to use the Standalone
programmer software instead of PCW ? Again, I don't know
if this will work because I don't have PCW or the CCS ICD.
http://www.ccsinfo.com/download.shtml#ICDS

After this point, I'm out of ideas.
Guest
Guest







PostPosted: Sun Jul 10, 2005 4:14 pm     Reply with quote

joe_ wrote:

Is it possible that only the new compiler can resolve this?

Idea I never would have thought of that!

PCB only costs $125. Idea

You've been at this for almost a week now. By the time you will have figured it out, your company could have bought for you the full-blown PCB, PCM, PCH, PCW, PCWH suite, Microchip's own MPLAB C30, MPLAB C18, and another competitor's PIC12/PIC16/PIC18/DSPICC suite 3 times over. But instead, all that money would have been spent paying someone to spend a week trying to get around an expired maintenance fee. Go figure. Confused
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jul 10, 2005 4:20 pm     Reply with quote

Quote:
PCB only costs $125

The 12F683 is not supported by PCB. It requires the PCM compiler.
See the list of devices supported by each compiler:
http://www.ccsinfo.com/devices.shtml

Also he has PCW, and the maintenance package for it costs $200 (US).
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