Compile Error


Closed Thread
Results 1 to 3 of 3

Thread: Compile Error

  1. #1
    Join Date
    Sep 2009
    Location
    Columbus, Ohio
    Posts
    6

    Default Compile Error

    I recently re-installed MPlab.
    After that I started getting compile error -
    Error[113]c:\pbp\18f4550.inc 21 : Symbol not previously defined (_FCMEN_OFF_1H)

    I recall having this problem when I first started using PBP.
    The fix was to change from MPASMWIN.exe to MPASM.exe.
    I replaced MPASMWIN.exe with MPASM.exe and it now uses the right
    asm but still get the error.

    Can't remember how to get rid of that error ????????

    Thanks

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Some time ago, Microchip had an error in the P18F4550.inc file.
    It was corrected in subsequent versions, so you are probably using an older one.

    From the file ... C:\Program Files\Microchip\MPASM Suite

    Code:
    ; these are correct
    _FCMEN_OFF_1H        EQU  H'BF'    ; Fail-Safe Clock Monitor disabled
    _FCMEN_ON_1H         EQU  H'FF'    ; Fail-Safe Clock Monitor enabled
    Was originally spelled ...

    Code:
    ; these are not correct
    _FCMEM_OFF_1H        EQU  H'BF'    ; Fail-Safe Clock Monitor disabled
    _FCMEM_ON_1H         EQU  H'FF'    ; Fail-Safe Clock Monitor enabled
    You can just correct the spelling to fix the error.

    And you should not be renaming MPASMWIN executables.
    <br>
    DT

  3. #3
    Join Date
    Sep 2009
    Location
    Columbus, Ohio
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    I made changes to the .inc and it compiled fine.
    Thanks Darrel !!!
    P.S. I hope you haven't been giving the Bucks & 10 in March....

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