MPLAB/PBP Simulator


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232

    Default MPLAB/PBP Simulator

    16F886, PBP2.60, MPLAB/PBP, Simulator

    Greetings,

    I am working on my first attempt at Modbus CRC16. I’ve decided to write the routine in ASM following a Modbus document on the calculation. SO it doesn’t look too bad for a starting point and now I would like to use MPLAB Simulator to find my faults.
    The Simulator starts OK and I’m using the “Step Into” button to single step the program. Everything looks correct until I leave the PBP portion of the program which declares the variables and equates values then I hit the ASM routine and all progress stops. No matter what I do the simulator jumps completely over the ASM section as if I had used the “Step Over” button. Break points do not work as expected either.
    Is this because I’m using MPLAB to compile PBP? Once upon a time I was much more efficient with the simulator but I stopped using ASM as primary code fifteen years ago. Is the failure my misunderstanding of the mix of PBP and ASM or is this a dead end when using MPLAB and PBP?

    Anyone know what the problem is?

    Wayne
    Last edited by MOUNTAIN747; - 26th March 2014 at 18:23. Reason: F886 not F866

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


    Did you find this post helpful? Yes | No

    Default Re: MPLAB/PBP Simulator

    Go to the build options and uncheck Source-Level Debug.

    You should then see the -k- command line option in the global settings edit box.

    -k# is for debugging at the PBP level.
    -k- debugs at the assembly level.

    -k invokes the Linker, don't ever do that.
    DT

  3. #3
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232


    Did you find this post helpful? Yes | No

    Default Re: MPLAB/PBP Simulator

    thanks Darrel, that did the trick!

    Wayne

Similar Threads

  1. pbp 3 and MPLAB X
    By Marcick in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 1st January 2017, 15:12
  2. PBP 2.6 and MPLAB 8.4
    By ChrisKiwi in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th December 2011, 07:02
  3. Looking at pic basic pro symbol values in mplab 8.15a simulator
    By ukemigrant in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 16th May 2009, 13:18
  4. MPLAB and PBP ...
    By Acetronics2 in forum Off Topic
    Replies: 4
    Last Post: - 28th August 2008, 20:51
  5. PBP in MPLAB
    By zagisrule! in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th December 2005, 01:58

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