Errors In MPLAB 8.02


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Fort Worth Texas USA
    Posts
    8

    Question Errors In MPLAB 8.02

    I am an experienced PIC and MPLAB user (Assembly language only). I'm trying get started in PicBasicPro and am hitting a brick wall. I'm doing a test using the BLINK.asm program. When i BUILD the file, I get an "I/O error,: file not open for input" with OK button. If you press OK, I receive the following text in the OUTPUT screen:

    Executing: "C:\pbp\PBPW.EXE" -ampasmwin -oq -z -p18F442 "blink.bas"
    PicBasic Pro Compiler 2.45a, (c) 1998, 2004 microEngineering Labs, Inc.
    All Rights Reserved.
    Error processing COD file C:\pbp\Files\blink.COD
    Warning[223] C:\PBP\FILES\P18F442.INC 18 : Redefining processor.
    Warning[223] C:\PBP\FILES\P18F442.INC 37 : Redefining processor.
    Warning[223] C:\PBP\FILES\P18F442.INC 56 : Redefining processor.
    Warning[223] C:\PBP\FILES\P18F442.INC 75 : Redefining processor.
    Error[138] C:\PBP\FILES\P18F442.INC 76 : Include files nested too deep
    Error[113] C:\PBP\FILES\P18F442.INC 77 : Symbol not previously defined (_CONFIG1H)
    Warning[230] C:\PBP\FILES\P18F442.INC 77 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Error[126] C:\PBP\FILES\P18F442.INC 77 : Argument out of range (not a valid config register address)
    Error[113] C:\PBP\FILES\P18F442.INC 78 : Symbol not previously defined (_CONFIG2H)
    Warning[230] C:\PBP\FILES\P18F442.INC 78 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Error[126] C:\PBP\FILES\P18F442.INC 78 : Argument out of range (not a valid config register address)
    Error[113] C:\PBP\FILES\P18F442.INC 79 : Symbol not previously defined (_CONFIG4L)
    Warning[230] C:\PBP\FILES\P18F442.INC 79 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Halting build on first failure as requested.
    BUILD FAILED: Thu May 29 08:45:38 2008


    I've installed all patches and have the PicBasic Pro Tool Set selected.

    Any idea what I am doing wrong?

    Thanks and Best Regards,

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    http://www.picbasic.co.uk/forum/show...ng+config+bits

    And an upgrade to 2.50 might not be a bad idea either...

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi,

    Nor an upgrade to MPLAB 8.10 ...

    BTW ... I'm curious to see the .bas listing ... just an idea !

    Alain
    Last edited by Acetronics2; - 29th May 2008 at 16:14.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Have you setup MPLAB for PBP like shown here? http://www.microengineeringlabs.com/support/mplab.htm
    Regards,

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

  5. #5
    Join Date
    May 2008
    Location
    Fort Worth Texas USA
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Status So Far.

    I've fixed the Configuration bits. Thanks for that!

    I'm going to update to MPLAB 8.1. In the meantime, Here is the .bas file:

    '************************************************* ***************
    '* 18F442.BAS *
    '* *
    '* By : Leonard Zerman, Jeff Schmoes *
    '* Notice : Copyright (c) 2001 micro Engineering Labs, Inc. *
    '* All Rights Reserved *
    '* Date : 08/28/01 *
    '* Version : 2.40 *
    '* Notes : *
    '************************************************* ***************

    BANKA $0000, $007F
    BANK0 $0080, $00FF
    BANK1 $0100, $01FF
    BANK2 $0200, $02FF
    'EEPROM $F00000, $F000FF
    LIBRARY "PBPPIC18"

    include "PIC18EXT.BAS"

    PORTL VAR PORTB
    PORTH VAR PORTC
    TRISL VAR TRISB
    TRISH VAR TRISC

    include "PBPPIC18.RAM"

    '*-----------------------* EOF 18F442.BAS *---------------------*
    ' Example program from manual to blink an LED connected to PORTB.0 about once a second

    loop: High 0 ' Turn on LED connected to PORTB.0
    Pause 500 ' Delay for .5 seconds

    Low 0 ' Turn off LED connected to PORTB.0
    Pause 500 ' Delay for .5 seconds

    Goto loop ' Go back to loop and blink LED forever


    End

    MPLAB gives the following errors now:

    Executing: "C:\Pb\PBPW.EXE" -ampasmwin -oq -z -p18F442 "blink1.BAS"
    PicBasic Pro Compiler 2.45a, (c) 1998, 2004 microEngineering Labs, Inc.
    All Rights Reserved.

    C:\PBP\PIC18EXT.BAS ERROR Line 12: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 13: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 14: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 15: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 16: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 17: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 18: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 19: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 20: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 21: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 22: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 23: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 24: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 25: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 26: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 27: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 28: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 29: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 30: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 31: Redefinition of VAR.
    C:\PBP\PIC18EXT.BAS ERROR Line 32: Redefinition of VAR.
    FATAL ERROR: Too many errors. (21)
    Halting build on first failure as requested.
    BUILD FAILED: Thu May 29 13:18:17 2008

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


    Did you find this post helpful? Yes | No

    Default

    Edit your blink1.bas file to include just this. Save and recompile.

    Code:
    loop:   High 0          ' Turn on LED connected to PORTB.0
            Pause 500       ' Delay for .5 seconds
    
            Low 0           ' Turn off LED connected to PORTB.0
            Pause 500       ' Delay for .5 seconds
    
            Goto loop       ' Go back to loop and blink LED forever
    
    
                    End
    Last edited by Bruce; - 29th May 2008 at 20:08.
    Regards,

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

Similar Threads

  1. help to program an PIC with MPLAB
    By mikmac in forum mel PIC BASIC
    Replies: 4
    Last Post: - 20th April 2009, 16:01
  2. Upgraded to MPLAB IDE 8.14 and now I'm stuck
    By BlueHairBob in forum General
    Replies: 2
    Last Post: - 20th August 2008, 01:15
  3. pbp --> mplab broken again
    By kenif in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 11th December 2006, 18:57
  4. Microcode Studio MPLAB support
    By jbpaul in forum General
    Replies: 1
    Last Post: - 27th November 2006, 06:55
  5. Microcode Studio Plus compile/assmebly errors
    By mikehagans in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th February 2006, 21:31

Members who have read this thread : 0

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