PDA

View Full Version : PBP 3 will not compile



grahamg
- 20th May 2016, 07:46
I have installed pbp 3 on a Windows 7 machine and have registered with correct serial number. When I compile the asm file using microchip mpasm tool suite it compiles correctly. If I try to use the micro engineering pic basic pro tool suite I then get the error: unable to execute mpasmwin.
Any help would be appreciated.

HKMathews
- 28th July 2016, 18:15
Check your path. I use a DOS batch file to do all my editing (Programmer's Notebook) and compiling, without the IDE. An example:

path c:\program files\pbp3;c:\program files\microchip\mpasm suite;c:\Program Files\Programmer's Notepad
REM Enter the file name, project file folder name, and PIC type. Use quotes if any spaces.
set filename=USERV200
set projectdrive=g:
set projectfile="My Job\software\New Rev"
set pic=18F67K90

REM The following stuff doesn't change
%projectdrive%
cd \%projectfile%
pn %filename%.bas
del %filename%.er
del %filename%.err
pbpx -ampasmwin -p%pic% -e -n %filename%

HKMathews
- 28th July 2016, 18:45
Now I have a question - I'm trying to modify a PBP 2.60 program into PBP 3.0.7, for the PIC16F913. I get several versions of this error at the end of compiling:

"Error[126] C:\PROGRAM FILES\PBP3\PBPPIC14.LIB 745 : Argument out of range (4111 not between 0 and 4095)"

I run the compiler without long variables from a batch file, i.e. "pbpx -ampasmwin -p%pic% -e %filename%" (no "-n"). The program doesn't use long variables.

These are my last 6 remaining errors. The 745 is 589 sometimes, and the 4XXX argument number changes. Anyone have a clue? What more do you need to help me? I see references to the PIC16F913.INC file, but I can only find a PIC16F913.PBPINC file, and nothing that I can find calls out the PBPPIC14.LIB file (which I found).

grahamg
- 29th July 2016, 09:28
I am now trying to compile on an old Xp laptop machine and am getting the following message: Warning: unable to open INCLUDE file c:\libraries\documents\pbp projects\newexclusion\lcd_anypin.pbp.
Error[112] c:\program files\pbp3\pbppic14.lib 897 : missing operator.

Any help would be appreciated. Graham Guthrie

HenrikOlsson
- 29th July 2016, 12:10
Read the error message(s), what does it tell you?
It's looking for the file LCD_ANYPIN.PBP in the folder mentioned in the message. Do you have such a file at that location? If not you have to put it there, in the same folder as the source file or in the PBP folder. The other message may (or may not) go away once the first one is fixed.

If you think you're having problem with the toolchain, the IDE, the compiler, the assember then the simplest "Hello World" or "Blink-a-LED" program is what you need to test with.

/Henrik.

grahamg
- 3rd August 2016, 09:54
I am slowly progressing but have now getting a message that says HIGHJACKED_LCDOUT not found PBPPIC??.LIB.
Can you please advise on how to install this in the correct Library.

Thank, you Graham Guthrie

grahamg
- 7th August 2016, 10:12
How can I find out which machines my PBP3 is registers on? Regards Graham Guthrie