> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of alan smith > Sent: 20 May 2009 15:09 > To: Microcontroller discussion list - Public. > Subject: [PIC] protected code > > > Setting the code protect config bits is supposed to give you a layer of > protection, when at least trying to read back from the actual device. I > wont get into the discussion about how that can be gotten around. > > My question is...when you generate a hex file with these set, can it be > dissassembled..ie..is the code protect only valid for reading back from > the device. > > The basis for the question is a client wants to put code updates for a > product on his website, so anyone can download but doesnt want someone to > easily able to reverse engineer it. I wasnt sure if this protects the hex > file. > The code protect bits purely relate to the PIC micro, and prevent useful code being read out via the programming pins. They have nothing to do with the hex file generated by your assembler/compiler. If you feel you need to protect the hex file, you will need to encrypt it in some manner and give legitimate owners the ability to decrypt it through e.g. a custom programming tool or via a special bootloader pre-programmed into the product. Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist