compilation error


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: compilation error

    For the 628A...
    @ DEVICE MCLRE_OFF, INTRC_OSC, WDT_OFF, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_OFF
    And the config type you are using is for PM. Is that set correctly in MCS?
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: compilation error

    Check the code here:
    http://www.picbasic.co.uk/forum/showthread.php?t=15960

    You are missing the PIC model after DEVICE.

    Robert

  3. #3
    Join Date
    Jan 2012
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Re: compilation error

    Quote Originally Posted by Demon View Post
    Check the code here:
    http://www.picbasic.co.uk/forum/showthread.php?t=15960

    You are missing the PIC model after DEVICE.

    Robert
    Thanks for the reply,

    And by the way interesting tutorial for me for further and later needs.

    But as for now I need this job urgently done for this IR project and I can't seem to get anywhere except with illegal opcode and found label after column 1 (DEVICE).

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: compilation error

    You still do not have
    MCLRE
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Jan 2012
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Re: compilation error

    Quote Originally Posted by mackrackit View Post
    You still do not have
    MCLRE
    I did! Here it is once again!
    Attached Images Attached Images  

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: compilation error

    See if this works. I was not paying attention, you are using PBP 3 ?
    #CONFIG
    __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _LVP_OFF & _CP_OFF & _MCLRE_OFF
    #ENDCONFIG
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default Re: compilation error

    This should work;
    Code:
    #CONFIG
     __CONFIG _MCLRE_OFF & _INTRC_OSC_NOCLKOUT & _WDT_OFF & _LVP_OFF & _BODEN_OFF & _PWRTE_ON
    #ENDCONFIG
    And disable case sensitivity in MPASM or make porta PORTA in the assembler part.
    Regards,

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

  8. #8
    Join Date
    Jan 2012
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Re: compilation error

    Quote Originally Posted by mackrackit View Post
    For the 628A...
    @ DEVICE MCLRE_OFF, INTRC_OSC, WDT_OFF, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_OFF
    And the config type you are using is for PM. Is that set correctly in MCS?
    thanks for the reply,

    I tried your suggestion but I keep getting an error
    Attached Images Attached Images  

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