Error Compiling with PbP 3


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92

    Default Error Compiling with PbP 3

    Hello Guys !

    Finally, I got my PbP 3 License last week.

    I have just installed it in my notebook and tryed to compile an old source code designed for 16F877A.

    My source code is using the Darrell's interrupts, lcdbar and some other resources.

    As I define a new @ __CONFIG on my source code, I commented a line on the .INC file on my old 2.46 version to avoid the error : overwriting previous address contents (2007)

    Now, I´m trying to compile the same source code on my PbP 3 and MPASMX.

    The error showed up again, of course, because I did not edit the new inc file.

    Following the advice Henrik Olsson gave on the post bellow :


    http://support.melabs.com/archive/in...p/t-1065.html?

    My original code :

    Code:
    @ ERRORLEVEL -306   ; Retira o erro de crossing page boundary
    @ __CONFIG  _CP_OFF  & _DEBUG_OFF & _CP_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _PWRTE_ON & _WDT_OFF & _XT_OSC    
    
    
    Include "LCDbar_INC.bas" 
    Include "DT_INTS-14.bas"     ' Base Interrupt System
    Include "ReEnterPBP.bas"     ' Include if using PBP interrupts
    
    define OSC 4
    When I compile, I get the overwriting previous address contents (2007) error, because we have two __CONFIG on ASM.

    So, I put the #CONFIG / ENDCONFIG in the code , like this :

    Code:
    #CONFIG
    @ ERRORLEVEL -306   ; Retira o erro de crossing page boundary
    @ __CONFIG  _CP_OFF  & _DEBUG_OFF & _CP_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _PWRTE_ON & _WDT_OFF & _XT_OSC    
    #ENDCONFIG
    
    Include "LCDbar_INC.bas" 
    Include "DT_INTS-14.bas"     ' Base Interrupt System
    Include "ReEnterPBP.bas"     ' Include if using PBP interrupts
    
    define OSC 4 l
    Now, when I compile, I get the errors :

    [ASM ERRORS] COMPB.ASM (29) : Illegal label (@)
    [ASM ERRORS] COMPB.ASM (30) : Illegal label (@)

    I would not like to edit the INC files anymore.

    So, could someone, please, help me ?

    Is there a specific place where I have to put the #CONFIG... block on the code ?

    Thank you very much

    Sérgio

  2. #2
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: Error Compiling with PbP 3

    Try this link about meConfig.
    Regards,
    TABSoft

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: Error Compiling with PbP 3

    You didn't follow my advice from the other thread....
    When you use the #CONFIG/#ENDCONFIG block you can't also have the @ in there and you can only set the CONFIG bits with it, you can't include the error lever stuff within the block. So, the original
    Code:
    @ ERRORLEVEL -306   ; Retira o erro de crossing page boundary
    @ __CONFIG  _CP_OFF  & _DEBUG_OFF & _CP_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _PWRTE_ON & _WDT_OFF & _XT_OSC
    Becomes
    Code:
    @ ERRORLEVEL -306   ; Retira o erro de crossing page boundary
    #CONFIG
      __CONFIG  _CP_OFF  & _DEBUG_OFF & _CP_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _PWRTE_ON & _WDT_OFF & _XT_OSC 
    #ENDCONFIG
    /Henrik.

  4. #4
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92


    Did you find this post helpful? Yes | No

    Default Re: Error Compiling with PbP 3

    Thank you Henrik and TabSoft !

    I will test it today !

    My best regards.

    Sérgio Pinheiro

  5. #5
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92


    Did you find this post helpful? Yes | No

    Default Re: Error Compiling with PbP 3

    Hy Guys !

    thank you for the tips. It worked !

    My best regards.

    Sérgio

  6. #6
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default Re: Error Compiling with PbP 3

    Hi !
    For me the solution don't work ? Any others sugestions ? Thanks !
    Name:  error.jpg
Views: 1934
Size:  179.6 KB

Similar Threads

  1. Error while compiling
    By BobK in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th April 2013, 17:01
  2. Replies: 2
    Last Post: - 19th June 2012, 21:24
  3. Replies: 1
    Last Post: - 30th March 2012, 04:13
  4. Compiling Error with 18F452
    By michel in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st July 2008, 05:10
  5. error on compiling
    By parker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th June 2005, 14:31

Members who have read this thread : 2

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