using pbp pro with mplab and pickit2


Closed Thread
Results 1 to 2 of 2
  1. #1
    rackflot's Avatar
    rackflot Guest

    Default using pbp pro with mplab and pickit2

    I have hooked up all of the equipment and am able to program and run on the labx1 board. I want to use the pickit2 to debug and single step.

    When i try to do this, it single steps but does not go to the source to tell me what line is being executed. How do i setup it all up? I am using this demo prog with the debug.bas file.

    ' PicBasic Pro program to blink an LED connected to PORTD.0 about once a second

    LED var PORTD.0 ' Alias PORTD.0 to LED

    Include "debugmon.bas"

    debugflags.0 = 1 ' Start in debug monitor

    loopX: High LED ' Turn on LED connected to PORTD.0
    Pause 500 ' Delay for .5 seconds

    Low LED ' Turn off LED connected to PORTD.0
    Pause 500 ' Delay for .5 seconds

    Goto loopX ' Go back to loop and blink LED forever
    End

  2. #2
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Try this thread http://www.picbasic.co.uk/forum/showthread.php?t=8382, especially Bruce's explanation of what's going on.

    Regards,

    Anand

Similar Threads

  1. PicBasic Pro Demo
    By nbrucew in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 26th August 2009, 19:10
  2. Unpacking a PICkit 2 Programmer/Debugger
    By duncan303 in forum General
    Replies: 20
    Last Post: - 14th May 2009, 21:24
  3. Pickit2 / ICD2? advice please?
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th May 2008, 18:27

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