Mystery Compile Error


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    I installed PBP 2.60 & MCS 3.0.0.5 on my laptop and this code works (selecting 16f84a):

    DEFINE OSC 20

    FLASH_ON VAR BYTE
    FLASH_OFF VAR BYTE
    LED_0 VAR PORTB.0

    FLASH_ON = 1500
    FLASH_OFF = 500

    lblLoop:
    High LED_0
    Pause FLASH_ON
    Low LED_0
    Pause FLASH_OFF

    GoTo lblLoop

    End

    I tried bumping up the memory allocation for the Windows XP virtual machine that is reporting the out of memory error, but no luck.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RossWaddell View Post
    I tried bumping up the memory allocation for the Windows XP virtual machine that is reporting the out of memory error, but no luck.
    What is the parent OS?

    This may help
    http://www.picbasic.co.uk/forum/showthread.php?t=12532
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    It's an iMac with Mac Snow Leopard OS (10.6.2). I'm using Parallels Desktop to create the Windows XP virtual machine.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RossWaddell View Post
    It's an iMac with Mac Snow Leopard OS (10.6.2). I'm using Parallels Desktop to create the Windows XP virtual machine.
    OHHhhh...
    Well like I said, MCS and Linux do not get along and MACs are Unix based also... I think...
    I do not know the file structure of a MAC but with Linux I make a *.bat file for each project and keep it in the projects directory. At compile time I run the BAT.

    I also use GEDIT for writing code. Never got along with EMACS...
    In Linux and WINE there is a "C" directory as in windows, PBP and MPASMWIN will live there.

    Below is a BAT example. If errors are found a *.ER and a *.ERR file will be created in the projects directory. I name it "hex.bat".
    The HEX will be there also.
    Maybe something like this will work for you...

    Code:
    cd /media/16GBSTIC/PIC_PROG/16f887
    
    wine c:/pbp/pbpw -e -s -ac:/Program\ Files/Microchip/MPASM\ Suite/MPASMWIN -p16f887 z:/media/16GBSTIC/PIC_PROG/16f887/887.bas
    
    wine c:/Program\ Files/Microchip/MPASM\ Suite/mpasmwin /e /l 887.asm
    Dave
    Always wear safety glasses while programming.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Thanks Dave! I will try that tonight. If I understand your batch file correctly, then:

    - switch to the folder containing the . bas project file (I presume so the resulting .asm & .hex files will be created in the same place)

    - compile .asm file with appropriate switches to tell it what PIC you're using and what .bas file to compile

    - create .hex file

    Where could I get more info on some of the command line switches you're using?

    e.g. c:/pbp/pbpw -e -s -ac

    and mpasmwin /e /l

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RossWaddell View Post
    Thanks Dave! I will try that tonight. If I understand your batch file correctly, then:

    - switch to the folder containing the . bas project file (I presume so the resulting .asm & .hex files will be created in the same place)
    Yes, everything will be in the projects directory.
    - compile .asm file with appropriate switches to tell it what PIC you're using and what .bas file to compile

    - create .hex file
    And tell the directory.
    Where could I get more info on some of the command line switches you're using?

    e.g. c:/pbp/pbpw -e -s -ac

    and mpasmwin /e /l
    The PBP manual has a section about using the command line. Actually PBP is a command line program. And for the MPASWIN stuff. Open MPLAB and under Help/Topics pick MPASAM Assembler.
    Then in the index tab "Command Line Interface" sub set "Assembler".
    Attached Images Attached Images  
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. 16F877A Microcode Studio won't compile
    By curt66111 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th November 2009, 19:35
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 04:58
  4. 18F452 compile error
    By Woodzy in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th November 2006, 16:56
  5. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 00:22

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts