Searching \ for '[PIC]: Flash Protection' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/microchip/memory.htm?key=flash
Search entire site for: 'Flash Protection'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Flash Protection'
2002\07\14@023723 by Jinx

face picon face
Do I assume correctly that Flash memory on a 16F877 can't
be enabled for internal writes and disabled for external reads
at the same time ? (Table 4-1 of F877 manual). Is it just that
simple or is there a workaround ?

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body


2002\07\14@121028 by Byron A Jeff

face picon face
On Sun, Jul 14, 2002 at 06:33:42PM +1200, Jinx wrote:
> Do I assume correctly that Flash memory on a 16F877 can't
> be enabled for internal writes and disabled for external reads
> at the same time ? (Table 4-1 of F877 manual). Is it just that
> simple or is there a workaround ?

It is just that simple. An unfortunate side effect that one extra bit in the
config register could have resolved.

BTW from my recent reading of of the 18F series chips, the config register
is readable and writable programmatically. So it should be possible to to
only disable code protection under program control. So for example one could
send an encrypted stream with an authorization code. The internal program can
temporarily disable code protection, write the new code, then reenable it.

Seems to be workable.

BAJ

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam@spam@mitvma.mit.edu with SET PICList DIGEST in the body


2002\07\14@174544 by Jinx

face picon face
> > Do I assume correctly that Flash memory on a 16F877 can't
> > be enabled for internal writes and disabled for external reads
> > at the same time ? (Table 4-1 of F877 manual). Is it just that
> > simple or is there a workaround ?
>
> It is just that simple. An unfortunate side effect that one extra bit
> in the config register could have resolved.

Oh, fudge

I'm debating whether to remove RB6 and/or RB7 in that case to
thwart "enthusiastic amateurs", once the code has been finalised

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body


2002\07\14@202818 by M. Adam Davis

flavicon
face
Jinx wrote:

>Oh, fudge
>
>I'm debating whether to remove RB6 and/or RB7 in that case to
>thwart "enthusiastic amateurs", once the code has been finalised
>
>
But, but...  Information *wants* to be free!  Your program _yearns_ to
be extended!

;-)

All kidding aside, any chip missing pins is just screaming to be hacked.
Might make the enthusiastic even more so.

But then, if the code is finalised then you don't need to update the
chip, right?

If you are using code space for  long term variable storage then (IIRC)
you can selectively disable protection for portions of the code space -
just make certian your code never jumps to anywhere in that space.

Alternately make the circuit upwards compatible for an 18f chip, and
include in the cost a free one-time hardware upgrade.  Then don't change
the code until the new chip comes out.

-Adam

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam.....mitvma.mit.edu with SET PICList DIGEST in the body


2002\07\14@231351 by Jinx
face picon face
> >I'm debating whether to remove RB6 and/or RB7 in that case to
> >thwart "enthusiastic amateurs", once the code has been finalised
> >
> >
> But, but...  Information *wants* to be free!  Your program _yearns_ to
> be extended!

So, set it free and if it doesn't come back it wasn't yours to keep ? ;-)

A fine sentiment for smoochy feel-good movies, not for valuable
data unfortunately

> All kidding aside, any chip missing pins is just screaming to be hacked.
>  Might make the enthusiastic even more so.
>
> But then, if the code is finalised then you don't need to update the
> chip, right?

The data needs to be re-written on a regular basis and stay very very
confidential. Only the program code stays the same. There will be
safeguards in place to detect any tampering with the PIC housing,
and if tampering is detected renders the data valueless. IOW, the data
has meaning unless it's read by anyone authorised, so there is liltle
point in hacking and absolutely nothing to gain. Removing ICSP pins
is just one of the protection measures in place

> Alternately make the circuit upwards compatible for an 18f chip, and
> include in the cost a free one-time hardware upgrade.  Then don't
> change the code until the new chip comes out

For this prototype I have to stick with the F877 (time constraints) but
in future I would consider the 18F series

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email EraseMElistservspam_OUTspamTakeThisOuTmitvma.mit.edu with SET PICList DIGEST in the body


2002\07\15@004707 by Jim Robertson

flavicon
face
>
>
>On Sun, Jul 14, 2002 at 06:33:42PM +1200, Jinx wrote:
> > Do I assume correctly that Flash memory on a 16F877 can't
> > be enabled for internal writes and disabled for external reads
> > at the same time ? (Table 4-1 of F877 manual). Is it just that
> > simple or is there a workaround ?


I believe the 16F87xA family resolve this problem as they have
separated code protection and write protection into different
config bits. I have one here and I will be testing this later today
I hope.


