Might be a hiccup with GCASM, as it compiles with MPASM. Or maybe you have defined a constant, and then tried to manipulate it outside the context within which it was defined. Ok, doesn't sound quite right but consider below:
#define number 25 'This is a byte sized number
...
...
...
If number.8 On Set LED ON 'Can't do that
At any rate check your defines and how you use them. Or are you using a single value that is defined as "F". The GCBasic help file shttp://gcbasic.sourceforge.net/help/
says you need to minimum 2 characters.
Kent
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, thanks for the reply, but if you take any of the sample programs (Blinkled) for example, the error as above is reported. I will try using mpasmwin.exe and see if that helps. Program works OK if you use an 18F2550 though!
Phil.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The issue was that there were 2 definitions for F. I've removed the one for the F bit in the ECANCON register, as it already has another name (FIFOWM).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Error: GCASM: Duplicate, Conflicting Definition for F
Might be a hiccup with GCASM, as it compiles with MPASM. Or maybe you have defined a constant, and then tried to manipulate it outside the context within which it was defined. Ok, doesn't sound quite right but consider below:
#define number 25 'This is a byte sized number
...
...
...
If number.8 On Set LED ON 'Can't do that
At any rate check your defines and how you use them. Or are you using a single value that is defined as "F". The GCBasic help file shttp://gcbasic.sourceforge.net/help/
says you need to minimum 2 characters.
Kent
Hi, thanks for the reply, but if you take any of the sample programs (Blinkled) for example, the error as above is reported. I will try using mpasmwin.exe and see if that helps. Program works OK if you use an 18F2550 though!
Phil.
There was a problem with the chip data file for the 18F2585. Here is a fixed replacement: http://gcbasic.sourceforge.net/newfiles/18f2585.dat
The issue was that there were 2 definitions for F. I've removed the one for the F bit in the ECANCON register, as it already has another name (FIFOWM).