PDA

View Full Version : ICD2 Problem...I think. New guy question.



iphillipsca
- 2nd January 2005, 01:04
I recently started using PBP with an ICD2/Picdem2 system. When I try to compile(in the MPLAB 7 enviroment) it say it can't find the file for the p18f252.
My question is this, if you use the "Include ICDDEFS4.BAS" for the ICD2 and 18f is the "PBP -p18f252" line in the code even needed?
I have been using the Stamp for a while and want to now get the speed and variability of the PIC. Thanks
Ian

mister_e
- 2nd January 2005, 10:19
Looks like a PATH search problem here... be sure that your PATH definition in Environement Variable (MY COMPUTER) is good. MUST include PicBasic directory and MPLAB (MPASM) directory

iphillipsca
- 2nd January 2005, 16:01
Per the melab instructions online, I set up the Envirorment Variable- "%SystemRoot%\System32\;C:\PBP;C:\MPASM". Now, being somewhat new at messing with the computer, does there need to be a second Path just for PBP?
Also, for clarification, the command line- "PBP -p18f252" does go right into the code right? I have been reading the manual and I don't mean to be thick, just trying to get it right.
Thanks

mister_e
- 2nd January 2005, 19:22
Be sure that MPASMWIN files is really at c:\MPASM

in my case i find


1. MPASMWIN at C:\Program Files\Microchip\MPASM Suite.
2. PBP at c:\PBP
3. my path is ....... C:\PBP;C:\Program Files\Microchip\MPASM Suite


also do a search for the p18f252.inc file... that will give you the right path.

Actually, under MPLAB 7.00, you don't need any kind of "PBP -p18f252" line. Using the project wizard will give you the chance to choose your pic and, after, save your project/workspace. That will keep everything in the project file, including the PIC choice.

Be sure you have install and downloaded the Language toolsuite files path at :http://microengineeringlabs.com/support/mplab.htm

iphillipsca
- 2nd January 2005, 19:43
Thanks! Makes sense.
The path is C:\MPASMWIN and the inc file is there. I did use the Project Wizard to set up the project for the first time so that explains why the programming would still work. Just without the "PBP..." line.
Thanks for your help.