Menu

Error [174] : Unknown opcode "CONFIG"

Rex Knepp
2009-01-22
2013-05-30
  • Rex Knepp

    Rex Knepp - 2009-01-22

    I just downloaded and installed GCBASIC and tried to compile a very simple program and recieved the error listed below.  Can anyone point me to what I need to do to correct this? Thanks in advance!

    00007 ;Set up the assembler options (Chip type, clock source, other bits and pieces)
                   00008  LIST p=18F4525, r=DEC
                   00009 #include <P18F4525.inc>
                   00001         LIST
                   00002
                   00003 ;==========================================================================
                   00004 ;  $Id: p18f4525.inc,v 1.6 2006/08/19 02:39:39 craigfranklin Exp $
                   00005 ;  MPASM PIC18F4525 processor include
                   00006 ;
                   00007 ;  (c) Copyright 1999-2005 Microchip Technology, All rights reserved
                   00008 ;==========================================================================
                   00009
                   01327         LIST
    Error [174] : Unknown opcode "CONFIG"
                   00010  CONFIG WDT=OFF, LVP=OFF, MCLRE=OFF, OSC=HS
                   00011

     
    • kent_twt4

      kent_twt4 - 2009-01-22

      Can't help you if this is some sort of Linux thing.  The .dat file seems fine for the 18f4525 blink led under MPASM for Windows 9X (Ver. 5.20).  So try updating to newer MPASM? And, make sure that you have installed the update zip from the GCBasic Website/latest build.

                            00007 ;Set up the assembler options (Chip type, clock source, other bits and pieces)
                            00008  LIST P=18F4525, R=DEC
                            00009 #INCLUDE <P18F4525.INC>
                            00001         LIST
                            00002
                            00003 ;==========================================================================
                            00004 ;  MPASM PIC18F4525 processor include
                            00005 ;
                            00006 ;  (c) Copyright 1999-2007 Microchip Technology, All rights reserved
                            00007 ;==========================================================================
                            00008
                            01333         LIST
      02 1F 1E 03 81 0F C0 000010  CONFIG WDT=OFF, LVP=OFF, MCLRE=OFF, OSC=HS
             F E0 0F 40
                            00011

       
    • Nobody/Anonymous

      sorry for my english
      is possible only case-sensitive error??
      deselect it in your programmer and retry again (ignore error)
      auguri piero

       
    • Hugh Considine

      Hugh Considine - 2009-01-22

      This error is due to a lack of caution by me! When I released the last version, I assumed that gputils would support the CONFIG directive like MPASM. Unfortunately, it didn't at the time, and so this has caused trouble for people using 18Fs.

      The simplest solution is to download and install the latest version of gputils from http://gputils.sourceforge.net/ .

      Another option is to download the latest version of GCBASIC, and use the built in assembler; this is explained at https://sourceforge.net/forum/message.php?msg_id=4286525

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.