{Quote hidden}

Nope. The 18Fxxx can program its own config area but it cannot remove code
protection as it cannot write a CP bit from '0' to '1'

See DS39564A- section 19.4.1

In any case the 18Fxxx can write to code protected areas if the write protect
bits allow it so you can have a bootloader within a code protected 18Fxxx.


Regards,

Jim Robertson
NEWFOUND ELECTRONICS


>BAJ
>
>--
>http://www.piclist.com#nomail Going offline? Don't AutoReply us!
>email listservspamspam_OUTmitvma.mit.edu with SET PICList DIGEST in the body



______________________________
MPLAB compatible PIC programmers.
NEWFOUND ELECTRONICS P/L
http://www.newfoundelectronics.com
______________________________

--
http://www.piclist.com hint: To leave the PICList
@spam@piclist-unsubscribe-requestKILLspamspammitvma.mit.edu


2002\07\15@024704 by Jinx

face picon face
> and if tampering is detected renders the data valueless. IOW, the
> data has meaning unless it's read by anyone authorised, so there

"authorised" ? I think I meant "unauthorised"

> For this prototype I have to stick with the F877 (time constraints)
> but in future I would consider the 18F series

If I could get them. Both local PIC suppliers have none in stock and
an MOQ of 300. Lead time of around 3 months, which is beyond
this Friday

--
http://www.piclist.com hint: To leave the PICList
KILLspampiclist-unsubscribe-requestKILLspamspammitvma.mit.edu


2002\07\15@043517 by Alan B. Pearce

face picon face
>> Do I assume correctly that Flash memory on a 16F877 can't
>> be enabled for internal writes and disabled for external reads
.> at the same time ? (Table 4-1 of F877 manual). Is it just that
>> simple or is there a workaround ?

>It is just that simple. An unfortunate side effect that one extra bit in
the
>config register could have resolved.

Well actually it wouldn't resolve it, because there could still be an
internal read from downloaded code. You could only resolve it if the memory
could be write only, but that would stop the code from doing self checks at
start up. This problem will surely still exist on the 18F series you
mention, for the same reason.

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestTakeThisOuTspammitvma.mit.edu


2002\07\15@044552 by Padman, Nash

flavicon
face
       Hi Alan

               I am trying to learn assembly programming for 16F877
               can you tell me what manual you are referring to?

               regards
               nash

{Original Message removed}

2002\07\15@045837 by Carlos Ojea

flavicon
face
>Well actually it wouldn't resolve it, because there could still be an
>internal read from downloaded code. You could only resolve it if the memory
>could be write only, but that would stop the code from doing self checks at
>start up. This problem will surely still exist on the 18F series you
>mention, for the same reason.



18F series has a configuration register that enables read protection
(CONFIG5L), and another configuration register enables table reads
(CONFIG7L). So your code could do self checks at start up using table reads,
while it is read protected.


Regards,
Carlos

--
http://www.piclist.com hint: To leave the PICList
spamBeGonepiclist-unsubscribe-requestspamBeGonespammitvma.mit.edu


2002\07\15@050255 by Jinx

face picon face
>
>                 I am trying to learn assembly programming for 16F877
>                 can you tell me what manual you are referring to?

DS30292

www.microchip.com/1000/pline/picmicro/category/embctrl/14kbytes/devic
es/16f877/index.htm

--
http://www.piclist.com hint: To leave the PICList
TakeThisOuTpiclist-unsubscribe-requestEraseMEspamspam_OUTmitvma.mit.edu


2002\07\15@050502 by Alan B. Pearce

face picon face
>So your code could do self checks at start up using
>table reads, while it is read protected.

But surely this would still allow someone to download a rogue piece of code
to read out your code, even though you have taken every possible precaution
to prevent this happening.

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestspamTakeThisOuTmitvma.mit.edu


2002\07\19@150931 by uter van ooijen & floortje hanneman

picon face
> If I could get them. Both local PIC suppliers have none in stock and
> an MOQ of 300. Lead time of around 3 months, which is beyond
> this Friday

For buying low volume: http://www.phanderson.com has some 18F's. I just got some
18f452's and 18f241, I will sell via PayPal. For larger quantities:
http://www.digikey.com.

Wouter van Ooijen
--
Van Ooijen Technische Informatica: http://www.voti.nl
Jal compiler, Wisp programmer, WLoader bootloader, PICs kopen

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservEraseMEspam.....mitvma.mit.edu with SET PICList DIGEST in the body


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...