How to setup Bootloader


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    I am using MPLAB to program the 877 hex file onto the pic and not with the MCS loader firmware, I think that could be my problem?

  2. #2
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    No; how you load the bootloader hex file into the pic is immaterial. In fact, you cannot program the bootloader firmware itself using the MCS loader; that would be a chicken-and-egg situation.

    Do you have another programmer at hand? Or, you could perhaps build a simple JDM type programmer for initially downloading the bootloader firmware into the PIC. After that, the bootloader should work, and you would not require the programmer (for that chip).

    Regards,

    Anand

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    1. Start MPLAB.
    2. From the Programmer menu. Select "Programmer\Select Programmer\PICSTART Plus". Then "Programmer\Enable Programmer".
    3. Select the PIC16F877 using the "Configure\Select Device" menu.
    4. Click "File\Import", and locate the MCS boot-loader firmware for the PIC16F877 at 4MHz. Import this .hex file to memory.

    Important: Do not make any configuration fuse changes once you have imported the loader .hex file.

    5. Place your 16F877 in the PICStart.
    6. Click the Program button or "Programmer\Program" menu options.
    7. Use the "Programmer\Disable Programmer" menu options to disconnect the PICStart once finished. This will free up the serial port for use with the loader.

    You should now have the MCS boot-loader firmware programmed into your F877.

    To use the MCS loader, you need the max232 interface to your PC serial port as shown in the loader help file.

    Place the programmed F877 into your circuit or board with the max232 PC interface.

    If you're compiling PBP code for use with the loader, then place;

    DEFINE LOADER_USED 1
    DEFINE OSC 4

    in the beginning section of your code.

    From within the MCS IDE, select the MCS loader as the programmer. Click the Compile\Program button. Your code will compile, and the MCS loader software screen should pop up, then program the PIC using the boot-loader.

    If you're not using (shown in the MCS loader help file) the auto reset circuit, then cycle power to the board, or momentarily ground /MCLR to reset the PIC.

    You can also use the loader with MCS ICD. With the PIC connected as above, use the ICD\Compile button. This will compile your code with the additional ICD code in your final .hex file. Then use the ICD control buttons to start, pause, stop, etc.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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