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
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!"
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
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.
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
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
NUP PBP232 is good, PBP245 will NOT behave
cheers
Woodzy
Last edited by Woodzy; - 24th July 2006 at 04:56.
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
Bookmarks