PIC18F2550 Problem - GoSub or GoTo fails if the jump is too far


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Dayton, Ohio
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: PIC18F2550 Problem - GoSub or GoTo fails if the jump is too far

    Thanks Alain. That's what Darrel recommended as well. So I did upgrade to 8.92. And that seems to partly fix the problem. If the firmware is burned DIRECTLY to the PIC it runs okay. But... if the Trace Bootloader is installed it still has problems with GOSUB.

    Dr. Bob at Trace has also been looking into this and sent me a new version of the 18F2550 bootloader to test. Hopefully that will correct the problems. I didn't get a chance to test it last night.
    Jim Robertson
    "MilesTag" DIY Lasertag
    www.lasertagparts.com/mtdesign.htm
    Dayton, Ohio

  2. #2
    Join Date
    Sep 2005
    Location
    Dayton, Ohio
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: PIC18F2550 Problem - GoSub or GoTo fails if the jump is too far

    SUCCESS!!!! Everything appears to be fixed with the updated version of Trace Systems Bootloader.

    So there were 2 problems: Outdated version of MPLAB, and outdated version of the Trace Bootloader. Thanks to Darrel at ME Labs and thanks to Dr. Bob at Trace Systems for getting me back on track!

    Jim
    Jim Robertson
    "MilesTag" DIY Lasertag
    www.lasertagparts.com/mtdesign.htm
    Dayton, Ohio

  3. #3
    Join Date
    Sep 2007
    Location
    Waco, Texas
    Posts
    151


    Did you find this post helpful? Yes | No

    Default Re: PIC18F2550 Problem - GoSub or GoTo fails if the jump is too far

    Thanks MilesTag-
    I was having a similar problem with an 18F46K80 with it resetting on me - didn't know what to do. Kept cutting subroutines until nothing left but labels and returns.
    I just updated my MPLAB and it seems to give me back my program!

    This place is Awesome for knowledge.
    Regards,
    Steve
    "If we knew what we were doing, it wouldn't be called research"
    - Albert Einstein

Similar Threads

  1. Is a 'GOTO' Or a 'GoSub'?
    By FromTheCockpit in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st August 2013, 23:27
  2. Problem with GOSUB/GOTO and Newhaven OLED question
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th April 2013, 10:24
  3. Programming style - GOTO or GOSUB ?
    By AndrewC in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th December 2010, 18:08
  4. timeout of Hserin, goto, gosub or both?
    By flipper_md in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 28th October 2009, 18:43
  5. If ... Then Gosub <> If ... Then Goto?
    By oldtoddler in forum General
    Replies: 6
    Last Post: - 27th February 2006, 11:52

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