PDA

View Full Version : Not able to compile code due to PBPPROC.bal file not found



Thephoenix
- 5th June 2015, 03:13
Hey All, I am relatively new to programming with the Picbasic Pro compiler and MPLAB IDE v.8.53. I am currently trying to compile some old code (C with inline assembly) on a windows 8.1 machine. I am trying to compile this for the 18F4520. When attempting to compile, I am getting the following error:


--------------------
Executing: "C:\PBP\PBPMPLAB.BAT" -p18F4520 -n -ampasmwin -k# "FILE.pbp"
Executing: "C:\PBP\PBPW.EXE" -p18F4520 -n -ampasmwin -k# "FILE.pbp"
PICBASIC PRO(TM) Compiler 2.60LA, (c) 1998, 2009 microEngineering Labs, Inc.
All Rights Reserved.


ERROR: Unable to find -p<pic> processor file PBPPROC.BAL


PICBASIC PRO(TM) Compiler 2.60A, (c) 1998, 2010 microEngineering Labs, Inc.
All Rights Reserved.

----------------------



Note that there is a 18F4520.BAL file in the PBP directory, and there appears to be a .BAL, .BAS and .INC file for most processors. There is also a PBPPROC.BAS file and a PBPPROC.INC file but no PBPPROC.BAL file. The PBPPROC .BAS and .INC files both only contain this:

INCLUDE "16F84.BAS"

in the .bas file and

INCLUDE "16F84.INC"

in the .inc file.

Is there an easy solution to solve this? Can I make a .BAL file? Why wasn't this file in the directory when I installed PBP?

Thanks in advance!

mackrackit
- 5th June 2015, 03:31
Am I understanding you correctly? You are trying to compile C code with PicBasic? If so, that will not work, PicBasic is a compiler for PicBasic.

If I am misunderstanding, please post your code so we can see what is going on.

Thephoenix
- 5th June 2015, 03:59
Whoops, that was a mistake. The file is indeed in PicBasic, and has inline assembly denoted by "asm" and "ENDASM" lines. It was provided as a .txt file, and includes a .pbp file that is just a bunch of routines written in assembly. Thank you for the quick response!