DT-ints and elapsed timer compilation errors.


+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305

    Default DT-ints and elapsed timer compilation errors.

    Hi Guys,

    I'm having some compiler issues when trying to create a program around DT's interrupts and elapsed timer. In the below code, if I comment out
    Code:
    @ INT_ENABLE TMR1_INT ; Enable Timer 1 Interrupts
    then the program will compile.


    Code:
    INCLUDE "DT_INTS-18.bas"
    INCLUDE "ReEnterPBP-18.bas"
    INCLUDE "Elapsed_INT-18.bas" ; Elapsed Timer Routines
    
    ASM
    INT_LIST macro ; IntSource, Label, Type, ResetFlag?
    INT_Handler TMR1_INT, _ClockCount, PBP, yes
    endm
    INT_CREATE ; Creates the interrupt processor
    ENDASM
    
    
    @ INT_ENABLE TMR1_INT ; Enable Timer 1 Interrupts
    
    'GOSUB ResetTime ' Reset Time to 0d-00:00:00.00
    'GOSUB StartTimer ' Start the Elapsed Timer


    This is the error dump MPLAB produces if I do not comment out that line.


    ERROR: Unable to execute mpasmwin.Warning[205] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 2062 : Found directive in column 1. (endm)
    Warning[206] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 2063 : Found call to macro in column 1. (INT_CREATE)
    Warning[206] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 2061 : Found call to macro in column 1. (INT_Handler)
    Error[116] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 616 : Address label duplicated or different in second pass (Z0001C)
    Error[116] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 679 : Address label duplicated or different in second pass (Z0001D)
    Error[116] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 732 : Address label duplicated or different in second pass (Z0001E)
    Error[116] C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 763 : Address label duplicated or different in second pass (Z0001F)


    Any idea what I may be missing?

    18F1320, int osc at 8MHZ, PBP 2.6A, MPLAB IDE 8.20a

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    1,914

    Default Re: DT-ints and elapsed timer compilation errors.

    Any idea what I may be missing?

    some spaces this

    Code:
    ASM
    INT_LIST macro ; IntSource, Label, Type, ResetFlag?
    INT_Handler TMR1_INT, _ClockCount, PBP, yes
    endm
    INT_CREATE ; Creates the interrupt processor
    ENDASM
    as the error msg says " Found directive in column 1. (endm)"
    should be
    Code:
    ASM
    INT_LIST macro ; IntSource, Label, Type, ResetFlag?
           INT_Handler TMR1_INT, _ClockCount, PBP, yes
           endm
           INT_CREATE ; Creates the interrupt processor
    ENDASM
    This is more entertaining than Free to Air TV

  3. #3
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305

    Default Re: DT-ints and elapsed timer compilation errors.

    Oh wow, thanks! I didn't realize it was so tabulation sensitive. This removed a few errors but still a couple left to clear. I'm thinking of commenting out that area of the include as it pertains to functions this pic doesn't have.

    Code:
    ERROR: Unable to execute mpasmwin.Error[116]   C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 616 : Address label duplicated or different in second pass (Z0001C)
    Error[116]   C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 679 : Address label duplicated or different in second pass (Z0001D)
    Error[116]   C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 732 : Address label duplicated or different in second pass (Z0001E)
    Error[116]   C:\USERS\LAPTOP1\DOCUMENTS\MCS\94700-1 DUAL UV.ASM 763 : Address label duplicated or different in second pass (Z0001F)

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    1,914

    Default Re: DT-ints and elapsed timer compilation errors.

    I'm thinking of commenting out that area of the include as it pertains to functions this pic doesn't have.
    won't help at all

    Name:  Screenshot 2021-09-17 135436.jpg
