Bootloader


Closed Thread
Results 1 to 10 of 10

Thread: Bootloader

  1. #1

    Default Bootloader

    Hi anyone. I don't know anything about Bootloader! I want to know about that so I need some helpful references.
    1- What is Bootloader and how does it work?
    2- Which types of PICs can support that?
    3- Is there any PBP written routins for using it?
    Thanks alot

  2. #2
    Join Date
    Oct 2005
    Location
    Pinckney, Michigan
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    The bootloader is a small piece of code that you burn into your virgin PIC part once, with a typical device programmer, which then allows it to be programmed thereafter via the standard serial port pins (RX & TX). My favored method.

    Alternate methods of programming PIC devices include the use of the standard Microchip ICSP (In-Circuit Serial Programming). Which uses a specific set of pins (PGC & PGD & sometimes PGM) to program the device.

    The bootloader method makes use of the standard PC serial port, and thus requires level translation hardware such as a MAX232 chip.

    The ICSP method requires that a device programmer be in-line between the PIC and the PC, and that some special circuit accomodations be made on your circuit board to isolate the PGC & PGD & MCLR pins from the rest of your circuit.

    Both methods are fairly transparent to the user and allow very rapid download of code during development.

    One down side to relying on bootloaders, is that sometimes they are un-available for a specific device and new devices. In which case the ICSP method has to be used.

    The ICSP method will always work because it is built-in to every PIC device.

    The ideal solution, in my opinion, is to provide pads for both on your PCB, populate the parts as required, and you have the best of both worlds.

  3. #3


    Did you find this post helpful? Yes | No

    Default Good but not enough

    Thanks Dear Wolf
    You answered to my question briefly :-)
    I foundout something about bootloader usage. However I need more help. How can I use bootloader in PBP? Can you give me a schematic of way of connection micro and PC?
    As you said bootloader is your favorite way for programming. Is it possible to learm me the way of using?
    Thanks gain
    Regards

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


    Did you find this post helpful? Yes | No

    Default

    There's a few different bootloaders here and there (such as TinyBootloader), the one i use is made by Mecanique and come with the full version of MicroCode Studio, the schematic you need to use is like bellow...


    In your PBP code, you just need to add
    Code:
    DEFINE LOADER_USED 1
    in Microcode studio, you choose MicroCode Loader as programmer.

    Further explanation... http://www.mecanique.co.uk/products/...ootloader.html

    HTH
    Steve

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

  5. #5


    Did you find this post helpful? Yes | No

    Default Tiny Bootloader

    Hi Dear Mister_e
    Thanks for your reply. Unfortunately I haven't MicroCode studio plus and MicroCode loader :-(
    I found Tiny Bootloader- As you mentioned- and downloaded it from here:
    http://www.etc.ugal.ro/cchiculita/so...bootloader.htm
    Have you worked with tiny bootloader? I think that I should write my program with microCode studio ( with--> DEFINE LOADER_USED 1 ) after commpiling send .HEX via Tiny Bootloader. Is it true? Does it work?
    Thaks again.

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


    Did you find this post helpful? Yes | No

    Default

    Yup make sense to me. now if TinyBootloader utility have it's command line, that would be great 'cause you could launch it directly from Microcode studio as a third party programmer.

    Out of curiosity, which PIC are you going to use? Which OSC speed?
    Last edited by mister_e; - 18th December 2007 at 16:56.
    Steve

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

  7. #7


    Did you find this post helpful? Yes | No

    Default PIC & Type

    Dear Mister_e
    Thanks for your reply. I want to use PIC16F877 and 10 MHz Osc. (Is it possible to use PIC16F628?)
    --------
    Regards

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


    Did you find this post helpful? Yes | No

    Default

    not suppose to work with a 16F628 as it don't have the capability to write/modify it's own codespace. 16F88 will work.
    Steve

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

  9. #9
    Join Date
    Dec 2007
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    hi
    mister_e, maybe you remember my problem in the next topic
    http://www.picbasic.co.uk/forum/showthread.php?t=7627

    i am fix my problem usign tinybootloader also, but i have only a waring message,
    when i am load my program usign the tiny, the software say :

    WARNING: PCLATH not initialised before GOTO! ... sucessfully repaired

    and the load continue, and work fine, i am put only DEFINE LOADER_USED 1

    that place i need put this GOTO command for skip this warning??????

    thanks for all

    Regards

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


    Did you find this post helpful? Yes | No

    Default

    I already heard it, but seems it's more a PC utility problem and it's just an annoying warning without any effect to your PIC code.

    Yup the only thing you have to do is place a DEFINE LOADER_USED 1 and you're in business.

    Don't worry about the warning, just ignore it.
    Steve

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

Similar Threads

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

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