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

Configuration bits not handled on 18F4410..????

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



Joined: 16 Apr 2007
Posts: 26
Location: Arizona

View user's profile Send private message Visit poster's website

Configuration bits not handled on 18F4410..????
PostPosted: Wed Aug 01, 2007 9:09 pm     Reply with quote

There is one other post about this subject (ICDWarn0042), but I believe this is a CCS Compiler Configuration Bit problem, not ICD-2 as stated in the resp to the post.

We are trying to compile code for the 4410 and keep getting ICDWarn0042 with the following messages that prevent entering DEBUG mode:

ICDWarn0042 Protect bit (WRTD:Data EEPROM Write Protect) is enabled
ICDWarn0042 Protect bit (CPD:Data EEPROM Read Protect) is enabled

We believe that this is not an ICD-2 issue because we were getting additional ICDWarn0042 messages, but were able to eliminate them by setting additional configuration bit options, as listed in the CCS device file for the 4410. We cannot find any way to eliminate these messages except to keep accepting the ICD-2 offering to turn the bits off after every compile and attempt to program the part (in DEBUG mode).

The problem is only in DEBUG mode and not in PROGRAMMER mode on the ICD-2

We did a search on Microchip's site but were not able to find anything about how to resolve this problem.

Can someone help out on this..???

Thank you..
_________________
Thank you,
Chris
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Aug 01, 2007 9:30 pm     Reply with quote

1. Post your version of the CCS compiler.

2. Post your version of MPLAB.

3. Post a very small test program that shows the problem.
(Like 10 lines, total). Be sure to post all #include, #device, #fuses
and #use statements.
ChrisL



Joined: 16 Apr 2007
Posts: 26
Location: Arizona

View user's profile Send private message Visit poster's website

PostPosted: Thu Aug 02, 2007 12:59 am     Reply with quote

Here is the environment...

MPLAB 07.60.00.15
ICD-2 10-00397-R3
CCS V4.025,37554

Code:
#include <18f4410.h>
#fuses HS, NOWDT, NOPROTECT, BROWNOUT, NOPUT, NOWRT, NOLVP
#use delay(clock=18432000)
BYTE a_variable;

void Main()
{
   While(1)
   {
         a_variable = 0x01;
   }   

_________________
Thank you,
Chris
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 02, 2007 1:32 am     Reply with quote

1. What is the PIC's Vdd voltage ?

2. Have you ever programmed any of the protection bits ?

3. What's the package type of the PIC ?

4. Is it soldered into the board ?
ckielstra



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

View user's profile Send private message

PostPosted: Thu Aug 02, 2007 1:44 am     Reply with quote

Have you tried with another CCS version? All v4.0xx versions still have the official state of a beta release. The last known stable release is v3.249 and still available for download from the CCS website.
The first batch of v4.0xx releases were crap, only at about v4.030 things started to work again more or less as they were in v3.249. The most recent release is v4.047, a total of 22 bugfix releases since your working version...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 02, 2007 1:56 am     Reply with quote

I should have said that I compiled his program for both vs. 4.025 and
vs. 4.046. The .LST files look the same. The fuses are the same.

Fuses for 4.025:
Code:
Configuration Fuses:
   Word  1: 0200   HS NOIESO NOFCMEN RESERVED
   Word  2: 1E1F   BROWNOUT NOWDT BORV25 NOPUT WDT32768
   Word  3: 8300   PBADEN CCP2C1 NOLPT1OSC MCLR RESERVED
   Word  4: 0081   STVREN NODEBUG NOLVP NOXINST RESERVED
   Word  5: 400F   NOPROTECT NOCPB
   Word  6: 600F   NOWRT NOWRTC NOWRTB
   Word  7: 400F   NOEBTR NOEBTRB


Fuses for 4.046:
Code:
Configuration Fuses:
   Word  1: 0200   HS NOIESO NOFCMEN RESERVED
   Word  2: 1E1F   BROWNOUT NOWDT BORV25 NOPUT WDT32768
   Word  3: 8300   PBADEN CCP2C1 NOLPT1OSC MCLR RESERVED
   Word  4: 0081   STVREN NODEBUG NOLVP NOXINST RESERVED
   Word  5: 400F   NOPROTECT NOCPB
   Word  6: 600F   NOWRT NOWRTC NOWRTB
   Word  7: 400F   NOEBTR NOEBTRB
ckielstra



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

View user's profile Send private message

PostPosted: Thu Aug 02, 2007 3:24 am     Reply with quote

Ok, so it looks like the problem is not in the fuse settings. Even the ancient v3.226 gives the same fuse settings.
Still, v4.025 is a crappy version and sooner or later ChrisL is going to run into problems.
ChrisL



Joined: 16 Apr 2007
Posts: 26
Location: Arizona

View user's profile Send private message Visit poster's website

PostPosted: Thu Aug 02, 2007 4:15 am     Reply with quote

PCM Programmer

1. What is the PIC's Vdd voltage ?

5 Volts...

2. Have you ever programmed any of the protection bits ?

No...

3. What's the package type of the PIC ?

TQFP

4. Is it soldered into the board ?

Yes it is...


ckielstra


Have you tried with another CCS version?

No, bit we do have 4.031...
_________________
Thank you,
Chris
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