PDA

View Full Version : Cannot get pbp to compile



Tom@Nottingham
- 31st March 2009, 12:19
I have the following setup
C\program files \microchip\MPASM Suite(MPLAB 8.20a)
C\pbp
C\MCS In this folder are the .pbp and .hex project files
I have commented out the 5 config lines in the 18f4550.inc
When compliling a basic program in MCS I get error message
Error[105]c\pbp\18f4550.inc 19:cannot open file(include file P18F4550.inc not found). Plus several Error[113]

Everthing was working until I started altering things, but cannot get it right now.

Any help appreciated

astouffer
- 31st March 2009, 20:50
Maybe try C:\...

Darrel Taylor
- 31st March 2009, 21:06
I don't think you can use MPLAB 8.20 with PBP.

See the note on this page (1/26/2009) ...
http://melabs.com/support/mplab.htm

SOMRU
- 31st March 2009, 21:10
I've tried numerous times to get MPASM to work with 16f8xx series.
Sill no luck.
Haven't has the time to figure why...
This is year three.
I'm on the ninth generation of the system now.
Had to do it the hard way.
I write in PBP only.a
Any insights would be rewarded with gratitude.

Tom@Nottingham
- 31st March 2009, 23:19
Hi

Thanks for your help/suggestions. I just forgot to put in the : at C prompt! If only it were that simple!!

Derrel, I have checked the link you gave me and I agree it cannot work using MPLAB 8.20.

In the meantime I have been studying other links and managed to get the errors down to 2.

My next step is to download 8.15a version of MPLAB and try again. I will let you know how I get on.

Many thanks.

mackrackit
- 31st March 2009, 23:27
There is a version of MPLAB on the CD when you purchased PBP. Why not use that.

mister_e
- 1st April 2009, 04:34
You can work with MPLAB 8.20 and latest 8.30 but it will have some serious limitations about the debugger MPSIM, not sure for PICKIT 2.

For PIC18, you need to add the linker file. In your case 18F4550.lkr to your project.

And then you go to, Project> Build Option > Project PicBasic Pro tab. There you select Use MPASM assembler and Use Linker /COFF debugging. Not much. BUT it will sucks, you can't monitor your variable, but only some PIC registers.

Not a so easy task to create reliable COFF files.... even if the reference book for it is quite small :o

Finally mpswitch seems to suffer a little bit with the latest release, so it's not a viable option yet (well last time I tried it)... If you only use PBP in MPLAB, there's no real advantage to use the latest 8.20 or 8.30 version.

Acetronics2
- 1st April 2009, 12:38
Finally mpswitch seems to suffer a little bit with the latest release, so it's not a viable option yet (well last time I tried it)... If you only use PBP in MPLAB, there's no real advantage to use the latest 8.20 or 8.30 version.

Hi, Steve

No advantage at all ... from MPLAB V 8.15a, It doesn't compile any more !!! ROFL

NOTE: MPLAB 8.15a is available as a direct download on Melab's site ...

Alain

mister_e
- 1st April 2009, 15:55
It compile, but lack most feature, so useless :D

For PIC18, you add the linker file, for none 18F you don't use MPASM assembler... yeah that's pain ;)

Tom@Nottingham
- 2nd April 2009, 16:24
I now have the 8.15a version installed and that cured the errors.

I am now trying to get MCS easyhid to work. I have copied the 18f4550.bal plus most all files from the USB18 folder to my c:\projects folder and am now getting the usual "error:Macro USBNIT? Not found in macro file" together with the other three errors usbservice, usbin, usbout.

Reading a thread 10409? keymuu had similar problems. Don't think PBPUSB18.MAC is required? As an idea I commented out the line LIBRARY PBPPL18L in the PBP/18f4550.bal file. This gave the following errors:

Error:No library statement or library parameter
Error:No library statement or MACRO parameter
Error:Unable to open file PBPMAC.INC

I have done a search for PBPMAC.INC but can't find it.

Any suggestions appreciated-thanks.