Bootloader problem.


Closed Thread
Results 1 to 4 of 4
  1. #1
    Peter Oors's Avatar
    Peter Oors Guest

    Default Bootloader problem.

    For the first time I use the bootloader with the 16F877.
    Loading with the PicStart Plus and running the next simple program is no problem.
    Loading the bootloader isn't a problem.
    Loading the program by the bootloader insn't a problem too.
    Running behaves strange.
    Portb.3 stays an input.
    The other B ports go high for 2 seconds, then low and then they become inputs.
    Nothing else happends.
    Did I do something wrong or forget something?

    DEFINE LOADER_USED 1 ' Bootloader 19200

    @ DEVICE PIC16F877,XT_OSC
    @ DEVICE PIC16F877,BOD_OFF
    @ DEVICE PIC16F877,LVP_OFF
    @ DEVICE PIC16F877,CPD_OFF
    @ DEVICE PIC16F877,PROTECT_OFF

    DEFINE OSC 4
    ADCON1 = %10000010
    TRISB = %00000000
    Pause 200
    Clear

    STARTEN:
    PORTB=255
    Pause 2000
    PORTB=0
    Pause 1000
    GoTo starten

    End

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


    Did you find this post helpful? Yes | No

    Default

    how about if you remove the config fuse? BTW they're not supposed to be there. You need to set them ONLY when you load the bootloader firmware. More than often, the default one are set correctly.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    RB3 is the LVP pin. Make sure you're not setting LVP ON at the time you program the boot-loader .hex file into your F877 with your PicStart Plus.
    Regards,

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

  4. #4
    Peter Oors's Avatar
    Peter Oors Guest


    Did you find this post helpful? Yes | No

    Thumbs up

    Quote Originally Posted by Bruce
    RB3 is the LVP pin. Make sure you're not setting LVP ON at the time you program the boot-loader .hex file into your F877 with your PicStart Plus.
    This was indeed the problem. Now it works fine.
    Thank you Bruce.

    Mister_e, leaving the config fuse didn't harm.....

    Thanks to all of you.

Similar Threads

  1. 16F876A Bootloader Problem
    By Ashleyr01 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th April 2009, 18:21
  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. 18F2550 MCRL/RE3 problem with USB bootloader Microchip
    By Ronald123 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th September 2007, 10:48
  4. Problem With Bootloader And Portb.3
    By bobonapoletano in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 31st December 2005, 16:10
  5. Problem with Bootloader + 18F4620
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 14th September 2005, 20:06

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