PIC18F4550 Error[128] Missing Arguments


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    5


    Did you find this post helpful? Yes | No

    Default thanks

    Problem solve, the error 128 was gone forever.
    But now I have another one , the error 113, can you tell me how can I fix it, it says something like this:
    Error[113]: c\pbp246\pic18f4550.inc 20: Symbol not previusly defined (_PLLDIV_5_1L)
    Error[113]: c\pbp246\pic18f4550.inc 20: Symbol not previusly defined (_CPUDIV_OSC1_PLL2_1L)
    Error[113]: c\pbp246\pic18f4550.inc 24: Symbol not previusly defined (_ICPRT_OFF_4L)
    Error[113]: c\pbp246\pic18f4550.inc 24: Symbol not previusly defined (_XINST_OFF_4L)

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by damalu View Post
    Problem solve, the error 128 was gone forever.
    But now I have another one , the error 113, can you tell me how can I fix it, it says something like this:
    Error[113]: c\pbp246\pic18f4550.inc 20: Symbol not previusly defined (_PLLDIV_5_1L)
    Error[113]: c\pbp246\pic18f4550.inc 20: Symbol not previusly defined (_CPUDIV_OSC1_PLL2_1L)
    Error[113]: c\pbp246\pic18f4550.inc 24: Symbol not previusly defined (_ICPRT_OFF_4L)
    Error[113]: c\pbp246\pic18f4550.inc 24: Symbol not previusly defined (_XINST_OFF_4L)
    Can you post the modified inc file. Looks like the same lines are giving trouble, you just told the system not to tell you about 128. Now it is trying to tell you there is still a problem.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2008
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Code:
    ;****************************************************************
    ;*  18F4550.INC                                                 *
    ;*                                                              *
    ;*  By        : Leonard Zerman, Jeff Schmoyer                   *
    ;*  Notice    : Copyright (c) 2004 microEngineering Labs, Inc.  *
    ;*              All Rights Reserved                             *
    ;*  Date      : 12/31/04                                        *
    ;*  Version   : 2.46                                            *
    ;*  Notes     :                                                 *
    ;****************************************************************
            NOLIST
        ifdef PM_USED
            LIST
            "Error: PM does not support this device.  Use MPASM."
            NOLIST
        else
            LIST
            LIST p = 18F4550, r = dec, w = -311, w=-230, 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
            NOLIST
        endif
            LIST
    EEPROM_START	EQU	0F00000h
    BLOCK_SIZE	EQU	32
    I guess the wrong lines are
    Code:
    __CONFIG    _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
    Code:
    __CONFIG    _CONFIG4L, _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L

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


    Did you find this post helpful? Yes | No

    Default

    It's high likely a MPASM/MPLAB problem here. Doesn't return any error using your file above...
    Steve

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

  5. #5
    Join Date
    Nov 2008
    Posts
    5


    Did you find this post helpful? Yes | No

    Default thanks thanks

    Yes mister_e you're rigth, the problem was the mpasm, i didn't notice that microdode studio was using another one, i just change it to the rigth one (it comes with mplab v8.10) and everything works perfetc... sorry
    this forum is fantastic!!!
    Last edited by damalu; - 17th November 2008 at 22:09.

Similar Threads

  1. Replies: 18
    Last Post: - 4th July 2017, 14:26
  2. Missing a bit
    By l_gaminde in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 31st August 2009, 18:54
  3. pic18f4550 & pic16f84a serially ?
    By amenoera in forum Serial
    Replies: 0
    Last Post: - 1st March 2008, 10:51
  4. MCP23016 missing D7 on I2CRead
    By TWSK in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th June 2007, 18:37
  5. pic18f4550 & VB6 ... help meee!!
    By lentz in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th March 2006, 17:27

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