Menu

PIC18F1320 Problem

Help
2011-02-03
2013-05-30
  • Taylor Waddel

    Taylor Waddel - 2011-02-03

    I am working on moving up into the 18F series and I am stuck.  I tried to compile my program and it gives an error during assembly.  Here is the error:
    <code>
    compiled.asm:10:Error  Unknown opcode "CONFIG"
    </code>

    I tried cutting out all of the code except for the #chip and #config lines and I still get the same error.  Here is the lines I am trying to compile:

    <code>
    #chip 18f1320, 8
    #config LVP = ON, MCLRE = OFF, WDT = OFF, OSC = INTIO2
    </code>

    Thanks for the help.

     
  • gcha44

    gcha44 - 2011-02-05

    HI
    I tried to compile  your program and the issue is OK.
    Perhaps have you used "compile" as variable anywhere  in your program ? Or if it's not , try to reinstall GCBASIC .
    Regards

     
  • gcha44

    gcha44 - 2011-02-05

    Error : perhaps have you used "config"

     
  • Hugh Considine

    Hugh Considine - 2011-02-05

    That error appears because the older version of gputils included with GCBASIC can't handle the CONFIG directive used on 18F PICs. The easiest solution is to download and install the newest version of gputils from http://gputils.sourceforge.net/

     

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.