In-Circuit Debugger Mode


Closed Thread
Results 1 to 16 of 16
  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default In-Circuit Debugger Mode

    Does anyone have any Links to info on the PIC's Hardware Debugger.

    Looking for something that says how to set a BreakPoint, or something like that. (Or anything related)

    I've googled it to death, but just come up with ICD2 ads.

    Maybe it's a Microchip "Secret".

    Thanks,
    DT

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Does this help?
    http://ww1.microchip.com/downloads/e...Doc/51242a.pdf
    EDIT: Section 2.7.2 looks (possibly) promising
    Last edited by paul borgmeier; - 22nd January 2007 at 05:50.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

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


    Did you find this post helpful? Yes | No

    Default

    Excellent!

    Thank you very much Paul. That's exactly what I needed.

    I guess my searching skillz need a little work.

    Much appreciated!

    .
    DT

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Watcha doin there Mr. wizard?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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


    Did you find this post helpful? Yes | No

    Default

    I truely wish I knew.

    At this point, it's a Big Idea, searching for a purpose.

    Got a lot of little pieces, and like Leggo's, I've got to put them together into something functional.
    Just wish I knew what that was going to be.

    It started out as a Visual Interface to a Servo driver. But it seems to have taken a left turn somewhere.
    DT

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I was just curious.

    I tried looking up an appnote on this a while back myself, but it seems to be
    some dark secret Microchip doesn't want to divulge.

    Strange they would build-in this functionality, and never put anything
    together showing how to use it.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Feb 2005
    Location
    Saltburn by the Sea
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    At one time it looked like microchip might be fairly open with ICD and 16 parts. However, for 18 parts they just shut down. I agree with Bruce - it is something they don't want to publish in the public domain...

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


    Did you find this post helpful? Yes | No

    Default

    They probably wanted to sell ICD2's without competition. But now that half of Taiwan and Hong Kong, know how to clone it. It's time they Pony'd up. (Not Likely)

    And you're right, info on the 18F debugger is hard to come by, but I'm finding little bit's and pieces here and there that are looking promissing.

    One interesting point, is that chips like the 18F4550 and 18F4321 etc. in the 44 TQFP package have a dedicated debugger port on the pins that are normally "No Connection". This opens up RB7:6 and MCLR/VPP for normal use, while still having debugger functions. 18F452 doesn't have it.

    Probably the best info I've found so far is from http://www.picbook.com

    They have a program, QwikBug developed by students at Georgia Tech. That's a debugger for 18F452 and 18F4520 with full source code. They list several Microchip engineers as references, so it looks like they got Microchip to give out a little more info.

    Unfortunately, they use the USART for coms to the PC instead of the ICSP port, but it sure is a good start. (well Commented)

    Still searching though.

    .
    DT

  9. #9
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Here's an ICD2 debug exec from an 18F452.
    Attached Files Attached Files
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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


    Did you find this post helpful? Yes | No

    Default

    Sweet!

    I wanted that, but didn't know if it was right to ask for it.

    But .HEX files are legal.

    Thanks Bruce!

    .
    DT

  11. #11
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    I'd love to be a fly on the wall, looking over Darrel's shoulder as he is working on this project .

    SteveB

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


    Did you find this post helpful? Yes | No

    Default

    DT

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


    Did you find this post helpful? Yes | No

    Default

    P.S.

    No, I'm not good enough to draw that Fly. (yet)
    It came from http://www.snowcrest.net/kitty/hpages/flys.html

    One of these days I'll be able to do Original Art instead of just editing others.

    But in the mean time, I got a good laugh out of it.
    Hope you do too.

    .
    DT

  14. #14
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    They probably wanted to sell ICD2's without competition.
    But now that half of Taiwan and Hong Kong, know how to clone it.
    It's time they Pony'd up.
    Hi Darrel,

    (This info was in the Elektor magazine 10/2006).

    The bootloader file BL010101.hex is part of MPLAB.
    (\Microchip\MPLAB IDE\ICD2).
    Use this file to flash the PIC16F877 present on a ICD2
    clone and you are ready to use it. Note that the file will
    not work with a 16F877A. If you click in the link below
    you will see a list of links. From the link icd2clone.narod.ru
    you can download a bootloader for the 16F877A. If you
    use it, there is no warranty that your ICD2 clone will work
    with new versions of MPLAB. So just use the original file
    with a PIC16F877.

    The above info was in the Elektor magazine 10/2006.
    http://www.elektor-electronics.co.uk...rt=53195&PN=On

    I don't use PIC microcontrollers, I did not test the above.

    Best regards,

    Luciano

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


    Did you find this post helpful? Yes | No

    Default

    Thanks Luciano,

    More good info.

    Quote Originally Posted by Luciano
    I don't use PIC microcontrollers, I did not test the above.
    What!

    You've been around here for years. Made 436 posts so far. Everyone loves your great links. And you don't even use PIC's?

    I'm Dumbfounded.

    _
    DT

  16. #16
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Darrel,

    More links for you.

    BehrendBug home page:
    http://www.personal.psu.edu/~smj161/...htm#BehrendBug

    BehrendBug demo video (WMV format)
    http://www.personal.psu.edu/~smj161/...dBug_movie.wmv

    * * *

    I was able to find these links with Google.
    Searched string: "ICD2" INBUG
    (Where "INBUG" is the bit7 of the ICKBUG register).

    With the first link below I was able to find
    the BehrendBug home page, which is the first link in this post.

    http://www.personal.psu.edu/~smj161/...umentation.pdf
    http://www.personal.psu.edu/students...BehrendBug.doc

    Note that the second link (doc file) has a different path
    on the server. (Maybe more or different info to dig out).
    Note also that the DOC is not the same as the PDF.

    The BehrendBug uses the serial port. If I find more information
    about in-circuit debugging via ICSP interface pins / ICSP protocol,
    I will post it here. (See the link below).

    * * * *

    PIC16F877 DOS:
    http://www.beyondlogic.org/pic/f877-6bk.pdf


    Best regards,

    Luciano
    Last edited by Luciano; - 25th January 2007 at 12:42.

Similar Threads

  1. Circuit Design Question
    By bradb in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 11th August 2009, 08:18
  2. Oscillator stops when touching with a wire
    By Wilbert Ingels in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 25th April 2008, 08:51
  3. Circuit reliability issues
    By hkpatrice in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd November 2007, 14:55
  4. Using HPWM in half bridge mode on 16f690
    By Chris Barron in forum mel PIC BASIC
    Replies: 0
    Last Post: - 29th December 2006, 11:18
  5. Replies: 3
    Last Post: - 29th October 2006, 09:16

Members who have read this thread : 1

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