Searching \ for '[PIC] PICkit 2 applet modification' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'PICkit 2 applet modification'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] PICkit 2 applet modification'
2005\12\09@211816 by Timothy Weber

face picon face
I just got the PICkit 2 recently - I needed to program a PIC16F916 and
my old programmer couldn't.  It's nice.  I like it.

However, I was surprised to find that it didn't install itself into
MPLAB as a programmer.  And, it didn't seem to have a command-line
interface so I could launch it for one-key programming from SourceBoost,
another IDE I'm experimenting with.

I grabbed the source to see if that would help me figure out if it had
any command-line options, and when I looked at it, realized it was done
in C++Builder 6, which I happen to have and know.

So, I got it compiling and added an "-auto <filename.hex>" option to
automatically load the named file, write it out, verify, and exit on
success.

In the meantime I also found out that it automatically reloads the hex
file if it's changed; if I'd known that, I might not have bothered!
Still, it's kind of nice to have a command-line option, and I also added
some sounds for success and failure, which I find handy.

I expect someone's already done some hacking on this, and I intended to
check on that before I started, but honestly it took so little time that
by the time I remembered to do that, I was nearly done.

Anyway - if anyone's interested, I can post the modified EXE.
--
Timothy J. Weber
http://timothyweber.org

2005\12\09@231904 by Xiaofan Chen

face picon face
On 12/10/05, Timothy Weber <spam_OUTtwTakeThisOuTspamtimothyweber.org> wrote:
> I just got the PICkit 2 recently - I needed to program a PIC16F916 and
> my old programmer couldn't.  It's nice.  I like it.

Me too. It will soon support lots of popular 18F and 16F chips. Later
it will support dsPIC30 and even PIC24 and dsPIC33 (not so soon) if
Dan Butler (the PICkit keeper in Microchip) continues his efforts. It is
hardware ready for supporting all these chips.

> However, I was surprised to find that it didn't install itself into
> MPLAB as a programmer.  And, it didn't seem to have a command-line
> interface so I could launch it for one-key programming from SourceBoost,
> another IDE I'm experimenting with.

It is said that it will only be integrated later (maybe MPLAB 7.3 or 7.4,
official 7.3 will soon be out). The command line option is nice to have.
Currently there are some efforts to bring it to Linux by Mark Rages
(in Python) and Jeff Post (in C). I am able to run both application running
under Windows but it requires libusb-win32 device driver and may not be
the optimum solution for Windows. The Microchip application uses HID
1.1 which is compatible to Windows 98SE and later Windows (Me, 2K, XP)
and does not require a customized driver.

> I grabbed the source to see if that would help me figure out if it had
> any command-line options, and when I looked at it, realized it was done
> in C++Builder 6, which I happen to have and know.
> So, I got it compiling and added an "-auto <filename.hex>" option to
> automatically load the named file, write it out, verify, and exit on
> success.

Great! I wish I know a bit more of progrmaming so that I can do this.

> In the meantime I also found out that it automatically reloads the hex
> file if it's changed; if I'd known that, I might not have bothered!
> Still, it's kind of nice to have a command-line option, and I also added
> some sounds for success and failure, which I find handy.

It is good to have a command line option so that some people
can run scripts using PICkit 2.

> I expect someone's already done some hacking on this, and I intended to
> check on that before I started, but honestly it took so little time that
> by the time I remembered to do that, I was nearly done.
>
> Anyway - if anyone's interested, I can post the modified EXE.

I am interested.

For Mark and Jeff's work, please refer to the pickit-devel Google group.
http://groups.google.com/group/pickit-devel

Regards,
Xiaofan

2005\12\10@130223 by Timothy Weber

face picon face
Xiaofan Chen wrote:
>
> It is said that it will only be integrated later (maybe MPLAB 7.3 or 7.4,
> official 7.3 will soon be out).

Good to know!

> Currently there are some efforts to bring it to Linux by Mark Rages
> (in Python) and Jeff Post (in C). I am able to run both application running
> under Windows but it requires libusb-win32 device driver and may not be
> the optimum solution for Windows. The Microchip application uses HID
> 1.1 which is compatible to Windows 98SE and later Windows (Me, 2K, XP)
> and does not require a customized driver.

Right - Linux ports are a good thing, but it makes more sense to me to
use the native Windows app on Windows.

> It is good to have a command line option so that some people
> can run scripts using PICkit 2.

Hm, yes, I didn't even think of that - might be handy for serializing
chips or whatever.

>>Anyway - if anyone's interested, I can post the modified EXE.
>
> I am interested.

OK, it's up at <http://timothyweber.org/pickit>.

> For Mark and Jeff's work, please refer to the pickit-devel Google group.
> http://groups.google.com/group/pickit-devel

Thanks, I'll check it out!
--
Timothy J. Weber
http://timothyweber.org

2005\12\11@215848 by Chen Xiao Fan

face
flavicon
face

> -----Original Message-----
> From: .....piclist-bouncesKILLspamspam@spam@mit.edu
> Sent: Sunday, December 11, 2005 2:02 AM
>
> OK, it's up at <http://timothyweber.org/pickit>.
> Timothy J. Weber
> http://timothyweber.org

