pbp245 compliation error


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19

    Default pbp245 compliation error

    All of a sudden my PBP has decided to freak out.

    here are the error messages i get when i try to compile.

    ----------------------------------------------------
    > cd E:\plc\pbp245\
    > e:\plc\pbp245\PBPW.exe -p16f876a e:\plc\woods\fz2v301.bas


    E:\plc\pbp245>e:\plc\pbp245\PBPW.exe -p16f876a e:\plc\woods\fz2v301.bas
    PM Assembler 4.06, Copyright (c) 1995, 2003 microEngineering Labs, Inc.
    Error PBPPIC14.LIB 6202 : [235] Opcode Expected Instead of 'CLRWDT?NOP'
    Error PBPPIC14.LIB 7402 : [235] Opcode Expected Instead of 'CLRWDT?NOP'
    Error E:\PLC\PBP245\FZ2V301.ASM 177 : [235] Opcode Expected Instead of 'LABEL?L'
    Error E:\PLC\PBP245\FZ2V301.ASM 178 : [235] Opcode Expected Instead of 'CLEAR?'
    Error E:\PLC\PBP245\FZ2V301.ASM 179 : [235] Opcode Expected Instead of 'GOTO?L'
    Error E:\PLC\PBP245\FZ2V301.ASM 181 : [235] Opcode Expected Instead of 'ASM?'
    Error E:\PLC\PBP245\FZ2V301.ASM 252 : [235] Opcode Expected Instead of 'ENDASM?'
    Error E:\PLC\PBP245\FZ2V301.ASM 255 : [235] Opcode Expected Instead of 'LABEL?L'
    Error E:\PLC\PBP245\FZ2V301.ASM 256 : [235] Opcode Expected Instead of 'MOVE?CB'
    Error E:\PLC\PBP245\FZ2V301.ASM 257 : [235] Opcode Expected Instead of 'MOVE?CB'
    Error E:\PLC\PBP245\FZ2V301.ASM 258 : [235] Opcode Expected Instead of 'MOVE?CB'
    Error E:\PLC\PBP245\FZ2V301.ASM 259 : [235] Opcode Expected Instead of 'MOVE?CB'
    Error E:\PLC\PBP245\FZ2V301.ASM 260 : [235] Opcode Expected Instead of 'MOVE?CB'
    Error E:\PLC\PBP245\FZ2V301.ASM 261 : [235] Opcode Expected Instead of 'MOVE?CB'
    Error E:\PLC\PBP245\FZ2V301.ASM 262 : [235] Opcode Expected Instead of 'MOVE?CB'
    Fatal E:\PLC\PBP245\FZ2V301.ASM 262 : [300] Too Many Errors
    PicBasic Pro Compiler 2.45a, (c) 1998, 2004 microEngineering Labs, Inc.
    All Rights Reserved.
    -------------------------------------------------

    I have reinstalled the pbp245 cd INcase of a curruption.

    ANY clues or help will be muchly appreciated.
    cheers
    Woodzy

  2. #2
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Hi Woodzy,
    Have you tried compiling some known good sample code as a test?

    If you've already tried that - can you post your code - maybe somebody can help out.

    Arch
    "Data sheets? I ain't got no data sheets. I don't need no data sheets. I don't have to read any stinking data sheets!"

  3. #3
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Default Still erroring....

    Arch,

    Thanks for your help mate,
    The .bas file listed WAS actually the known good code compile test.

    I have been compiling with PBPW 245 for months now.
    Nothing has at all changed, except I have a new laptop.
    E: drive is an external USB HDD I keep all my data on.

    I have also tried to recompile other known good codes, yet I STILL get the exact same errors.

    PBPW232 works great, except there's no facility for 876"A" etc.

    SO far I am beat.......

    Woodzy

  4. #4
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Default Simple as we can get it.....

    Here is sample code so basic, we only need a LABEL to generate the error.

    code:

    'e:\plc\pbp245\PBPW.exe -p16f876A e:\2005\FZ4\fz4ee0.bas
    '----------------------------------------------------------
    'FILENAME : FZ4ee0.BAS
    '----------------------------------------------------------
    'PARAMETER INITIALISATION ROUTINE
    '----------------------------------------------------------
    SETUP:
    ' clear
    ' DEFINE OSC 4 'set to 4MHz oscill
    ' INCLUDE "modedefs.bas"
    '----------------------------------------------------------

    error:

    > cd E:\plc\pbp245
    > e:\plc\pbp245\PBPW.exe -p16f876A e:\2005\FZ4\fz4ee0.bas

    E:\plc\pbp245>e:\plc\pbp245\PBPW.exe -p16f876A e:\2005\FZ4\fz4ee0.bas
    PM Assembler 4.06, Copyright (c) 1995, 2003 microEngineering Labs, Inc.
    Error E:\PLC\PBP245\FZ4EE0.ASM 48 : [235] Opcode Expected Instead of 'LABEL?L'
    *** 1 Error ***
    PicBasic Pro Compiler 2.45a, (c) 1998, 2004 microEngineering Labs, Inc.
    All Rights Reserved.
    ~~~~~~~~~~~~~~~~~~~~~~~

    ASM file: (NOTE: I have inserted the line numbers, #48 is the offender tho)

    1
    2 ; PicBasic Pro Compiler 2.45a, (c) 1998, 2004 microEngineering Labs, Inc. All Rights Reserved.
    3 PM_USED EQU 1
    4
    5 INCLUDE "16F876A.INC"
    6
    7
    8 ; Define statements.
    9 #define CODE_SIZE 8
    10
    11 RAM_START EQU 00020h
    12 RAM_END EQU 001EFh
    13 RAM_BANKS EQU 00004h
    14 BANK0_START EQU 00020h
    15 BANK0_END EQU 0007Fh
    16 BANK1_START EQU 000A0h
    17 BANK1_END EQU 000EFh
    18 BANK2_START EQU 00110h
    19 BANK2_END EQU 0016Fh
    20 BANK3_START EQU 00190h
    21 BANK3_END EQU 001EFh
    22 EEPROM_START EQU 02100h
    23 EEPROM_END EQU 021FFh
    24
    25 R0 EQU RAM_START + 000h
    26 R1 EQU RAM_START + 002h
    27 R2 EQU RAM_START + 004h
    28 R3 EQU RAM_START + 006h
    29 R4 EQU RAM_START + 008h
    30 R5 EQU RAM_START + 00Ah
    31 R6 EQU RAM_START + 00Ch
    32 R7 EQU RAM_START + 00Eh
    33 R8 EQU RAM_START + 010h
    34 FLAGS EQU RAM_START + 012h
    35 GOP EQU RAM_START + 013h
    36 RM1 EQU RAM_START + 014h
    37 RM2 EQU RAM_START + 015h
    38 RR1 EQU RAM_START + 016h
    39 RR2 EQU RAM_START + 017h
    40 _PORTL EQU PORTB
    41 _PORTH EQU PORTC
    42 _TRISL EQU TRISB
    43 _TRISH EQU TRISC
    44 INCLUDE "FZ4EE0.MAC"
    45 INCLUDE "PBPPIC14.LIB"
    46
    47
    48 LABEL?L _SETUP
    49
    50 END

    ================================================== ==

    I hope someone may have a flash of ingenuity here and see the error?

    cheers
    Woodzy
    Last edited by Woodzy; - 24th July 2006 at 02:05.

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Woodzy,

    What happens if you use this command...

    > cd E:\plc\pbp245
    > PBPW.exe -p16f876A e:\2005\FZ4\fz4ee0.bas -v -ie:\2005\FZ4
    <br>
    DT

  6. #6
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Darrel,

    No. Also had to strip the "e:\2005\FZ4" from the nd of the command as it gave THIS error......
    WARNING: Only one filename allowed on the command line.
    ERROR: Unable to open file E:\2005\FZ4.BAS

    so without it...

    > cd E:\plc\pbp245
    > PBPW.exe -p16f876A e:\2005\FZ4\fz4ee0.bas -v -i

    E:\plc\pbp245>PBPW.exe -p16f876A e:\2005\FZ4\fz4ee0.bas -v -i
    PM Assembler 4.06, Copyright (c) 1995, 2003 microEngineering Labs, Inc.
    Error E:\PLC\PBP245\FZ4EE0.ASM 48 : [235] Opcode Expected Instead of 'LABEL?L'
    *** 1 Error ***
    PicBasic Pro Compiler 2.45a, (c) 1998, 2004 microEngineering Labs, Inc.
    All Rights Reserved.
    Pass 1:
    Pass 2:
    Code Gen:
    Macro Pass:
    PM.EXE E:\plc\pbp245\fz4ee0.ASM

    So, the error is STILL [235]

    cheers
    Woodzy

  7. #7
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Default compilation error

    NUP PBP232 is good, PBP245 will NOT behave
    cheers
    Woodzy
    Last edited by Woodzy; - 24th July 2006 at 04:56.

  8. #8
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Default the plot thickens....

    I did find in the picbasic forum, a thread that said to mod the
    compatibility properties to suit win98/Me, I did that and it fixed the compilation error.

    NOW the problem I have is, that the same program that will fit into
    the 877 when compiled by pbp232, wont fit if compiled by pbp245.

    I assume pbp245 has a few more includes that bloat the compiled file?

    any clues???

    cheers
    Woodzy

  9. #9
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I'll bet the core library has been updated between versions 2.32 and 2.45.

    This probably comes with a larger compiled program size depending on the
    library commands used in your code.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  10. #10
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    You got it Bruce.

    Back to pbp232 while the 877's hold out.

    Cheers
    Woodzy

Similar Threads

  1. Using input from Switch to control a loop
    By MrRoboto in forum mel PIC BASIC
    Replies: 9
    Last Post: - 2nd February 2009, 05:02
  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. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 00:22
  5. Compiler/Assembler Error
    By LT_Pic in forum General
    Replies: 7
    Last Post: - 21st July 2005, 09:47

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