Menu

HEX output?

2007-06-20
2013-05-30
  • Nobody/Anonymous

    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

     
    • Hugh Considine

      Hugh Considine - 2007-06-20

      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.

       
    • Nobody/Anonymous

      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

       
    • Nobody/Anonymous

      *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

       
    • Tam Do

      Tam Do - 2007-06-20

      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

       
    • Hugh Considine

      Hugh Considine - 2007-06-21

      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

       
    • Nobody/Anonymous

      Thank you very much, everything is fine now....

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.