PDA

View Full Version : ICD2 18F2550 MPASM7.50 - Aargh!



Giulio
- 28th November 2006, 13:41
Greetings...

I finally bit the bullet and upgraded from a Picstart Plus to an ICD2. Had to upgrade MPASM as well, because I want to program a 18F2550.

It's all gone horribly wrong... What used to be a seamless 'edit, compile, assemble, program' cycle, has turned into a nightmare.

I'm using Microcode Studio Plus as an editor, with PBP. The editor used to call the assembler and then initiate MPLAB. All I had to do was click on 'program' and all was well.

Now, I have errors all over the place. I've searched these forums and followed various pieces of advice, edited '.inc' files, etc., and in the end I've resorted to cleaning down the PC and starting from scratch...

Latest situation throws up the following:

;-----------------

Executing: "C:\PBP\PBPW.EXE" -ampasmwin -oq -z -p18F2550 "Test1.pbp"
PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
All Rights Reserved.
Warning[230] C:\PBP\18F2550.INC 20 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] C:\PBP\18F2550.INC 21 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] C:\PBP\18F2550.INC 22 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] C:\PBP\18F2550.INC 23 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] C:\PBP\18F2550.INC 24 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Error[113] C:\PBP\18F2550.INC 24 : Symbol not previously defined (_ICPRT_OFF_4L)
Error[105] C:\PBP\PBPUSB18.LIB 13 : Cannot open file (Include File "USB18.INC" not found)
Error[105] C:\PBP\PBPUSB18.LIB 14 : Cannot open file (Include File "USBDESC.ASM" not found)
Error[105] C:\PBP\PBPUSB18.LIB 15 : Cannot open file (Include File "USB18MEM.ASM" not found)
Error[105] C:\PBP\PBPUSB18.LIB 16 : Cannot open file (Include File "USB18.ASM" not found)
Loaded C:\Program Files\Mecanique\MCSP\Test1.COD.
BUILD SUCCEEDED: Tue Nov 28 13:30:20 2006

;-----------------


I've followed the advice about warning[230] but no matter what I do, I cannot fix these other errors...

PBP lives in C:\PBP and Mpasm stuff is installed into the default folder. My environment variables are all good. Help!


Giulio

Bruce
- 28th November 2006, 15:58
If your PBP directory look for 18F2550.INC. In this file you'll see something like
LIST p = 18F2550, r = dec, w = -311, w = -230, f = inhx32
INCLUDE "P18F2550.INC" ; MPASM Header

If you don't have the w = -230, then just edit the file and save it. That
should take care of the 230 warnings.

_ICPRT_OFF_4L is not a valid fuse option for the 18F2550. If this is in your
18F2550.INC file just delete it. For a list of valid config fuse options, look
in the P18F2550.INC file in your MPLAB installation directory, or look in the
Special Features section of the data sheet.

This is only available on 18F4455/4550 devices in 44-pin TQFP packages.

For the "Cannot open file" errors, place these files all in the same directory
where the .bas file you're compiling is located.

I create a USB project directory specific for each different USB project, then
place all support files in this directory.

HTH

Giulio
- 28th November 2006, 17:01
Sir, you are a star!

It works, and I thank you!

Giulio