MCSP ICD does not work


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2004
    Posts
    448

    Default MCSP ICD does not work

    This one seems to defy logic...

    I have been using the ICD feature from MCS Plus in the past; now, after months I find myself in need of using it again, but whatever I do I get a "ICD connection timeout" error.

    I am using the MCSP ver 3.0.0.5 with PBP 2.47, and the device is a 16F628.

    A debug out (mode 0, thru' a level shifter) on the RB2 pin works okay (as seen on a terminal emulator), so I guess the hardware is not suspect.

    An "ICD compile and Program" goes thru' without any errors, but the ICD itself does not work. Any idea what could be happenning here?

    Thanks for any pointers, in advance.

  2. #2
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    The device is a 16F628A; sorry.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Is this possible to see your whole code?

    Probably DEBUG won't work, ICD assume you use the internal USART

    Do the sample test on the following Bruce's tutorial
    http://www.rentron.com/PicBasic/MCS_X3.htm

    Hardware must match as well.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Steve, I just did that; copy-pasted Bruce's code, with the same results;

    BTW, I am using a TTL inverter in place of a 'real' level shifter; could this be an issue? But then I can send data out to a terminal over the same com port I otherwise am trying to use for ICD, so I guess not. Right?

    Still lost...

    Anand

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Not sure if i understand correctly, but in case you want to send serial data, you can't use the same port with another terminal software. As far as i remember of, MCSP ICD have a dedicated windows for that.... been long long time i didn't used it...

    Did you tried with 4 and 20MHz osc?

    Are you sure the COM port selected in the top menu match the one you plan to use?
    Last edited by mister_e; - 19th May 2008 at 19:39.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Sorry, that was misleading; the serial data is being sent to the PC just for checking the hardware; while doing the ICD compile, I rem out the debug statements and close the terminal before running ICD.

    I am using the internal oscillator, so I presume the default would be 4 MHz.

    Yes, I've defined the right com port.

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Out of curiosity.. are you using a USB-To-Serial adapter? If so did you tried on COM<16?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default Strange solution!

    No, a proper com port on my motherboard.

    But guess what... a decoupling cap on the breadboard solved the problem. Even as I type, the ICD is chugging away happily.

    I thought my supply was well filtered; didnt find the need for an extra cap on the breadboard before; just goes to show how crucial it is, I guess.

    Thanks for the help, Steve.

    Anand

  9. #9
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    those mandatory cap!

    I asked about the USB-To-Serial because i tried with one here... and it refused to work. It begun to work when i set it to COM9 or lower. Good enough for the records i guess

    But it happen on my machine... maybe not on others... my machine behave in unique way sometimes
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. ICD, ICSP and Picbasic Pro
    By mwhatley in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 8th August 2024, 20:42
  2. ICD & PBP && how to get it to work
    By archendekta in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 24th March 2010, 01:56
  3. MCSP / ICD Models
    By CocaColaKid in forum General
    Replies: 0
    Last Post: - 5th March 2008, 14:26
  4. ICD Woes
    By spad13m in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 14th February 2008, 05:56
  5. Speed Up ICD in MCSP
    By CocaColaKid in forum General
    Replies: 0
    Last Post: - 2nd September 2005, 02:35

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