PDA

View Full Version : 16F88 Compile error



Toley00
- 27th October 2005, 03:31
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.

mister_e
- 27th October 2005, 16:54
PBP version?
Code?

Toley00
- 28th October 2005, 00:05
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.

George
- 31st October 2005, 22:13
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

Melanie
- 1st November 2005, 08:16
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.

Ioannis
- 1st November 2005, 11:19
Maybe stupid but have you selected the correct microcontroller?

Ioannis

Toley00
- 2nd November 2005, 00:22
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.