Thanks for posting the modified source and the exe file.
I will try it out.

Regards,
Xiaofan

PS: A simple howto to build PICkit 2 Windows application
from Microchip provided source.

1) Borland C++ Builder 6 Free personal edition can be
download from Nokia.

Borland C++ Builder 6 personal mobile edition (include BCB 6
personal and mobile plug-in and the Symbian series 60 SDK)
http://ncsp.forum.nokia.com/csp//?body=eula;asset_id=206;ref=

2)The missing Windows DDK file like hdisdi.h and hid.lib can be
download from websites like http://www.alanmacek.com/usb/ or
from Microsoft (no more free download but only free CD with
shipment charge).

Take note that the hid.lib needs to be converted to Borland
format first.

coff2omf hid.lib b_hid.lib
and then rename b_hid.lib to hid.lib.

Put the hidsdi.h and hid.lib in the same directory of the
PICkit 2 PC Application project.

If the coff2omf is not working for you, google says that
you may want to use implib and hid.dll from DDK but I
have not tried out this. Anyway the above method should
work since people have confirmed it is working in
Microchip Forum.

2005\12\28@093118 by Xiaofan Chen

face picon face
> > -----Original Message-----
> > From: piclist-bouncesspamKILLspammit.edu
> > Sent: Sunday, December 11, 2005 2:02 AM
> >
> > OK, it's up at <http://timothyweber.org/pickit>.
> > Timothy J. Weber
> > http://timothyweber.org
>
> Thanks for posting the modified source and the exe file.
> I will try it out.
>
> Regards,
> Xiaofan
>

I tried the patch and it is working. Thanks. I can not use the
patch utility from MinGW and I have to use patch from Cygwin.
After the patch I can build Timothy's modified application with
the free Borland C++ Builder 6 persoanl version. Take note
that V1.10 application also provide the hid.lib.

Now that V1.10 PC application has been released and it supports
many more PICs. Maybe it is a good idea to patch this version
as well.

Regards,
Xiaofan


'[PIC] PICkit 2 applet modification'
2006\01\16@012637 by Xiaofan Chen
face picon face
On 12/28/05, Xiaofan Chen <.....xiaofancKILLspamspam.....gmail.com> wrote:
> > >
> > > OK, it's up at <http://timothyweber.org/pickit>.
> > > Timothy J. Weber
> > > http://timothyweber.org
> >
> I tried the patch and it is working. Thanks. I can not use the
> patch utility from MinGW and I have to use patch from Cygwin.
> After the patch I can build Timothy's modified application with
> the free Borland C++ Builder 6 persoanl version. Take note
> that V1.10 application also provide the hid.lib.
>
> Now that V1.10 PC application has been released and it supports
> many more PICs. Maybe it is a good idea to patch this version
> as well.
>

Today I am sick at home and I try to manually patch the 1.10 PC
application with Timothy's patch and it works!

The patch in its current format only have the option to program the
hex file. It would be nice to add some other options. ;-)

Regards,
Xiaofan

2006\01\16@141320 by Timothy Weber

face picon face
Xiaofan Chen wrote:
>
> Today I am sick at home and I try to manually patch the 1.10 PC
> application with Timothy's patch and it works!

Sorry you're sick - but glad to hear it works!  I haven't had a chance
to get back to it recently.

> The patch in its current format only have the option to program the
> hex file. It would be nice to add some other options. ;-)

What would you like?
--
Timothy J. Weber
http://timothyweber.org

2006\01\16@194839 by Xiaofan Chen

face picon face
On 1/17/06, Timothy Weber <EraseMEtwspam_OUTspamTakeThisOuTtimothyweber.org> wrote:
>
> > The patch in its current format only have the option to program the
> > hex file. It would be nice to add some other options. ;-)
>
> What would you like?

For example, I can think of the following.
1) writing and verify (already implemented) but need to consider 18F
support.
2) reading from the PIC to a hex file
3) verify a PIC with a hex file
4) erase a PIC
5) blankchecka PIC
6) option to specify a PIC family and even the chip name for the base
line PIC.


Regards,
Xiaofan

2006\01\18@202840 by Timothy Weber

face picon face
OK, all those sound reasonable.  Which of these do you think you'd
personally use?

That is - I'm swamped this month, but I'll get back to it at some point;
which ones would make the most difference to you?

Xiaofan Chen wrote:
{Quote hidden}

--
Timothy J. Weber
http://timothyweber.org

2006\01\18@210204 by Chen Xiao Fan

face
flavicon
face


> -----Original Message-----
> From: piclist-bouncesspamspam_OUTmit.edu
> [@spam@piclist-bouncesKILLspamspammit.edu] On Behalf Of Timothy Weber
>
> OK, all those sound reasonable.  Which of these do you think you'd
> personally use?

1), 2) and 6). 1) is already there so 2) and 6) are the two
extra options to implement. For 6) base line support may
not be so important for me since I seldom use them but
maybe other people will use them.

1) writing and verify (already implemented) but need to
consider 18F support.
2) reading from the PIC to a hex file
6) option to specify a PIC family and even the chip name
for the base line PIC.

Regards,
Xiaofan

More... (looser matching)
- Last day of these posts
- In 2006 , 2007 only
- Today
- New search...