Views: 47
Size:  94.8 KB


    the assembler gets a bit picky about old stuff like dt ints these days if coff generation is enabled.
    coff is now pretty much useless for pbp since it is no longer supported in mplabx for source level debugging
    Last edited by richard; - 17th September 2021 at 05:00.
    This is more entertaining than Free to Air TV

  5. #5
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    389

    Default Re: DT-ints and elapsed timer compilation errors.

    Richard, I'm impressed! You are noting things I never knew! I don't use ancient PICs like the 18F1320, but never would have guessed your answer. Nice work, and thanks for sharing your wisdom.

  6. #6
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305

    Default Re: DT-ints and elapsed timer compilation errors.

    I'm using old stuff I don't see an option to enable or disable generation of COFF files in this super old version of MCS+. 3.0.0.1 I think, MPLAB is 8.20a, mpasm is 5.30, and pbp is 2.60a.

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    1,914

    Default Re: DT-ints and elapsed timer compilation errors.

    Name:  Screenshot 2021-09-17 143507.jpg
Views: 46
Size:  79.8 KB

    if its not there then u need an upgrade
    This is more entertaining than Free to Air TV

  8. #8
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    389

    Default Re: DT-ints and elapsed timer compilation errors.

    Jmgelba, your join date is 2004, which means you aren't green (new). Like anything, Microchip has evolved with newer PIC offerings sporting more power, more Peripherals, and at cheaper prices. MCP abandoned MPLAB in favor of MPLABX. PBP3 has evolved. Even the dated dtInts has evolved, thanks to contributions from the community. The software versions you are using are extremely outdated. To upgrade to the current PBP3.1 software will cost you $50 US. However, upgrading to the last version of PBP3.0 is free. PBP3.x works with MPLABX v5.35 or older. Is there a reason you have not taken advantage of these free upgrades?? Many folks in the past have been pleasantly surprised by how many of their challenges were magically solved just by updating their software. Give it a try and let us know if it helps at all.

  9. #9
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305

    Default Re: DT-ints and elapsed timer compilation errors.

    There has to be something else going on too. I'm using software that was used when these interrupts where first written. I did just upgrade to the free 4.0.0.0 version of MCS+ so I'll try that. No option to not generate a COFF though.

  10. #10
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305

    Default Re: DT-ints and elapsed timer compilation errors.

    Quote Originally Posted by mpgmike View Post
    Jmgelba, your join date is 2004, which means you aren't green (new). Like anything, Microchip has evolved with newer PIC offerings sporting more power, more Peripherals, and at cheaper prices. MCP abandoned MPLAB in favor of MPLABX. PBP3 has evolved. Even the dated dtInts has evolved, thanks to contributions from the community. The software versions you are using are extremely outdated. To upgrade to the current PBP3.1 software will cost you $50 US. However, upgrading to the last version of PBP3.0 is free. PBP3.x works with MPLABX v5.35 or older. Is there a reason you have not taken advantage of these free upgrades?? Many folks in the past have been pleasantly surprised by how many of their challenges were magically solved just by updating their software. Give it a try and let us know if it helps at all.
    I haven't touched a pic in years. I really don't do much with firmware at all. I'm completely out of date, have no skills, and forgot all the stuff I learnt a decade ago. All I want to do is run a timer for 60, 90, or 120 seconds while monitoring a pin for a high to low transition that stops the timer and jumps to a different location in the program. Should be super simple but I'm dumb and crazy busy with other stuff.

    I'll take a look around for that 3.0 free upgrade.

  11. #11
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    389

    Default Re: DT-ints and elapsed timer compilation errors.

    In addition to the forums, ME Labs offers this:

    https://melabs.com/resources/index.htm?source=footer

  12. #12
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305

    Default Re: DT-ints and elapsed timer compilation errors.

    So I got a copy of PBP3, MCS4, MPLABX IDE 5.50, and yeah, same result. Plus a whole bunch of other issues such as programmer issues (fixed) makefile issues (not fixed) MCS not connecting to MPLAB correctly (not fixed.)
    I have upended a setup that's created several programs and programmed hundreds of chips, only to be worse off than before lol.

Similar Threads

  1. Compilation errors
    By aratti in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th September 2010, 15:12
  2. Compilation errors
    By mikebike in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 6th September 2010, 09:29
  3. Elapsed_Demo.bas compilation errors
    By Dick Ivers in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 1st March 2010, 23:44
  4. Compilation errors - strange
    By tetanus4 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th October 2009, 19:04
  5. Replies: 3
    Last Post: - 1st July 2008, 21:07

Posting Permissions

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