ICD2 18F2550 MPASM7.50 - Aargh!


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2005
    Posts
    27

    Default ICD2 18F2550 MPASM7.50 - Aargh!

    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

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    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
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Aug 2005
    Posts
    27


    Did you find this post helpful? Yes | No

    Default

    Sir, you are a star!

    It works, and I thank you!

    Giulio

Similar Threads

  1. Pbp + Mplab + Icd2
    By eduardojx in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 17th July 2009, 03:54
  2. Pickit2 / ICD2? advice please?
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th May 2008, 18:27
  3. Help about a ICD2
    By serandre in forum Schematics
    Replies: 0
    Last Post: - 27th May 2006, 12:08
  4. Aargh! picstart plus and 18f2550
    By Giulio in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th September 2005, 19:04
  5. Using ICD2 with Microcode Studio Plus
    By cpayne in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th August 2005, 13:15

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts