16F88 Compile error


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2005
    Posts
    29

    Default 16F88 Compile error

    I have this error message when I compile a 16F88 program.

    ERROR: RAM END must be defined.
    ERROR: RAM BANKS must be defined.
    ERROR: No LIBRARY statement or LIBRARY parameter.
    ERROR: No LIBRARY statement or MACRO parameter.
    ERROR: Unable to open file PBPMAC.INC
    ERROR Line 12: Syntax error. (16f88.bas)
    ERROR Line 15: Bad expression. (16f88.bas)
    ERROR Line 17: Bad expression. (16f88.bas)
    ERROR Line 11: Syntax error. (Test02.bas)
    ERROR Line 12: Syntax error. (Test02.bas)
    ERROR Line 13: Syntax error. (Test02.bas)
    ERROR Line 16: Bad expression. (Test02.bas)
    ERROR Line 18: Bad expression. (Test02.bas)

    This happen only with this chip I have no prob with 16F84 or 16F877.

    Thank you for any help.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    PBP version?
    Code?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jun 2005
    Posts
    29


    Did you find this post helpful? Yes | No

    Default

    Latest PicBasic Pro version 2.46, very simple code (even with no code at all in microcode studio). Here's a simple example I tried with :

    ANSEL = 0

    START :
    HIGH PORTB.0
    PAUSE 1000
    LOW PORTB.0
    GOTO START

    I don't think it's a programming error, more likely a compilator error. I was able to program 16F88 in the past but I format my PC recently and reinstall and now that's what I get.

  4. #4
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Default

    I had an issue with 2.46 after I reinstalled it - slightly different to yours but give it a shot, in windows explorer go to the pbp directory and right click on pbpw.exe click on properties, then compatibility, set it to run under win 98 compatibility

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Your example compiles without error...

    PBP246>PBP -P16F88 ZTESTB -V
    PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
    All Rights Reserved.
    Pass 1:
    Pass 2:
    Code Gen:
    Macro Pass:
    PM.EXE H:\DATA-R~1\PIC\PBP246\ZTESTB.ASM
    PM Assembler 4.07, Copyright (c) 1995, 2004 microEngineering Labs, Inc.
    58 words used.

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795


    Did you find this post helpful? Yes | No

    Default

    Maybe stupid but have you selected the correct microcontroller?

    Ioannis

  7. #7
    Join Date
    Jun 2005
    Posts
    29


    Did you find this post helpful? Yes | No

    Default

    OK thank you for your help. My problem seems to be a directory problem... Curiously I changed my working directory and now it works fine. Sorry for the inconvenience and thank you for helping me.

Similar Threads

  1. Compile error & syntax error on the word "loop:" as a label?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th March 2010, 05:14
  2. 16F877A Microcode Studio won't compile
    By curt66111 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th November 2009, 20:35
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th December 2008, 00:40
  4. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 05:58
  5. 18F452 compile error
    By Woodzy in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th November 2006, 17:56

Members who have read this thread : 1

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