Connecting programmer to MicroCode Studio


Closed Thread
Results 1 to 34 of 34

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    I've never tried it that way.
    Perhaps it works fine ...

    But I know the Command Line Interface gives one click from MicroCode Studio to PIC.
    It's what I use for the PICkit2. I also have an EPIC, and a meLabs U2.

    It's been awhile since the installation, I don't remember if it was automatic or if I had to figure it out.
    But these are the parameters for the PICkit2 programmer.
    Code:
    -pPIC$target-device$ -f$hex-filename$ -M -R -T -h2
    When I use windows I just use the PICKIT2 soft ware.
    On Linux I use this
    http://www.cannasoftware.com/content/view/32/1
    Both work well.

    1Hr left this year
    Well, In my time zone.

    Happy new year!
    Kiss someone next to you.
    I am in the shop by myself, a real party animal
    HAPPY NEW YEAR!!!
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Dec 2003
    Location
    San Diego
    Posts
    35


    Did you find this post helpful? Yes | No

    Question PICkit2?

    Darrel...
    Did this give you the one click flash function from the IDE?
    -pPIC$target-device$ -f$hex-filename$ -M -R -T -h2

    I tried this and several variants with no luck.
    The programmer application starts... no problem... but does not do it's thing without clicking the auto import button.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit
    Quote Originally Posted by Darrel Taylor
    Happy new year!
    Kiss someone next to you.
    I am in the shop by myself, a real party animal
    HAPPY NEW YEAR!!!
    Then kiss your DrillPress.
    I would if I had one ...
    But, right now, the mop looks pretty good too.

    tcbcats: Thru my blurry eyes tomorrow, I will attempt to verify the process.
    It works, It's sweet.

    Hflppy Neflear!
    DT

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


    Did you find this post helpful? Yes | No

    Default Installing the PICkit2 Command Line Interface

    Download the latest PICkit2 GUI, and the "PICKit2 Command Line Interface" from Microchip.
    http://www.microchip.com/stellent/id...cName=en023805

    Extract all files from PK2CMD to your "C:\Program Files\Microchip\PICkit 2 v2" folder.
    It's the same folder as the PICkit2 programmer software.

    In Microcode Studio View | Compile and Program Options... | programmer tab,
    click Add New Programmer, select "Create a custom programmer entry" then click "Next".
    Enter any name you wish to call it and click "Next".
    Enter pk2cmd.exe as the "Programmer Filename" and click "Next".
    Click the "Find Manually" button and point it to C:\Program Files\Microchip\PICkit 2 v2 and click "Next".
    Enter this parameter line

    -pPIC$target-device$ -f$hex-filename$ -M -R -T -h2

    Then click Finished.

    Pressing Compile and Program or F10 in MicroCode Studio will now do it all.

    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=3146" /><!-- Name:  PicKit2_CMD.JPG
Views: 4708
Size:  120.3 KB -->

    Descriptions of those, and additional command-line parameters can be found in the "Readme For PK2CMD.txt" file from the .zip above.
    <br>
    DT

  5. #5
    Join Date
    Dec 2003
    Location
    San Diego
    Posts
    35


    Did you find this post helpful? Yes | No

    Default PICkit2?

    Darrel,
    I set up my programmer as you directed and still get the same results...
    The PICkit2 application starts and and just shows that it found the connected PIC... thats all. I have to manually click the putton and then select the hex to get it to program the target PIC.
    Just before the application starts the programmer shows activity but that is maybe just reading the target PIC to confirm a connection.
    I tried many of the other commands in the readme file with no luck.
    It looks like the command never actually runs or has some other error.
    The PICkit2 application gets started from the programmer path you enter in the IDE so its the script that is not working.
    My new USB U2 came today and it works with the script... so I guess I will scrap the PICkit... too bad the price is right and it does work if manually directed. It also works as stand alone.
    Maybe MEL has some other info on how to get the PICkit2 to work with the script.

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


    Did you find this post helpful? Yes | No

    Default

    Are you sure you entered pk2cmd.exe as the Programmer Filename.
    It opens a DOS window, not the PICkit2 GUI program.

    If it's opening the GUI, something's definitely not right.
    <br>
    DT

  7. #7
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default programmer launch from Microcodestudio

    Hi to you all !
    I do have to launch the MPLAB in order to programm the PIC directly from the MCS. At the moment I use the MCS and MPASM and then i call the MPLAB to program the chip. I will like to do it in a single action.
    Thanks for any suggestion .
    Regards,
    Ambrogio
    IW2FVO
    North Italy

Similar Threads

  1. Connecting PICSTART to Microcode Studio
    By OzGrant in forum General
    Replies: 8
    Last Post: - 2nd February 2010, 10:20
  2. Connecting PICSTART to Microcode Studio
    By OzGrant in forum General
    Replies: 0
    Last Post: - 30th January 2010, 20:40
  3. Microcode studio programmer question
    By zk_bamx2 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th February 2008, 10:20
  4. Microcode studio loader problem
    By woodygjw in forum General
    Replies: 2
    Last Post: - 10th September 2007, 01:18
  5. Replies: 2
    Last Post: - 25th February 2006, 02:53

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