PBP and PBPL


Closed Thread
Results 1 to 40 of 46

Thread: PBP and PBPL

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    You can't put these lines in your program.
    Code:
    BANKA   $0000, $005F
    BANK0   $0060, $00FF
    BANK1   $0100, $01FF
    BANK2   $0200, $02FF
    BANK3   $0300, $03FF
    BANK4   $0400, $04FF
    BANK5   $0500, $05FF
    BANK6   $0600, $06FF
    BANK7   $0700, $07FF
    They are in that .bal file Dave was talking about.

    And you need the .bal in the USB18 folder, not the one in the PBP folder.
    <br>
    DT

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    You can't put these lines in your program.
    Code:
    BANKA   $0000, $005F
    BANK0   $0060, $00FF
    BANK1   $0100, $01FF
    BANK2   $0200, $02FF
    BANK3   $0300, $03FF
    BANK4   $0400, $04FF
    BANK5   $0500, $05FF
    BANK6   $0600, $06FF
    BANK7   $0700, $07FF
    They are in that .bal file Dave was talking about.

    And you need the .bal in the USB18 folder, not the one in the PBP folder.
    <br>
    Thanks Darrel!

    I'm confused, I have the same file in both places and when comparing them, they are equal. I do not know how there could be a difference between a file that is in two places, they should be equal, shouldn't they?
    If they aren't equal, which one is more valid, or 100% valid?

    Maybe I have overwritten one? Could this be possible?????

    The problem here is not yet solved, but thank you all for your help so far.

    I will take a brake and will be back again after 8 days, in the meanwhile I shall .... don't be envious ... perhaps I tell you afterwords what I did during those 8 days...

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    It's very likely that you've overwritten one.
    Here's what they should look like...
    <table border=1><tr><td>PBP folder
    Code:
    '****************************************************************
    '*  18F4550.BAL                                                 *
    '*                                                              *
    '*  By        : Leonard Zerman, Jeff Schmoyer                   *
    '*  Notice    : Copyright (c) 2007 microEngineering Labs, Inc.  *
    '*              All Rights Reserved                             *
    '*  Date      : 06/29/07                                        *
    '*  Version   : 2.50                                            *
    '*  Notes     : Long                                            *
    '****************************************************************
    
    BANKA   $0000, $005F
    BANK0   $0060, $00FF
    BANK1   $0100, $01FF
    BANK2   $0200, $02FF
    BANK3   $0300, $03FF
    BANK4   $0400, $04FF
    BANK5   $0500, $05FF
    BANK6   $0600, $06FF
    BANK7   $0700, $07FF
    'EEPROM  $F00000, $F000FF
    LIBRARY "PBPPI18L"
    'LIBRARY "PBPUS18L"
    
            include "PIC18EXT.BAS"
    
    PORTL   VAR     PORTB
    PORTH   VAR     PORTC
    TRISL   VAR     TRISB
    TRISH   VAR     TRISC
    
            include "PBPPI18L.RAM"
    
    '*-----------------------* EOF 18F4550.BAL *--------------------*
    </td><td>USB18 folder
    Code:
    '****************************************************************
    '*  18F4550.BAL                                                 *
    '*                                                              *
    '*  By        : Leonard Zerman, Jeff Schmoyer                   *
    '*  Notice    : Copyright (c) 2007 microEngineering Labs, Inc.  *
    '*              All Rights Reserved                             *
    '*  Date      : 05/09/07                                        *
    '*  Version   : 2.50                                            *
    '*  Notes     :                                                 *
    '****************************************************************
    
    BANKA   $0000, $005F
    BANK0   $0060, $00FF
    BANK1   $0100, $01FF
    BANK2   $0200, $02FF
    BANK3   $0300, $03FF
    'BANK4   $0400, $04FF
    'BANK5   $0500, $05FF
    'BANK6   $0600, $06FF
    'BANK7   $0700, $07FF
    'EEPROM  $F00000, $F000FF
    'LIBRARY "PBPPI18L"
    LIBRARY "PBPUS18L"
    
            include "PIC18EXT.BAS"
    
    PORTL   VAR     PORTB
    PORTH   VAR     PORTC
    TRISL   VAR     TRISB
    TRISH   VAR     TRISC
    
            include "PBPPI18L.RAM"
    
    '*-----------------------* EOF 18F4550.BAL *--------------------*
    </td></tr></table>
    If they aren't equal, which one is more valid, or 100% valid?
    They are both 100% valid.
    One is used for USB, the other is used for NON USB programs.
    <br>
    DT

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    It's very likely that you've overwritten one.
    Here's what they should look like...

    They are both 100% valid.
    One is used for USB, the other is used for NON USB programs.
    <br>
    Thank you Darrel, you have sharp eyes and clearly a brain behind those eyes!

    I'm back from a nice one week refreshing holiday, with new energy...

    After correcting my own mistake (overwriting 18F4550.bal) there was “real” progress , reduced the amount of errors [126] and warnings [220] to only four, but brought back “an old problem”...
    “ERROR: Macro USBINIT? Not found in macro file”
    and those three other errors also (usbservice,usbin,usbout).

    Searched around this thread “ERROR: Macro USBINIT? Not found in macro file” and read every mail that was somehow related to this situation and the only difference I could find was that PBPUSB18.MAC should be in C:\PBP\USB18 directory. I checked that and did not find PBPUSB18.MAC file in C:\PBP\USB18 directory. Why did my USB work earlier without that file in USB18 directory?

    So to try something I dropped a copy of it there, as advised somewhere around here, but unfortunately it did not help this kind of an old problem... I had USB working earlier with PBP but what now when trying to get PBPL working?

    Any suggestions how to proceed from here?

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    .... don't be envious ... perhaps I tell you afterwords what I did during those 8 days...
    WELLL.... make me turn green <hr />

    The compiler doesn't actually look in the USB18 folder.

    Any files in that folder that are needed for your program should be COPIED into the same folder as your project.

    And your project should not be in the PBP folder. It should be in it's own separate folder somewhere else.

    The macro not found error usually means that it's not finding LIBRARY "PBPUS18L" in the .bal file. If you haven't COPIED the .bal file from the USB18 folder into your project folder, then it finds the one in the PBP folder, which has the wrong library line commented.
    <br>
    DT

  6. #6


    Did you find this post helpful? Yes | No

    Thumbs up

    Quote Originally Posted by Darrel Taylor View Post
    WELLL.... make me turn green <hr />
    Green is one of the major colors of nature...
    The compiler doesn't actually look in the USB18 folder.
    Ok
    Any files in that folder that are needed for your program should be COPIED into the same folder as your project.
    I have learned that somewhere earlier... but ...
    And your project should not be in the PBP folder. It should be in it's own separate folder somewhere else.
    This is kind of new to me! I have known that that all (including your project) should be in the same in same folder, meaning all should be in C:\PBP. I was earlier wondering why MicroCode Studio has as default folder C:\Program Files\Mecanique\MCS ? Maybe this explains it then... and I should have copied things there instead of the contrary action... copying all to C:\PBP
    The macro not found error usually means that it's not finding LIBRARY "PBPUS18L" in the .bal file. If you haven't COPIED the .bal file from the USB18 folder into your project folder, then it finds the one in the PBP folder, which has the wrong library line commented.
    <br>
    In the C:\PBP\USB18 folder I can only find PBPUS18L.LIB no other files with the name "PBPUS18L", and it looks like this:
    Code:
    ;****************************************************************
    ;*  PBPUS18L.LIB                                                *
    ;*                                                              *
    ;*  Notice    : Copyright (c) 2007 microEngineering Labs, Inc.  *
    ;*              All Rights Reserved                             *
    ;*  Date      : 05/09/07                                        *
    ;*  Version   : 2.50                                            *
    ;*  Notes     : PIC18 USB library w/ longs                      *
    ;****************************************************************
    
            include "\PBP\PBPPI18L.LIB"
            goto MAINPROG
    	include "USB18.INC"
    	include	"USBDESC.ASM"	; Application specific descriptors
    	include "USB18MEM.ASM"
    	include	"USB18.ASM"
    
    MAINPROG
    Is that looking normal?

    The same file is also in C:\PBP folder as well as
    PBPUS18.MAC.
    pbppic18.lib
    pbppic18.mac
    PBPPIC18.RAM
    PBPUS18L.MAC
    USB18.asm
    USB18Mem.asm
    usb18.inc
    18F4550.bal
    18F4550.BAS

    The 18F4550.BAL looks like this:
    Code:
    '****************************************************************
    '*  18F4550.BAL                                                 *
    '*                                                              *
    '*  By        : Leonard Zerman, Jeff Schmoyer                   *
    '*  Notice    : Copyright (c) 2007 microEngineering Labs, Inc.  *
    '*              All Rights Reserved                             *
    '*  Date      : 05/09/07                                        *
    '*  Version   : 2.50                                            *
    '*  Notes     :                                                 *
    '****************************************************************
    
    BANKA   $0000, $005F
    BANK0   $0060, $00FF
    BANK1   $0100, $01FF
    BANK2   $0200, $02FF
    BANK3   $0300, $03FF
    'BANK4   $0400, $04FF
    'BANK5   $0500, $05FF
    'BANK6   $0600, $06FF
    'BANK7   $0700, $07FF
    'EEPROM  $F00000, $F000FF
    'LIBRARY "PBPPI18L"
    LIBRARY "PBPUS18L"
    
            include "PIC18EXT.BAS"
    
    PORTL   VAR     PORTB
    PORTH   VAR     PORTC
    TRISL   VAR     TRISB
    TRISH   VAR     TRISC
    
            include "PBPPI18L.RAM"
    
    '*-----------------------* EOF 18F4550.BAL *--------------------*
    Is that looking ok?

    I created a new folder C:\PBP\Proj where I copied all those files also with my project, so now something still are missing from folder "Proj" when getting those same four USBmacro errors. I can't figure out what is still missing.
    What can be missing?

    Can you see what is missing?

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I can not help much with the USB problem, but I would store my projects in a directory some place other than a sub directory of PBP. C:\projects woud be good. Most of my projects are on a flash drive or a SD card to make it easy to move from machine to machine.

    When you have projects in the PBP ditectory and it comes time to upgrade them you will have to go find all of your "stuff" before it is deleted or over written during the new install.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. PbP usable releases ???
    By Acetronics2 in forum General
    Replies: 2
    Last Post: - 15th July 2009, 13:12
  2. PBPL Math...new math takes more cycles...Always?
    By skimask in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2008, 10:22
  3. IF..AND/OR..THEN and PBPL
    By duncan303 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th January 2008, 16:45
  4. PBP 2.50 pbpw vs pbpl .exe
    By Archangel in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 21st September 2007, 15:28
  5. MCS+ with PBP 2.50
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st September 2007, 05:52

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