error 113 _FCMEN_OFF_1H


Closed Thread
Results 1 to 5 of 5
  1. #1

    Default error 113 _FCMEN_OFF_1H

    Hello everyone!

    Could somebody please point out what is wrong when you get error:

    Error[113] c:\pbp\usbpro~1.asm 111: Symbol not previously defined (_FCMEN_OFF_1H)

    I had a working code, experimented with a jump (@ bra ..., goto addr etc) and could not find the right solution and got error messages associated with the "real bra" instructions. Then suddenly the error changed to this _FCMEN_OFF_1H error that did not go away...
    My configuration in the beginning of my program is like this:
    Code:
    asm      ; PIC18F4550 configuration               
     __CONFIG _CONFIG1L, _PLLDIV_3_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L  
     __CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
     __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_ON_2L  & _BORV_2_2L  & _VREGEN_ON_2L   
     __CONFIG _CONFIG2H, _WDT_OFF_2H 
     __CONFIG _CONFIG3H, _MCLRE_ON_3H & _LPT1OSC_OFF_3H & _PBADEN_OFF_3H & _CCP2MX_ON_3H 
     __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _ICPRT_OFF_4L  & _XINST_OFF_4L & _DEBUG_OFF_4L 
    endasm
    And that configuration has bee working for a long time. Why can another error invoke this _FCMEN_OFF_1H error 113 ??

    I have seen that error before but can not comprehend it in this situation.

    What is wrong? Please help...

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default

    Its has to do with the MEN This is what I have used to make my stuff work. Found in the 18F4550.INC file in your PBP directory. The commands below work with MPASM v5.01

    Code:
        else
            LIST
            LIST p = 18F4550, r = dec, w = -311, f = inhx32
            INCLUDE "P18F4550.INC"	; MPASM  Header
            ;__CONFIG    _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
            ;__CONFIG    _CONFIG1H, _FOSC_HSPLL_HS_1H
            ;__CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
            ;__CONFIG    _CONFIG3H, _PBADEN_OFF_3H
            ;__CONFIG    _CONFIG4L, _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L
    
            CONFIG PLLDIV = 5, CPUDIV = OSC1_PLL2, USBDIV=2
            CONFIG FOSC = HSPLL_HS
            CONFIG WDT=OFF, WDTPS=128
            CONFIG PBADEN = OFF
            CONFIG LVP=OFF, ICPRT=ON, XINST=OFF
            CONFIG MCLRE=OFF,BOR=SOFT,FCMEM=ON,IESO=ON,PWRT=ON,VREGEN=ON
    
            NOLIST
        endif

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


    Did you find this post helpful? Yes | No

    Default

    MPASM uses the Microchip include files in your MPLAB installation directory. Some older
    header files had a different spelling. I.E. FCMEM instead of FCMEN.

    Open your P18F4550.INC file and see how this is spelled. Then just change the spelling
    in your config statement to match.
    Regards,

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

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    ...Open your P18F4550.INC file and see how this is spelled. Then just change the spelling in your config statement to match.
    Quote Originally Posted by Jerson
    Its has to do with the MEN This is what I have used to make my stuff work. Found in the 18F4550.INC file in your PBP directory. The commands below work with MPASM v5.01
    Thank you Bruce and Jerson!
    So, if I understand correctly here, you could move all of your configuration to the .INC -file. Is this assumption correct?

    To me it seems to be like that. I commented all configuration from my application and did as Jerson suggested (added those configs to the .INC file) and all seems to work properly again...

    Still I'm little bit unsure about that INC-file... can one really move all configuration to the .INC -file from your application?

    Those are perhaps silly questions, but I'm not so familiar yet with the pic/picbasic environment that I could do that judgment just by using the knowledge I have gathered so far...

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


    Did you find this post helpful? Yes | No

    Default

    Regards,

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

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