PK2CMD closes it`s window when error occurs

Page: 12 > Showing page 1 of 2
Author
Frizie
New Member
  • Total Posts : 11
  • Reward points : 0
  • Joined: 2010/01/16 07:57:02
  • Location: The Netherlands
  • Status: offline
2010/01/16 08:32:08 (permalink)
0

PK2CMD closes it`s window when error occurs

Very handy!
I've couple PK2CMD. exe V1.20 (latest version?) to my compiler with parameter -HK.
When the PIC is programmed succesfull, then indeed PK2CMD waits with closing it's window until I hit a key.
But... if there is any error, the PK2CMD closes his window immediatelly.
Very handy, now I can't see what the error is.[:@]

Please, repair it in the next version from PK2CMD.
Whatever happens, if there is the -HK parameter in the commandline, the window should not close until I hit a key!

Ohm sweet Ohm | www.picbasic.nl
#1

21 Replies Related Threads

    Stefan Uhlemayr
    Super Member
    • Total Posts : 4292
    • Reward points : 0
    • Joined: 2005/05/12 12:25:46
    • Location: Germany
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/16 12:48:09 (permalink)
    0
    ORIGINAL: Frizie

    Very handy!
    I've couple PK2CMD. exe V1.20 (latest version?) to my compiler with parameter -HK.
    When the PIC is programmed succesfull, then indeed PK2CMD waits with closing it's window until I hit a key.
    But... if there is any error, the PK2CMD closes his window immediatelly.
    Very handy, now I can't see what the error is.[:@]

    Please, repair it in the next version from PK2CMD.
    Whatever happens, if there is the -HK parameter in the commandline, the window should not close until I hit a key!
    While I've not checked your observations, you may easily work around this problem, if you take care of the errorlevel, which PK2CMD gives you back. Write a simple batchfile, which will wait for a keystroke, if errorlevel <> 0.

    And if you want to make this keystroke necessary independent of success or not, forget about the -hk parameter at all, put the PK2CMD in the first line and the PAUSE-instruction in the second line...

    Hope this helps,
    Stefan

    ps: Welcome to the forum! Smile
    #2
    Frizie
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2010/01/16 07:57:02
    • Location: The Netherlands
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/16 15:57:42 (permalink)
    0
    No, no, no, please!
    With all respect Stefan, but this is a palliative.

    A big company as Microchip should have this kind of things 100%.
    And it's not a big issue to build it in the next version of PK2CMD.
    I'm very satisfied about Microchip products and it's the first time I've found something which I'm not satisfied about.
    Again: if there is the -HK parameter in the commandline, the window should not close until I hit a key, error or not!

    My (Dutch) website is specially made for PIC beginners.
    Don't come with solutions like batchfiles, lot of beginners will drop out and search something else and work for the rest of their life with other microcontrollers.
    Cause thát's what happens in practice, most beginners will stick to the microcontroller where they start with.
    So, please Microchip, don't forget to be user friendly, specially for beginners!
    Keep also PK2CMD up-to-date!
    post edited by Frizie - 2010/01/16 16:20:29

    Ohm sweet Ohm | www.picbasic.nl
    #3
    Stefan Uhlemayr
    Super Member
    • Total Posts : 4292
    • Reward points : 0
    • Joined: 2005/05/12 12:25:46
    • Location: Germany
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/16 16:06:06 (permalink)
    0
    ORIGINAL: Frizie

    No, no, no, please!
    With all respect Stefan, but this is a palliative. ...
    Well, I don't think you'll get ever another possibility at this time. As PICkit2 (Not Recommend for New Designs) is already replaced with PICkit3, there will be no further development for the PICkit2 at all.sad

    You may have a look to the PICkit3 (which has meanwhile got a commandline-program, too)...

    Greetings,
    Stefan
    #4
    Frizie
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2010/01/16 07:57:02
    • Location: The Netherlands
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/16 16:13:08 (permalink)
    0
    Hmmm, so if Windows 7 comes out, there are no updates anymore for Windows Vista and Windows XP?

    Ohm sweet Ohm | www.picbasic.nl
    #5
    Stefan Uhlemayr
    Super Member
    • Total Posts : 4292
    • Reward points : 0
    • Joined: 2005/05/12 12:25:46
    • Location: Germany
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/16 16:23:20 (permalink)
    0
    ORIGINAL: Frizie

    Hmmm, so if Windows 7 comes out, there are no updates anymore for Windows Vista and Windows XP?
    Don't compare apple's with pear's. Anyway, there were still updates for the PICkit2, while PICkit3 was on market already, but the last one was done in march 2009, if I remember correctly. And as PICkit2 works pretty fine with the parts it supports, you'll miss only the support for new parts (and your problem with the commandline-interface)...

    You may open a support-ticket, but I doubt, that you'll get different news there.sad

    Greetings,
    Stefan
    #6
    Frizie
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2010/01/16 07:57:02
    • Location: The Netherlands
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/16 16:38:18 (permalink)
    0
    Hmmm, ok, thanks for answering Stefan!
    I still hope this will be repaired.
    If the aftersales is bad, people may think, "Don't go to the Microchip people, once you've bought a product and there's a successor, you've got never updates anymore for the old product version".
    That's why this is very important, keep the clients satisfied, support older products too!
    And it's only software, it could be repaired in several hours.

    Ohm sweet Ohm | www.picbasic.nl
    #7
    Ninestone
    Super Member
    • Total Posts : 455
    • Reward points : 0
    • Joined: 2008/02/17 13:41:32
    • Location: 0
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/16 20:24:48 (permalink)
    0
    You can always download the source code and fix it yourself.....

    #8
    Ninestone
    Super Member
    • Total Posts : 455
    • Reward points : 0
    • Joined: 2008/02/17 13:41:32
    • Location: 0
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/16 22:31:53 (permalink)
    0
    Like this.  Try the exe from the attached zip.  It should fix the problem.


    Edit - See followup post for fixed EXE
    post edited by Ninestone - 2010/01/22 19:54:23
    #9
    P Lameijn
    Super Member
    • Total Posts : 1907
    • Reward points : 0
    • Joined: 2004/01/22 18:30:23
    • Location: The Netherlands
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/17 05:58:00 (permalink)
    0
    You can always download the source code and fix it yourself.....

    Indeed. It's quite an easy fix...

    Regards,
    Peter
    #10
    Frizie
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2010/01/16 07:57:02
    • Location: The Netherlands
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/17 12:18:42 (permalink)
    0
    Ok, thanks folks, I will try it in the next days and let you know the results.wink

    Ohm sweet Ohm | www.picbasic.nl
    #11
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/18 04:56:28 (permalink)
    0
    Could you post the fix (source code)? Thanks. I admit I am not a programmer...

      USB_Links and libusb
    #12
    Frizie
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2010/01/16 07:57:02
    • Location: The Netherlands
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/22 12:47:25 (permalink)
    0
    Sorry for the late response Ninestone, I was very busy last week, so I didn't had much time to tried your attachment, but now it's weekend grin

    Can you tell me which parts I need further to get your attachment to work?
    I've tried v1.55 and v1.61 but both won't start your attachment pk2cmd. exe at all.
    Or better, if you would, will you make a .zip which contains also the right PK2DeviceFile.dat file that work guaranteed with your attachment (and maybe which .hex firmware version for the PICkit itself)?

    Ohm sweet Ohm | www.picbasic.nl
    #13
    Ninestone
    Super Member
    • Total Posts : 455
    • Reward points : 0
    • Joined: 2008/02/17 13:41:32
    • Location: 0
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/22 18:19:15 (permalink)
    0
    Can you tell me which parts I need further to get your attachment to work?
    I've tried v1.55 and v1.61 but both won't start your attachment pk2cmd. exe at all.


    I compiled it under Vista, and it was working.  Tried it under XP and see the same problem as you.  (It should work with the device file that normally comes with v1.20 of PK2CMD)

    I'll look into it this weekend. 
    #14
    Ninestone
    Super Member
    • Total Posts : 455
    • Reward points : 0
    • Joined: 2008/02/17 13:41:32
    • Location: 0
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/22 19:52:49 (permalink)
    0
    OK, I test this on both Vista and XP and it's working.  The PK2CMD executable in the attached ZIP will report version "1.20.91" and should fix the -h issues, so that option always works.

    Important Note: The latest device file PK2CMD v1.20.xx works with is 1.55.  If I try 1.61 it says I "need a new version of pk2cmd".  I included v1.55 device file in the zip this time.

    For those interested, I added another zip with the 3 source files I changed to make the fix.  You can add them over the originals in the pk2cmd v1.20 source from the Microchip website to build this, or diff them to see the changes.

    Hope this works for you Frizie
    #15
    Frizie
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2010/01/16 07:57:02
    • Location: The Netherlands
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/23 12:48:15 (permalink)
    0
    Thanks for the new fix, Ninestone.

    I've tried this one on my laptop (with Windows XP Home edition) but also, not a little reaction, but I have to say that this laptop only have Windows Service Pack 1.
    Now I've tried your program on my websurfing PC (with Vista) and yes, it seems to work there (only trouble is that this PC is not on my workplace [:o] )

    The strange thing is that the original Microchip PK2CMD V1.20 / V1.55 works fine on my Windows XP SP1 laptop.
    Or do I miss some DLL files or something? [8|]
    I'll try it also next week on my work where I have a laptop with Windows XP with more Service Packs and look what's happend.

    For so far, thanks for trouble, Ninestone!
    And have a nice weekend further.

    Ohm sweet Ohm | www.picbasic.nl
    #16
    Ninestone
    Super Member
    • Total Posts : 455
    • Reward points : 0
    • Joined: 2008/02/17 13:41:32
    • Location: 0
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/23 15:30:29 (permalink)
    0
    What is the error you get on the machine where it doesn't work?
    #17
    Frizie
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2010/01/16 07:57:02
    • Location: The Netherlands
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/24 08:16:13 (permalink)
    0
    Well, I've the Dutch version* of Windows XP, so the error message underneath will not be the exact Windows error message.
    The translated message:

    The application can not start because the application configuration is incorrect
    Reinstalling the application may fix this problem


    But as we know, reinstalling doesn't help...
    (*Dutch version is further 100% equal to the English/American Windows XP, only the text is translated to Dutch language, it's an official Microsoft product)
    post edited by Frizie - 2010/01/25 11:50:42

    Ohm sweet Ohm | www.picbasic.nl
    #18
    Frizie
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2010/01/16 07:57:02
    • Location: The Netherlands
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/30 12:51:12 (permalink)
    0
    Hi Ninestone, new weekend, new changes.

    Today I brought home the laptop fromout my work (with Microsoft Windows XP, also Dutch version, but XP Professional, and Service Pack 3).
    Guess what?
    Your program is doing it great on this computer.
    Now I've to find out why your program doesn't work on my own laptop with Windows XP Home Edition with Service Pack 1, while the original Microchip PK2CMD does work fine with it.

    Your program must missing a config file or something on my laptop.
    Do you have an idea?

    Ohm sweet Ohm | www.picbasic.nl
    #19
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: PK2CMD closes it`s window when error occurs 2010/01/31 20:26:34 (permalink)
    0
    Maybe you can try to compile pk2cmd by yourself to see if it will work. You can download Visual C++ Express 2005 and 2008 to try it out. 

      USB_Links and libusb
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2017 APG vNext Commercial Version 4.5