PCLATH initialising for Bootloader


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Talking

    Thats a great reply, thanks Bruce!

    J

  2. #2
    Join Date
    Apr 2005
    Posts
    96


    Did you find this post helpful? Yes | No

    Default

    I'm having a similar problem using the tinybootloader, but when I use microcode studio's bootloader I don't have any issues.

    When using the tiny loader the first time I bootload my program to the chip it works, but I get the following error in the Tinybootloader window:
    ----------------------
    HEX: 9 hours old, INHX32,16Fcode+cfg+eeprom , total=14546 bytes.
    Searching for PIC ...
    Found:16F 876A/877A
    WARNING: PCLATH not initialised before GOTO! ... sucessfully repaired.,
    WRITE OK. time:9.203 sec
    ----------------------

    The problem I am having is I can't bootload a new hex file to the chip after this, everytime I try I get the following error:

    ----------------------
    Searching for PIC ...
    pic sending unknown data: "K" <> E0h=à
    Check baudrate & Start Write while PIC is not sending serial data (e.g. in reset)
    ERROR!
    ---------------------

    I would appreciate any advice you may have.

    Thanks

  3. #3
    Join Date
    Apr 2005
    Posts
    96


    Did you find this post helpful? Yes | No

    Default

    I figured out my problem....it always helps to read directions

    My problem is that I am using a chip that is constantly sending serial commands so I needed to hold down the chip reset button and release it immeadiatly after I hit "write flash"

    This seemed to solve my issue.

  4. #4
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Default

    Yeah that would do it.

    Btw, I still get the PCLATH not initialised before GOTO! ... sucessfully repaired.,
    message come up. Not sure what thats about but HEY, it works!

    Squib

  5. #5
    Join Date
    Apr 2005
    Posts
    96


    Did you find this post helpful? Yes | No

    Default

    Yeah I still get that error as well, but it does work

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 19:14
  2. 16f877a: PCLATH register
    By herve in forum mel PIC BASIC
    Replies: 9
    Last Post: - 6th September 2006, 06:03
  3. Replies: 1
    Last Post: - 6th September 2005, 16:32

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