PDA

View Full Version : pbp245 compliation error



Woodzy
- 21st July 2006, 03:02
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

Archilochus
- 21st July 2006, 22:27
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

Woodzy
- 23rd July 2006, 23:57
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

Woodzy
- 24th July 2006, 01:59
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

Darrel Taylor
- 24th July 2006, 02:58
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>

Woodzy
- 24th July 2006, 03:11
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

Woodzy
- 24th July 2006, 04:47
NUP PBP232 is good, PBP245 will NOT behave
cheers
Woodzy

Woodzy
- 24th July 2006, 23:11
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

Bruce
- 25th July 2006, 00:57
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.

Woodzy
- 25th July 2006, 05:59
You got it Bruce.

Back to pbp232 while the 877's hold out.

Cheers
Woodzy