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

#FUSE NOMCLR not working on 10F320/322 parts

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



Joined: 13 May 2013
Posts: 51
Location: Arizona

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

#FUSE NOMCLR not working on 10F320/322 parts
PostPosted: Fri Sep 23, 2016 10:18 pm     Reply with quote

#FUSE NOMCLR not working on 10F320/322 parts

version CCS 5.062

Mad
Ttelmah



Joined: 11 Mar 2010
Posts: 19222

View user's profile Send private message

PostPosted: Sat Sep 24, 2016 1:59 am     Reply with quote

Yes it does.....

Are you possibly compiling in MPLAB?. You need to select 'release' or it'll try to compile in debug mode, which means that MCLR is reserved.

If you look at the 'reserved resources' for the debugger, it says:

General Resources Used - Headers
MCLR/Vpp shared for programming.

You can't use the pin for I/O in debug mode, and MPLAB will always program it as MCLR in this mode (turning off the NOMCLR fuse). Remember also the pin is input only (no output on this).
avatarengineer



Joined: 13 May 2013
Posts: 51
Location: Arizona

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

#FUSE NOMCLR not working on 10F320/322 parts
PostPosted: Sat Sep 24, 2016 10:41 am     Reply with quote

I realize the Vpp pin in an input only.

The scenario is this;

-Compiled in CCS and imported as COF,
-Using Pickit 3 (is not supplying the power)
-The Reset is released per MPLAB(v8.89)
-Debug is not enabled.

Are you recommending that a NODEBUG FUSE
is required? is it defaulting into debug mode?

I've not had this occur with 12F,16F,18F parts in the past 10 years.
Something seems different.
+++ I manually set configuration bits in MPLAB before programming
to define the VPP as an input and have MCLR pulled to VDD.
The pin still acts as a MCLR.


Confused
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Sep 24, 2016 10:56 am     Reply with quote

Look at the list of "Configuration Fuses" at the end of the .LST file, after
you compile. What does it show ? The .LST file will be in your project
directory after a successful compilation.
avatarengineer



Joined: 13 May 2013
Posts: 51
Location: Arizona

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

10F322 Fuses
PostPosted: Sat Sep 24, 2016 11:06 am     Reply with quote

end of list file;

Word 1: 3F9E INTRC BROWNOUT WDT PUT NOMCLR NOPROTECT LVP LPBOR BORV19 NOWRT NODEBUG

Confused
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Sep 24, 2016 11:08 am     Reply with quote

First off, add these fuses:
Code:

#fuses NOWDT, NOLVP
avatarengineer



Joined: 13 May 2013
Posts: 51
Location: Arizona

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

10F322 Fuses
PostPosted: Sat Sep 24, 2016 11:13 am     Reply with quote

PCM, Very Good !

I doubt the WDT is the issue, but
Low Voltage Programming messes with the ability
to disable the MCLR?

It's very curious how hardware is routed internally.

Thank you!
Cool
avatarengineer



Joined: 13 May 2013
Posts: 51
Location: Arizona

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

Invaluable
PostPosted: Sat Sep 24, 2016 11:16 am     Reply with quote

I must say this forum is invaluable.

There are many forums for various programming,
yet this is a really good one !

Very Happy
Ttelmah



Joined: 11 Mar 2010
Posts: 19222

View user's profile Send private message

Re: 10F322 Fuses
PostPosted: Sat Sep 24, 2016 2:00 pm     Reply with quote

avatarengineer wrote:
PCM, Very Good !

I doubt the WDT is the issue, but
Low Voltage Programming messes with the ability
to disable the MCLR?

It's very curious how hardware is routed internally.

Thank you!
Cool


Very true.

You will find that in fact the MCLR pin can reset the chip, even if MCLR is disabled, if if goes a small fraction of a volt above the Vdd level. If you are using it as an input, you need to add external protection to prevent this, unless you are very sure that the signal involved cannot do this - applied to most PIC's....

The internal routing is quite 'interesting' on this pin...
temtronic



Joined: 01 Jul 2010
Posts: 9107
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Sep 25, 2016 5:40 am     Reply with quote

In the 'early days' you could 'exploit' the internal hardware to actually read a protected PIC and recover the code....

sigh, I miss the those days

Jay
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