Why use a bootloader?


Closed Thread
Results 1 to 40 of 41

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187

    Default Why use a bootloader?

    What´s the point as a hobby PIC programmer to use a bootloader if you have a programmer?

    You can program the PIC witout a programmer but you still need a USB/Serial interface to a PC, right?

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Sometimes you need to update the software on chips soldered to the PCB. Without a bootloader, this could be a real problem.

    If you can remove the pic from the circuit, well you can do it with the programmer, But with the bootloader you don't need to remove the chip and this is an additional plus.

    Al.
    Last edited by aratti; - 24th January 2009 at 22:55.
    All progress began with an idea

  3. #3
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187


    Did you find this post helpful? Yes | No

    Default

    You could use ICSP if you want to update the software on a PIC on a PCB

  4. #4
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    First, bootloaders are faster than a programmer. Second, ICSP takes up more pins (3), and limits the hardware to the pins. A bootloader only takes two serial pins, and if you already have a serial connection, requires no special treatment. Third, if you have the board in an enclosure, it is safer to have a serial connection to the outside world than your mclr pin.

    In reality, from a hobbyist standpoint, it doesn't make a big difference. It is convenient, however.

  5. #5
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Because

    Because a bootloader will save tons of money when then enduser can correct the major bugs in the software just by using a serial cable and downloading the patch from internet :-)

    In true errata Microchip style...

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    Note that a bootloader (normaly) cannot lock your code on the PIC. So for commercial usage this is a minus.

    Ioannis

  7. #7
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Sure it can

    Any bootloader can program the pic even if code protection is turned on... it is just access to the code area with a programmer that code protection protects from. Not from inside the PIC.

    BUT since you download the HEX file from internet it better be a loader with encryption or the code is public anyway :-)

Similar Threads

  1. PIC18F4680 bootloader
    By vinyl_theif in forum General
    Replies: 1
    Last Post: - 29th January 2009, 17:45
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  3. USBDemo with Bootloader
    By vacpress in forum USB
    Replies: 4
    Last Post: - 25th January 2007, 22:29
  4. Bootloader Problems
    By rossfree in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th February 2005, 17:51
  5. Replies: 3
    Last Post: - 26th January 2005, 13:41

Members who have read this thread : 0

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