Help MCS with PICKIT2 programmer question


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    May 2007
    Location
    Area 71
    Posts
    52

    Default Help MCS with PICKIT2 programmer question

    I use Pickit2 for ICSP programming.

    When I use it directly to my board ( with PICKIT2 programmer software ) everything run well.

    But when I use it inside MCS ( Compile and Program ) it hold the PIC on reset at the end of programming ( similar to condition when you tick the option "Programmer-Hold Device in Reset" on Pickit2 software) . Manual reset does not work, so I have to run the PICKIT2 programmer software to reset it.

    How to fix this problem ? Thank you

    I use following on MCS :
    PK2CMD.EXE v1.01
    Device File v1.41.00
    PICkit 2 Firmware v2.10.00

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


    Did you find this post helpful? Yes | No

    Default

    How your command line looks like?
    Steve

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

  3. #3
    Join Date
    May 2007
    Location
    Area 71
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Hello Mr.E,

    This is my command line: -PPIC$target-device$ /f$hex-filename$ /M

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


    Did you find this post helpful? Yes | No

    Default

    Open the PK2CMD.txt file, then use this one
    /PPIC$target-device$ /f$hex-filename$ /E /M /Y /R /H2

    about now?
    Steve

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

  5. #5
    Join Date
    May 2007
    Location
    Area 71
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Thanks Mr.E, I just tried that, but the problem is still there.

    I also tried to program the board with external power on and power off, it seems that PICKIT2 does not release the control after programming, so nothing happen if I push reset button on mclr pin or when the power is turned off then back on

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


    Did you find this post helpful? Yes | No

    Default

    It works here... can you post your schematic, code and PIC#?
    Steve

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

  7. #7
    Join Date
    May 2007
    Location
    Area 71
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    My program , schematic & circuit board are okay, I can program it directly with Pickit2 Programmer (MCS -> Compile to hex (F9) -> Pickit2 Programmer software -> Pickit 2 ), with no problem at all.

    Other thing is that I cannot calibrate Pickit2 , it says it cannot fully calibrate the unit, the USB voltage is too low. Could it be the problem ?

  8. #8


    Did you find this post helpful? Yes | No

    Default

    Go to Microchip Support:
    http://support.microchip.com/scripts...=webticketcust
    They will fix your problem.

  9. #9
    Join Date
    May 2007
    Location
    Area 71
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Well, it seems that it is the "bug" that microchip has to address . It is also mentioned in Nuts/Volt magazine January 2008 page 69

  10. #10
    Join Date
    Mar 2006
    Location
    Hyderabad (India)
    Posts
    123


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by luminas View Post
    Well, it seems that it is the "bug" that microchip has to address . It is also mentioned in Nuts/Volt magazine January 2008 page 69
    what firmware you use for Pickit2? if you can download and use latest from MPLAB8.01 , perhaps you may find a fixed version? similarly do you use pickit2v2.4 software for the PICkit driver?
    Regards,
    Sarma

Similar Threads

  1. Replies: 9
    Last Post: - 11th February 2010, 21:32
  2. ICD use with MCS Plus, PBPro & PicKit2??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 30th September 2009, 23:06
  3. Programmer question
    By Sam in forum General
    Replies: 4
    Last Post: - 13th June 2008, 17:17
  4. Microcode studio programmer question
    By zk_bamx2 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th February 2008, 10:20
  5. Programmer question
    By mwhatley in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 4th October 2005, 02:04

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