Migration Issues 16F876 to 18F2525


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2003
    Location
    Storrs, Ct.
    Posts
    91

    Default Migration Issues 16F876 to 18F2525

    As mentioned I am moving from a 16F876 to 18F2525.
    I get a compile error 113(Symbol not previously defined) _XINST_OFF_4L.

    Been thru several threads and went round and round with the .inc files for the 18f2525 but the solution hasn't jumped out at me. I am using "Instant Interrupts".

    Is there a short answer to my problem? or should I continue with the thread search?

    I've included the code. It's quite chopped up because it's just snippetts to test some MAX6957 LED drivers I'm trying to use.

    As always, thanks in advance for any and all replies........
    Attached Files Attached Files

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Question

    Hi,

    Sorry, but compiles Ok with PbP 2.50 and MPLAB 8.0 ...

    Executing: "C:\Program Files\Microchip\MPLAB IDE\PBP\PBPW.EXE" -ampasmwin -oq -z -p18F2525 "blinky5.bas"
    PICBASIC PRO(TM) Compiler 2.50, (c) 1998, 2007 microEngineering Labs, Inc.
    All Rights Reserved.
    Loaded C:\Program Files\Microchip\MPLAB IDE\Projets\blinky5.COD.
    BUILD SUCCEEDED: Sat Nov 17 18:53:19 2007

    May be some update to do ??? or reload MPLAB.

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Dec 2003
    Location
    Storrs, Ct.
    Posts
    91


    Did you find this post helpful? Yes | No

    Default Thanks.

    Havn't upgraded to 2.5 yet. Still on 2.47 with MCSP 3.0. I did get the newer version of MPASM but that didn't help.

    I'll grab my plastic money and send Bruce the upgrade order. I think he provided my last upgrade.

    Thanks for the quick reply..
    "It will never happen here!" just happened here.
    My thoughts and prayers for Sandy Hook victims and families.

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


    Did you find this post helpful? Yes | No

    Default

    While getting the last PBP version is good and still cheap, i don't think it solve the problem as it has nothing to do with PBP but MPASM.

    You need to open p18f2525.inc file in MPASM Suite directory and and look at the bottom where all config fuses are defined. If you don't find it, you have a faulty file.

    Could also be a typo mistake I could be a 1

    Make sure the right path is set for the last MPASM version. You may need to point manually MCS to the right path.
    Last edited by mister_e; - 17th November 2007 at 20:26.
    Steve

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

  5. #5
    Join Date
    Dec 2003
    Location
    Storrs, Ct.
    Posts
    91


    Did you find this post helpful? Yes | No

    Default Thanks Steve.

    Lets keep this our secret. I told my wife this was a "must have" upgrade to continue using the software. Already ordered from MCUmart(original supplier).

    I looked at the .inc file and found 2 versions in 2 seperate MPASM Suites. Both versions were different. Must be my screwup when upgrading. I've removed 2 old versions of MPLABs and will install the new version next.
    Hope this helps..
    "It will never happen here!" just happened here.
    My thoughts and prayers for Sandy Hook victims and families.

  6. #6
    Join Date
    Dec 2003
    Location
    Storrs, Ct.
    Posts
    91


    Did you find this post helpful? Yes | No

    Default no help

    After cleaning up all my garbage and reloading MPLAB 8 I compile to the same error.

    Not sure what to try next.
    Any suggestions are greatly appreciated.
    "It will never happen here!" just happened here.
    My thoughts and prayers for Sandy Hook victims and families.

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


    Did you find this post helpful? Yes | No

    Default

    paste your pbp code, mpasm file and pbp .inc file here

    Did you manually point MCS to your new MPASM folder?
    Steve

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

  8. #8
    Join Date
    Dec 2003
    Location
    Storrs, Ct.
    Posts
    91


    Did you find this post helpful? Yes | No

    Default compiles without error

    Thanks for the help Steve. I had MCS pointing to the wrong folder.
    It now compiles without errors. The code doesn't work yet but I think it's just setup for the interrupt. Time to RTFM... for the 18F2525.
    "It will never happen here!" just happened here.
    My thoughts and prayers for Sandy Hook victims and families.

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


    Did you find this post helpful? Yes | No

    Default

    <table><tr><td></td><td>Hehe sh*t happen. Don't worry, i'm not going to tell your wife... 'till you have the software in your hands </td><td></td></tr></table>
    Steve

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

Similar Threads

  1. Hall Effect flow meter with 16F876
    By revelator in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th March 2010, 20:42
  2. tris question for the 16f876
    By lecoind in forum General
    Replies: 10
    Last Post: - 12th September 2008, 21:35
  3. 16F876 Usart Receive
    By syscoder in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st March 2007, 15:43
  4. 18F2525 Int Osc settings?
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th March 2005, 22:44
  5. Need help with migration 16F876 -> 18F252
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th February 2004, 16:22

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