Why use a bootloader?


Closed Thread
Results 1 to 40 of 41

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    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

  2. #2
    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 :-)

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


    Did you find this post helpful? Yes | No

    Default

    Ok..

    Where do i start if i want to use a bootloader?

    I have a PCB with a FTDI232BM chip that convert USB <--> RS232 signals and the PIC is a 18F2550, will it work to program via the FTDI chip or do i have to have a real USB connection?

    Where can i download a bootloader for the PIC and a PC software to program the PIC?

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    If you're using a USB PIC, you may want to use Microchip's Bootloader. (this one use the USB port) OR PICCoder

    If you have MicroCode Studio plus, you already have bootloader firmware in... unless you have to purchase MicroCode Loader.(this one use RS-232 port)

    Other option, is to find a freeware, I heard good comment on Tiny Bootloader.(also RS-232)

    Once you have any bootloader firmware, you need to dump the firmware .HEX file in your PIC first by using your favourite PIC programmer.

    Once it's done, you just need to compile your code and use your bootloader utility to update your PIC.

    That's it!

    EDIT: See difference from one bootloader to another... DEFINE LOADER_USED 1 have to be used.
    Last edited by mister_e; - 30th January 2009 at 00:18.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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


    Did you find this post helpful? Yes | No

    Thumbs up

    Well that was easy.... Tiny Bootloader worked on the first try....
    The loading time with Tiny bootloader is much faster then the PICkit2 programmer..

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    hum, interesting to know. Thanks for your feedback.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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


    Did you find this post helpful? Yes | No

    Default

    Hmm i have now also try Microcode studio plus loader and that does´t work good..

    I have loaded the right HEX file with my PICkit2 programmer and then when i try to "Compile and program" i get the message "Please reset the target microcontroller" and when i do that with the MCLR pin nothings happends... then i klick on the close button in the right corner of the window and now microcode loader starts to program the PIC, but i have to try severel times before the PIC works after the programming from the microloader.

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