Errors In MPLAB 8.02


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    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

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Edit your blink1.bas file to include just this. Save and recompile.
    Hopefully he's not under the mistaken impression that he should be adding/deleting/moving the 18F442.BAS file, or any of the other files in that directory around!

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


    Did you find this post helpful? Yes | No

    Default It looks worst!

    Noted. My .bas files looks like this:

    ' 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


    The outfile looks like this:

    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.
    Warning[223] C:\PBP\P18F442.INC 18 : Redefining processor.
    Warning[221] C:\PBP\P18F442.INC 18 : Invalid message number (65417)
    Warning[207] C:\PBP\18F442.INC 21 : Found label after column 1. (_CONFIG1H)
    Warning[230] C:\PBP\18F442.INC 28 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Error[113] C:\PBP\18F442.INC 28 : Symbol not previously defined (_OSCS_OFF_1H)
    Error[113] C:\PBP\18F442.INC 28 : Symbol not previously defined (_XT_OSC_1H)
    Warning[230] C:\PBP\18F442.INC 29 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Error[113] C:\PBP\18F442.INC 29 : Symbol not previously defined (_WDT_ON_2H)
    Error[113] C:\PBP\18F442.INC 29 : Symbol not previously defined (_WDTPS_128_2H)
    Warning[230] C:\PBP\18F442.INC 30 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
    Error[113] C:\PBP\18F442.INC 30 : Symbol not previously defined (_LVP_OFF_4L)
    Error[113] C:\PBP\FILES\BLINK.ASM 54 : Symbol not previously defined (PORTB)
    Error[113] C:\PBP\FILES\BLINK.ASM 56 : Symbol not previously defined (PORTC)
    Error[113] C:\PBP\FILES\BLINK.ASM 58 : Symbol not previously defined (TRISB)
    Error[113] C:\PBP\FILES\BLINK.ASM 60 : Symbol not previously defined (TRISC)
    Error[113] C:\PBP\PBPPIC18.LIB 6219 : Symbol not previously defined (C)
    Error[113] C:\PBP\PBPPIC18.LIB 6219 : Symbol not previously defined (STATUS)
    Error[113] C:\PBP\PBPPIC18.LIB 6221 : Symbol not previously defined (C)
    Error[113] C:\PBP\PBPPIC18.LIB 6221 : Symbol not previously defined (STATUS)
    Error[113] C:\PBP\PBPPIC18.LIB 6277 : Symbol not previously defined (C)
    Error[113] C:\PBP\PBPPIC18.LIB 6277 : Symbol not previously defined (STATUS)
    Error[113] C:\PBP\PBPPIC18.LIB 6280 : Symbol not previously defined (C)
    Error[113] C:\PBP\PBPPIC18.LIB 6280 : Symbol not previously defined (STATUS)
    Loaded C:\pbp\Files\blink.COD.
    BUILD SUCCEEDED: Thu May 29 15:04:55 2008

    Best Regards,

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Seems weird... few post above your files showed a V2.40 file but with a 2.45 compiler. Did you tried to delete the whole PBP folder then re-install it?

    It also seems your MPLAB installation is not that right. Make sure you have followed the info on previous Bruce's link.

    You don't have to add/include any extra file in your project apart the .BAS, PBP will do it at compile time. Only one file have to be listed in the Project view window.

    It also seems you haven't selected the right PIC when bulding your Project, hence the Processor ReDefinition.
    Last edited by mister_e; - 29th May 2008 at 21:30.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by HOTLNC View Post
    Noted. My .bas files looks like this:
    Which .bas file is this? 'cause somehow I get the feeling like your messing with the wrong .bas file.

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


    Did you find this post helpful? Yes | No

    Question

    Hi,

    just verify ( mouse over is enough ) in the MPLAB menu : Project\remove file

    that there is ONLY 1 file : Blink.bas ... with only Bruce's lines ...

    BTW could you give us what files are in the VIEW\project\ source files window ???

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Here's an MPLAB v8.02 project with everything setup. It blinks an LED on RB0, has the watch window, logic analyzer, etc.

    Make a sub-directory in C:\PBP\MPSIM. Unzip it into the MPSIM sub-directory. Start MPLAB, open the project and give it a shot.

    Note: I would start with a clean install of PBP if you have altered any of the default PBP device includes, .bas, or other system files. You will also want to download the MPLAB/PBP registration files from the link I posted previously. Run the registration .bat file, then start MPLAB.

    All you need to run PBP in MPLAB/MPSIM is the .bas file YOU create. You don't need to cut & paste anything from PBP system files into your program code and you don't need to copy any of the MPLAB device include files into your PBP directory. The MPLAB project window should show only your .bas file. No other files are needed.

    If the P18F442.INC include file can't be found at compile time, then check that you have set the path to MPLAB as noted in the link above showing how to setup PBP with MPLAB.
    Attached Files Attached Files
    Regards,

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

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


    Did you find this post helpful? Yes | No

    Default

    OK, I'll give it a shot.

    This is above and beyond, guys. Thanks!

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