Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    No wonder I don't like MPLAB.

    The problem seems to have something to do with the -k# command line option. (new option for pbp2.60)
    If I use the same batch file that MPLAB uses ... PBPMPLAB.BAT
    Then this command gives me the same errors you reported.
    c:\PIC\PBP260\PBPMPLAB.BAT -ampasmwin -k# -p18F452 "Tracteur.bas"
    If I remove the -k# option it compiles fine.

    I haven't found a way to remove it from within MPLAB.
    And I think if you did, you wouldn't be able to debug in MPLAB.

    Added: In the PBP manual it only shows -k- and -k+. -k# doesn't even seem to be a valid option.
    Not that it matters much, because it fails with either -k- or -k+ too.
    Last edited by Darrel Taylor; - 22nd August 2009 at 02:15. Reason: -k+-
    DT

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


    Did you find this post helpful? Yes | No

    Lightbulb Oh ok!

    I see exactly what's happening now.
    This is one for meLabs to solve.

    In an attempt to produce the COFF information for debugging with MPLAB, ... PBP with the -k option places Z????? Labels on every line of code ... including the "ASM" or @ lines.

    If the program has any ASM macros in it (like DT_INTS), you can normally jump in and out of ASM anytime you need to within that macro.

    But with it putting labels at the "ASM" statements, ... when those macros get used (more than once) it duplicates labels that were not in the original program.

    For instance with this macro ...
    Code:
    ASM
    MyMacro  macro
       ; asm statements here
      ENDASM
       ; PBP statements here
      ASM  ; This statement creates a label in the middle of a macro.
      endm
    ENDASM
    
    @ MyMacro  ; The first time it's used is OK
    @ MyMacro  ; the second time or more duplicates that label
    I'll send a report to support at melabs.com
    DT

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


    Did you find this post helpful? Yes | No

    Default

    OMG!

    If it's making a label for every PBP statement.
    Then ANY PBP statements in a macro will cause the same error.

    Apparently, every program I've ever written is now useless.
    Well, (with MPLAB).
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Unhappy

    Quote Originally Posted by Darrel Taylor View Post

    If I remove the -k# option it compiles fine.

    .
    Hi darrel ...

    YES ... but BUILD fails ... no HEX generated, halas.

    Bouhouuuuu ...

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

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    I am still at 2.50c and although I have an itch to upgrade to 2.60 I do no think I'll do it now.

    Darrel, If one uses MCS to edit and complile (with MPASM assembler) is there a problem?

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default

    Am I following this correctly?
    The problem is not with the new PBP it is with the new MPLAB?
    Does it work with the MPLAB that we used with PBP 2.5?
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Wink

    Hi, Dave and Ioannis

    YES ...

    I really think it's URGENT to wait a little !!!

    BUT it seems the problem only Occurs with DT 18 Instant Interrupts ...

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

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


    Did you find this post helpful? Yes | No

    Default

    So other includes with ASM work properly?
    That would be strange...
    Dave
    Always wear safety glasses while programming.

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    Thanks Alain.

    But with MCS does it compile OK?

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    BUT it seems the problem only Occurs with DT 18 Instant Interrupts ...
    NOT TRUE!

    As explained in the previous posts, the problem will happen with ANY program that uses PBP statements inside of macro's, when using MPLAB<hr>

    Ioannis,
    PBP 2.60 is really nice. And it works really well with Microcode Studio.

    MPLAB is the problem. But trying to make PBP work with the new MPLAB, meLabs made a mistake, and now it causes new problems.

    Don't wait, go ahead and get the upgrade, but forget about MPLAB.
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by Darrel Taylor View Post
    NOT TRUE!

    As explained in the previous posts, the problem will happen with ANY program that uses PBP statements inside of macro's, when using MPLAB<hr>

    <br>
    Hi, Darrel

    You should have understood :

    It works with "DT_INTS-14.bas" ... but not with "DT_INTS-18.bas"

    Its a pity to have also lost the PBP label NAMES ...

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

Similar Threads

  1. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 21:43
  2. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 20:02
  3. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48
  4. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 06:32
  5. Replies: 1
    Last Post: - 1st November 2006, 03:11

Members who have read this thread : 6

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

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