The first problem is probably because you haven't turned off case sensitivity in MPASM or gputils. To turn off case sensitivity in MPASM, either untick the "Case Sensitive" box or use the /c- command line switch. To turn it off in gputils, use the "-i" switch.
If you've used the standard GCBASIC install program and are getting an error about "InitSys" not being found, then something more serious is happening. If case sensitivity is disabled and the problem doesn't go away, please post the .asm file generated by GCBASIC here or email it to me at w_cholmondeley@users.sourceforge.net
The second error would be caused by attempting to set the direction of an individual IO pin. On the 12F508 and some other low level chips, it is only possible to set the direction of the whole port at once. This is a limitation of some PIC chips, and I'll add an error to GCBASIC to warn of this.
Thanks for posting about the issues that you've encountered, and please don't hesitate to ask if you have any more queries or problems. I've no intention of abandoning GCBASIC any time soon!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The InitSys problem was due to not useing the -i switch.
The TRISGP0 error went away when I set all of the ports to "in" to read ports 1-5 and all of the ports to "out" to write to port 0.
The code assembled perfectly on the first try...
I was *not* aware of this problem in the 12C508 part, and couldn't find any mention of it in the datasheet - but I'm quite aware that Microchip's documentation is far from perfect !
You're quite brave in designing this compiler - my hair would turn white at the very thought !
Please keep up the good work, your compiler is quite remarkable in the number of higher level functions provided.
Thanks again !
Daryl
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I just found your version of Basic for Pic's, and am trying to compile a simple program to test it out.
I'm writing the code for a 12F508 and when assembling the code from the compiler I get two error messages:
Error [113] : Symbol not previously defined (INITSYS).
Error [113] : Symbol not previously defined (TRISGP0).
I'm trying to figure out if it's something I've not defined, or if it's a problem with GCBasic.
I downloaded the latest update.zip file, but I still get the same problem.
I sure hope you continue to debug this Basic, it has the potential to be a lot better than most of the commercial versions available !
Thanks,
Daryl
The first problem is probably because you haven't turned off case sensitivity in MPASM or gputils. To turn off case sensitivity in MPASM, either untick the "Case Sensitive" box or use the /c- command line switch. To turn it off in gputils, use the "-i" switch.
If you've used the standard GCBASIC install program and are getting an error about "InitSys" not being found, then something more serious is happening. If case sensitivity is disabled and the problem doesn't go away, please post the .asm file generated by GCBASIC here or email it to me at w_cholmondeley@users.sourceforge.net
The second error would be caused by attempting to set the direction of an individual IO pin. On the 12F508 and some other low level chips, it is only possible to set the direction of the whole port at once. This is a limitation of some PIC chips, and I'll add an error to GCBASIC to warn of this.
Thanks for posting about the issues that you've encountered, and please don't hesitate to ask if you have any more queries or problems. I've no intention of abandoning GCBASIC any time soon!
Ok, right you are !
The InitSys problem was due to not useing the -i switch.
The TRISGP0 error went away when I set all of the ports to "in" to read ports 1-5 and all of the ports to "out" to write to port 0.
The code assembled perfectly on the first try...
I was *not* aware of this problem in the 12C508 part, and couldn't find any mention of it in the datasheet - but I'm quite aware that Microchip's documentation is far from perfect !
You're quite brave in designing this compiler - my hair would turn white at the very thought !
Please keep up the good work, your compiler is quite remarkable in the number of higher level functions provided.
Thanks again !
Daryl