I seem to be missing some basics of operation. This is my result for my first program. I am using GCBASIC Version: 0.9 29/10/2006
Wrote the program in Crimson. Did not set syntax, just used out of the box ( did not find syntax for GCBASIC by the way ) Customized the program blinkled.txt a bit for my hardware. F9 did not seem to do anything for me, so I used a brief batch file to compile:
c:
cd C:\Program Files\GCBASIC\
"C:\Program Files\GCBASIC\GCBASIC.EXE" C:\Russ\PER\_XX\PIC\GCBasic\Demos\BlinkLED.txt
pause
Got a message that it compiled successfully. Looked around for the result of the compile. Found C:\Russ\PER\_XX\PIC\GCBasic\Demos\BlinkLED.asm
Then I fired up MPLab ( MPLab 6.10.0.0 )
I opened the asm file and found it looked like an asm file – cool. Then used Project -> Quickbuild in MPLab. But I got an error:
Error[113] C:\RUSS\PER\_XX\PIC\GCBASIC\DEMOS\BLINKLED.ASM 25 : Symbol not previously defined (INITSYS)
Messing around in the asm file I found InitSys was defined, I changed line 25 to the same capitalization : InitSys and tried again. This time success: I got a hex file to program in.
Will report on this if I have trouble downloading or running.
Russ
Despite a bit of struggle I think this is a great program for the PIC community.
Note: oddly enough I looked around a bit at the GCBasic directory. I found that some of my issues involve not using the batch files supplied. Who knew. I will try these soon. Some directions for others might help them. In any case I kind of like MPLab, but maybe I will be converted.
Russ
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The update.zip file contains a new executable dated 12/24/2006 and some new header files. Extract it to your GCBASIC folder, and it will overwrite the old ones. This is what was causing a "Symbol not previously defined (INITSYS)" error for me.
Once you write a basic program, to compile it, all you have to do is open up the gcbasic folder in windows explorer, and "drag" the program you wrote on to the "compile.bat" file in windows explorer. It will then compile your program, and put the output into your GCBASIC folder as compile.hex
I think MPLab is an ok tool, but I like using a higher level language for being able to develop more rapidly.
Steve
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Since GC basic gives me an asm file it needs to go thru some assembler. Looking at an possibly tweaking the code is a plus for me, and if I make no changes it does not force me down to assembler level. Makeasm.bat uses the pogra~1\gputils\bin\gpasm assembler which I have not looked at. I think it is just command line with no gui, so is good if you do not want to see the asm code, but it does not eliminate it.
Russ
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I seem to be missing some basics of operation. This is my result for my first program. I am using GCBASIC Version: 0.9 29/10/2006
Wrote the program in Crimson. Did not set syntax, just used out of the box ( did not find syntax for GCBASIC by the way ) Customized the program blinkled.txt a bit for my hardware. F9 did not seem to do anything for me, so I used a brief batch file to compile:
c:
cd C:\Program Files\GCBASIC\ "C:\Program Files\GCBASIC\GCBASIC.EXE" C:\Russ\PER\_XX\PIC\GCBasic\Demos\BlinkLED.txt
pause
Got a message that it compiled successfully. Looked around for the result of the compile. Found C:\Russ\PER\_XX\PIC\GCBasic\Demos\BlinkLED.asm
Then I fired up MPLab ( MPLab 6.10.0.0 )
I opened the asm file and found it looked like an asm file – cool. Then used Project -> Quickbuild in MPLab. But I got an error:
Error[113] C:\RUSS\PER\_XX\PIC\GCBASIC\DEMOS\BLINKLED.ASM 25 : Symbol not previously defined (INITSYS)
Messing around in the asm file I found InitSys was defined, I changed line 25 to the same capitalization : InitSys and tried again. This time success: I got a hex file to program in.
Will report on this if I have trouble downloading or running.
Russ
Despite a bit of struggle I think this is a great program for the PIC community.
Note: oddly enough I looked around a bit at the GCBasic directory. I found that some of my issues involve not using the batch files supplied. Who knew. I will try these soon. Some directions for others might help them. In any case I kind of like MPLab, but maybe I will be converted.
Russ
Russ --
Here are a few things I've figured out.
You need to get the latest version installed, plus update a few files.
Install GCBASIC from the installer that you download on sourceforge. Then point your browser to:
http://gcbasic.sourceforge.net/newfiles/update.zip
The update.zip file contains a new executable dated 12/24/2006 and some new header files. Extract it to your GCBASIC folder, and it will overwrite the old ones. This is what was causing a "Symbol not previously defined (INITSYS)" error for me.
Once you write a basic program, to compile it, all you have to do is open up the gcbasic folder in windows explorer, and "drag" the program you wrote on to the "compile.bat" file in windows explorer. It will then compile your program, and put the output into your GCBASIC folder as compile.hex
I think MPLab is an ok tool, but I like using a higher level language for being able to develop more rapidly.
Steve
Thanks Steve
I will try what you said.
Since GC basic gives me an asm file it needs to go thru some assembler. Looking at an possibly tweaking the code is a plus for me, and if I make no changes it does not force me down to assembler level. Makeasm.bat uses the pogra~1\gputils\bin\gpasm assembler which I have not looked at. I think it is just command line with no gui, so is good if you do not want to see the asm code, but it does not eliminate it.
Russ