#define led PortC.0
dir LED out
'set internal osc to 16mhz '111', 8mhz '110'
IRCF2=1
IRCF1=1
IRCF0=1
Do
nop
Until HFIOFS=1 'wait for HFIOSC to stablize
start:
bsf led
bcf led
'Set Led On
'Set Led Off
goto start
The error message is saying it cant find something - pse check your chip specs in the chipdata file for that specific chip and look for your defines which probably wont be found, but from there you should be able to work out the equivalent.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here is simple program with assembler that hangs the GCASM for some reason.
#chip 18lf14k22,16
#config OSC=IRCCLKOUT, PLLEN=ON
#define led PortC.0
dir LED out
'set internal osc to 16mhz '111', 8mhz '110'
IRCF2=1
IRCF1=1
IRCF0=1
Do
nop
Until HFIOFS=1 'wait for HFIOSC to stablize
start:
bsf led
bcf led
'Set Led On
'Set Led Off
goto start
------- Capture Output -------
> "C:\Program Files\GCBasic\Compile.bat" C:\PROGRA~1\CRIMSO~3\18FXXX~1\18LF14~3
Great Cow BASIC (0.9 12/8/2009)
Compiling C:\PROGRA~1\CRIMSO~3\18FXXX~1\18LF14~3 …
Done
Assembling program …
An error has been found:
Error: GCASM: Symbol 3970.0 has not been defined
The message has been logged to the file Errors.txt.
Press any key to continue
The error message is saying it cant find something - pse check your chip specs in the chipdata file for that specific chip and look for your defines which probably wont be found, but from there you should be able to work out the equivalent.