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:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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/
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
Error : perhaps have you used "config"
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/