Hi All,
Can nowadays version of GCBASIC generate a HEX file or ASM only? Because I have read on homepage, that GCBASIC can generate HEX, but I always get ASM only....
Thanks for any reply
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The newest version of GCBASIC (the one contained in update.zip) can generate hex files. You'll need to open up compile.bat and add the /A:GCASM switch.
Earlier versions of GCBASIC, including the currently released 0.9.3.0, rely on an external assembler such as gputils or MPASM. If you've installed the standard version of GCBASIC, gputils should be installed and set up to work with GCBASIC automatically.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, thanks, it works now....But I have another problem, compiler writes me an error:
GCASM: Symbol SYSWAITTEMPMS_H has not been defined
GCASM: Symbol SYSWAITTEMPMS_H has not been defined
I tried to defined it in ASM, but because I'm a beginner, I couldn't fix it
The source code was following (it is from homepage of GCBASIC, I was just trying, if I could get it into the PIC):
There was a bug in GCBASIC, which was caused when I made some modifications to the delay routines recently. The fix is in update.zip.
I also found another issue with some of the chip data files, including the one for the 16F648A, which would have caused invalid config settings. The fixed files are now in http://gcbasic.sourceforge.net/newfiles/update.zip
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
Can nowadays version of GCBASIC generate a HEX file or ASM only? Because I have read on homepage, that GCBASIC can generate HEX, but I always get ASM only....
Thanks for any reply
The newest version of GCBASIC (the one contained in update.zip) can generate hex files. You'll need to open up compile.bat and add the /A:GCASM switch.
Earlier versions of GCBASIC, including the currently released 0.9.3.0, rely on an external assembler such as gputils or MPASM. If you've installed the standard version of GCBASIC, gputils should be installed and set up to work with GCBASIC automatically.
Ok, thanks, it works now....But I have another problem, compiler writes me an error:
GCASM: Symbol SYSWAITTEMPMS_H has not been defined
GCASM: Symbol SYSWAITTEMPMS_H has not been defined
I tried to defined it in ASM, but because I'm a beginner, I couldn't fix it
The source code was following (it is from homepage of GCBASIC, I was just trying, if I could get it into the PIC):
#chip 16F648A, 4
#config INTOSC_OSC_NOCLKOUT, BODEN_OFF
FlashLight:
SET PORT.0 ON
WAIT 50 10ms
SET PORT.0 OFF
WAIT 50 10ms
GOTO FlashLight
*correction:
#chip 16F648A, 4
#config INTOSC_OSC_NOCLKOUT, BODEN_OFF
FlashLight:
DIR PORTB.0 OUT
SET PORTB.0 ON
WAIT 50 10ms
SET PORTB.0 OFF
WAIT 50 10ms
GOTO FlashLight
Indeed that code does not work. It seems like that syntax is currently not supported for wait.
Instead try:
WAIT 500 ms
and that does work.
--Tam
There was a bug in GCBASIC, which was caused when I made some modifications to the delay routines recently. The fix is in update.zip.
I also found another issue with some of the chip data files, including the one for the 16F648A, which would have caused invalid config settings. The fixed files are now in http://gcbasic.sourceforge.net/newfiles/update.zip
Thank you very much, everything is fine now....