Bootloader Problems


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76

    Default Bootloader Problems

    Hi all,

    I am using the Microcode bootloader on a 16f877. I have several 877 controllers and at one time have had great sucess using them with the bootloader on an Olimex board.

    I also have an updated Picstart Plus programmer. I used this programmer to load the bootloader in the 877s.

    At some point along the way, I think I had the wrong controller chosen to program the 877 using Microcode. I had been bouncing back and forth between the 877 and 876 pics and in my haste tried programming the 877 with the 876 chosen in Microcode Studio's software.

    Does anyone know if that blows something away on the chip? I zero'd the 877 out with MPLAB and my Picstart Plus and reinstalled the bootloader but I haven't gotten the bootloader to work again... though MPLAB says that the 877 programmed just fine.

    Further, this problem seems to have happened (over time) to all of my 877 pics (5). At one point, I thought it was a hardware related problem... but now I'm just not so sure.

    If I don't use the bootloader and just program the chips using my Picstart, everything works just ducky! The 877's appear to work fine in every way... they just don't bootload anymore.

    I'm working on a large project... making small program changes and then checking them in-circuit. Pulling the 877's out of circuit and using the Picstart is killing me timewise... not to mention the wear and tear on chips, pins and sockets.

    I need the bootloader back. Does anyone know how I can tell if I've killed the chips or if it is a hardware related issue?

    Help!

    Thank you!

    Ross

    PS: I'm not using the Olimex board in my project or I would consider using the ICSP port. There is no ICSP port available on the board I am using. I need the bootloader! :-P
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

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


    Did you find this post helpful? Yes | No

    Default

    If you can program the 877 with your device programmer, and your code runs as expected, I doubt your controller is bad.

    Are you using DEFINE LOADER_USED 1?

    Are you using DEFINE OSC ? & a crystal frequency that matches the loader firmware you program into the target?

    Have you checked/verified the comm port the loader software is set to use?

    Do you have the MCS loader software set for Auto Detect under Options >> Baud Rate?
    Regards,

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

  3. #3
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default Back in Business!

    Thank you Bruce for getting back to me. I went through everything you listed. Been racking my brain for the last five hours.

    As it turned out... it was a COM PORT problem. For whatever reason, if MPLAB was running in the background, set to COM1, I could not choose COM1 on Microcode Studio. Go figure!

    Once I noticed there was a COM port difference I closed both programs and re-opened MPLAB (since I knew it was working) and verified which COM port worked on the PICSTART programmer (COM 1). Then I closed MPLAB and re-opened Microcode Studio and was only then able to change communications back to COM1. Badabing! It worked!

    Earlier, in my frustrations, I likely made another mistake... I don't think I checked the configuration bits when I chose the 877 in MPLAB. It allowed me to program the chip with the bootloader (of course) but very likely balked when I tried to use the bootloader with Microcode Studio (even if I had the port correctly set at some earlier time).

    I'm typing this down so that someone else can benefit from my exhaustive hair-pulling.

    Your reply was much appreciated and served to nudge me to keep going. I was sure ready to quit.

    Thanks again Bruce!!!

    Ross
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

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


    Did you find this post helpful? Yes | No

    Default

    You don't need to close MPLAB to make it work. Just disable the programmer under the "PROGRAMMER" menu.
    Steve

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

  5. #5
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default

    I'll give that a try... thanks again,

    Ross
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

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. bootloader Freqout problems
    By handgio in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th December 2007, 13:38
  4. Max/232 Bootloader problems - Schematic attached...
    By rossfree in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 4th May 2007, 15:54
  5. USBDemo with Bootloader
    By vacpress in forum USB
    Replies: 4
    Last Post: - 25th January 2007, 22:29

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