Menu

HOW DO I GET GCBASIC TO WORK!!!!!

Help
2008-09-28
2013-05-30
  • Nobody/Anonymous

    Hi, I am not a genius and downloaded GCBASIC thinking I could do away with assembler and use basic which I understand.  I drag the .bas file onto compile.bat and I do not get a .asm file.  The command prompt window closes so fast that I cannot see if there is a problem.  I thought that maybe you should drag and drop just a plain old .txt file that contained basic but no still no result.  Before anyone states the obvious and replies "you need to put the command call of your programmer application in where it says add the..."  I know it says that but like I said I am not a genius and do not know what to put there.  I use MPASMWIN and progpic2 to program/compile the code for the PIC's.  Please can somebody help me?!

    Compile.bat - "@ECHO OFF
    C:
    cd \PROGRA~1\GCBASIC

    GCBASIC /NC %1 /O:compiled.asm /A:makeasm.bat /P:download.bat"

    download.bat - "@ECHO OFF
    REM Add the command to call your programmer application here
    REM (The file to download will be called COMPILED.HEX)"

    makeasm.bat - "@ECHO OFF
    C:\progra~1\microc~1\mpasms~1\MPASMWIN /c- /o- /q+ /l- /x- /w1 compiled.asm
    del compiled.cod>nul"

    PS What is the the point of GCBASIC.exe it just opens the compile.bat file!?

     
    • Mark Twomey

      Mark Twomey - 2008-09-29

      Before trying to use the compile.bat automation, just try dragging your program.bas file onto gcbasic.exe  and it should generate a program.asm file in the same directory.

      Then you can compile the asm file into a hex file with your assembler.

       
    • Nobody/Anonymous

      Yeh I tried that but it still does not work

       
    • kent_twt4

      kent_twt4 - 2008-10-21

      First make sure you have the latest update file downloaded from here:
      http://gcbasic.sourceforge.net/update.html

      If you have the Crimson Editor (or an IDE?) installed there is an output window, much like in MPLAB.  Any error that occurs from the GCBasic.exe will show up here, and promptly stop.  Many times the GCB compilation works, an assembler file is created, but errors are found in MPASM (or GCASM).  These errors will also show up in the output, and can be a little harder to track down.

      Crimson editor can be installed by going to the html help file in the GCBasic folder (I know, not so obvious).  If you go to that and open up Using GCBasic, there is link for Getting Started with GCGasic.  It lays out how to link up to the GCBasic compile.bat with a function key.

      There is also info on how to link your programmer to the compile.hex file, but  it is not absolutely necessary, as you can just import the compile.hex file from the programmer.

      There is probably just some syntax problem with your efforts to compile, so post back with your code if there is still a problem.

       
    • Tom

      Tom - 2008-11-14

      Just out of interest, what OS are you on and where is your .bas file?

      If the .bas is in the same directory as gcbasic and that's in Program Files and you're on Vista the file won't be being created I think due to admin rights.  The same happend if you drag a file from the Demo dir onto compile of gcbasic.

      If you move a file from the Demo directory to another drive, or into My Documents, then drag it onto compile do you get anything?

      Tom

       
    • Nobody/Anonymous

      Hi
      I have just started with PICS and GCBASICI. I have PICKit2 and MPLABV8.10 which are working well.
      I was hoping to code in GCBASIC as it looks close to VB which I am pretty familiar with.
      I and am having the same problem with vista, I have tried both the standalone GCBASIC and also the Crimson Editor following the web instructions but have had no joy.

      I then put the same standalone GCBASIC on my old XP PC and it generated the files on the first attempt. So I am guessing it is somthing to do with Vista.

      I could not get Crimson working on my XP machine either. It does not seem to be able to find the files, even though they are visible when you press the F9 button I have triple checked against the instructions.

      Has anybody got some clear instructions on how to get GCBASIC working on Vista.

      The other thing that is confuzing me is the file types
      all the demos are text files not .Bas files ? Does it matter what the file type is as long as it has the right text ?

      Thanks

       

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.