PIC18F4550 Error[128] Missing Arguments


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    5

    Default PIC18F4550 Error[128] Missing Arguments

    I have some problems with MicroCode Studio, I've tried to compile a simple program that turns on and off a LED using pic18f4550, I've change the INC file for the compiler get off the warning CONFIG Directive. But now I got this error message:
    Error[128] c:\pbp246\18f4550.inc 20: Missing argument(s) (configuration byte setting is missing)
    Error[128] c:\pbp246\18f4550.inc 21: Missing argument(s) (configuration byte setting is missing)
    Error[128] c:\pbp246\18f4550.inc 22: Missing argument(s) (configuration byte setting is missing)
    Error[128] c:\pbp246\18f4550.inc 23: Missing argument(s) (configuration byte setting is missing)
    Error[128] c:\pbp246\18f4550.inc 24: Missing argument(s) (configuration byte setting is missing)

    I'm new programing pic's and i don't understand the error, please please help me!!!!

    here's how the INC file says:
    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, 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

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


    Did you find this post helpful? Yes | No

    Default

    I am sure you have read this
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    but jump down to post #29 by Darrel.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2008
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    I am sure you have read this
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    but jump down to post #29 by Darrel.
    Thanks for answering
    Yes you are right I've already read that, but I believe that's not the problem, al least the Error[128] have something to do with the CONGIF directive, 'cause when I change the INC file, the error about it dissapears.
    The Error[128]: c:\pbp246\pic18f4550.inc 20: Missing arguments (configuration byte setting is missing), I believe the numbers are for the all lines in the INC file that have problems (20-24) and yes... that lines are the CONFIG.
    Anyway I tried the solution that Darrel gave, but the error stills here!!!
    More ideas, please I really need them!!!

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


    Did you find this post helpful? Yes | No

    Default

    The format of your config lines are incorrect.

    Code:
        CONFIG =   CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
    Should be ...
    Code:
        __CONFIG   _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
        |          |
        |          1 underscore
        2 underscores
    DT

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


    Did you find this post helpful? Yes | No

    Default

    and probably not a bad idea to add what's in red, just to disable the warning message forever.

    Code:
    LIST p = 18F4550, r = dec, w = -311, w = -230, f = inhx32
    Steve

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

  6. #6
    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)

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