ICD, ICSP and Picbasic Pro


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    I disagree. MicroCode Studio Plus has in-circuit debugging.

    I can't figure out how to make it work, but it's there. I tried using that MAX232CPE circuit too, connected to TX/RX with the same results.

    Gonna try PGC/PGD and see what happens.

    Robert


    EDIT: D'OH! I had 1 cap and 1 wire from RS232 in the wrong place. Works like a charm now, using TX/RX too. The only downside to in-circuit serial debugging is that it interferes with any HSERIN/OUT, but it's awesome to find errors.
    Last edited by Demon; - 24th July 2006 at 18:52.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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


    Did you find this post helpful? Yes | No

    Default

    The ICD feature in MicroCode Studio is totally different than Microchips ICD2.
    Hardware & software wise.

    ICD2 also doubles as a device programmer. That's why it uses the PICs'
    programming clock & data pins. To use ICD2 you need MPLAB, the ICD2
    hardware, and the PIC wired like shown in the ICD2 hardware diagram.

    The MCS ICD feature uses the PIC onboard hardware USART to send debug
    information back to the PC via the serial connection. When you compile your
    code in the MCS editor using the ICD compile button, it automatically includes
    additional debug code mixed in with yours to handle the ICD apsect.

    The two are completely different.
    Regards,

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

  3. #3
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    I, too have tried to use the debuggers, but have had no success whatsoever. I'm either 1. Too dumb to understand the tutorials, or 2. Expecting it to work like it would if I wrote it.
    In either case, I have found both of the debuggers useless. So far, my opinion is that Microchip's is hard to use because it is purely software, and therefore has a hard time dealing with hardware events (how DO you write stimulus files, anyway?), while the Microcode Studio version always gives me errors, such as "path too long" - even when I have moved all files to the root of my C: drive.

    If someone has a "dumbed-down" explanation of the step-by-step use of a debugger, I would really appreciate it if they would post it.

    I have several ICD2's and all my PIC circuits use 8720's or 8722's with MAX chips. I use MCStudio. If there is a better/easier debugger that I should be using, tell me and I'll buy it.
    Charles Linquist

  4. #4
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    94


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default MCSP and ICD

    Hi,

    I have successfully used ICD with MCSP on a particular program I have used in the past (on a 16F877A) and found it to be invaluable - it really cut down the time to market on one of our more extensive projects!

    Using Bruce's circuit, you don't need an ICD2 for this, you can program and debug the software in circuit. You need to use the correct boot loader for the PIC you are using which is found in the MCLoader of MCSP program files. This needs to be programmed into the PIC with a programmer before placing the PIC into the ciruit.

    The RX and TX pins are the right pins to use for communiaction in this circuit.

    In the PIC program, you must type:
    DEFINE LOADER_USED 1 at the top of the program

    Choose specific points of the program that you wish to debug and type:
    ENABLE DEBUG before it
    then after that part of the program type:
    DISABLE DEBUG

    You then have to use the ICD Compile and Program Button to compile the program rather than just the Compile and Program button.

    The "Loader Help Topics" in the Help section of MCSP contain all the necessary information for ICD including the circuitry between the PIC and the PC - check 'em out as they're very useful.

    Hope these pointers help.
    Last edited by Rob; - 25th July 2006 at 09:49.

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default

    Again, apples and oranges. The loader is one thing and ICSD is another. I use in-circuit serial debugging from MCSP without using the loader at all.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  6. #6
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Demon
    The loader is one thing and ICSD is another. I use in-circuit serial debugging from MCSP without using the loader at all.
    True - but if you program a bootloader into the chip, then program the chip in circuit you are testing that your hardware/wiring is correct.

    Regards

    Rob
    Last edited by Demon; - 4th October 2016 at 17:00.

Similar Threads

  1. Replies: 1
    Last Post: - 10th December 2007, 23:57
  2. MPLAB ICD ver 1 & 16F628A
    By Tissy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th February 2005, 00:44

Members who have read this thread : 2

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