Disabling bootloader under program control


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107

    Default Disabling bootloader under program control

    I use Mechanique's MCLOADER as a bootloader for my code. Recently, a customer has asked if I could disable the bootloader under program control.

    I'm thinking the easiest thing to do is modify the configuration registers using Darrel Taylor's code, but I can't find one register that will disable ALL writes to flash. Sort of a "global write protect". Am I missing something?
    Charles Linquist

  2. #2
    Join Date
    Mar 2006
    Location
    Pennsylvania, USA.
    Posts
    130


    Did you find this post helpful? Yes | No

    Question I don't think this is the correct answer but....

    Hi Charles,

    I read somewhere that if you set the code protect fuse that will disable the bootloader. I'm not sure if this will help you or not. My only other thought was that Steve (Mister-E) had posted a schematic to add a transistor that would allow the software to pull the reset pin, thereby allowing automatic boot loading, no need to press a button. You might be able to utilize something like that, and control the transistor from your software to not allow boot loading.

    Good Luck,

    Jerry.
    If your oscilloscope costs more than your car...

  3. #3
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    I appreciate the response, but these suggestions won't solve my problem. First, Mechanique's bootloader doesn't require that you pull MCLR low. A power cycle is good enough to get it started. So the additional transistor you mention isn't needed for that.
    Also, my hardware is already built, so there can be no changes there.

    I use the RS-232 port both for communication and for bootloading, so I can't "kill" the serial port to stop the bootloader. About the only thing I can do is to stop all FLASH WRITEs.

    I also can't set the code protect fuse, since I need to be able to turn the booloader ON again!
    Charles Linquist

Similar Threads

  1. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  3. Replies: 4
    Last Post: - 16th May 2008, 14:35
  4. Replies: 7
    Last Post: - 25th July 2006, 15:11
  5. Is there a way to expand the base bootloader program?
    By modifyit in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 15th June 2005, 15:24

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts