> While I am able to run pk2cmd as a root and operate PICkit2 normally
> (read/erase/write program memory etc.), this is not possible through
> the piKdev application.
So pk2cmd is working. Have you try to run pikdev as root to
see if that works?
It is better you try to set up udev rules so that you do not
need to run pk2cmd as root.
You can try the udev rules here.
http://piklab.wiki.sourceforge.net/USB+Port+Problems
> More specifically, I have set the path to the pk2cmd correctly in the
> piKdev Global Settings and I have chosen the pk2cmd (>=1.20) option
> from the drop-down menu in the programmer configuration.
>
> However, when I open the Programmer window, I cannot interact with my
> PIC. No operation is working and I always get a message that no device
> is detected (I have also manually configured the type of PIC that I
> use). So, I assume that there is problem in the communication. Either
> the USB port cannot be accessed or the pk2cmd needs more options to be
> set, in order to work properly.
>
> Can anybody give me a hint about this? Can it be only a matter of
> permissions, or something else is wrong?
>
I do not use Pikdev but you can try my suggestion above. For pikdev
specific problem, the author should be able to help you. I think he is
a list member.
--
Xiaofan http://mcuee.blogspot.com
Personally, I'd love to do it, but I've got bills to pay.
Jeff
Hi Nick,
could be a problem specifically for your distribution (Mandriva) who doesn't reconginze the right path to pk2cmd.
By the way, you could give another try by installing pkp (pikdev from command line) from command line and see what happens.
Or switch to Piklab (but if you want to use the IDE to burn your pics u must downgrade the version of your PICKit to version 1.xx). The latter is a stupid solution I think, so the best (what I usually do) is to write your program in Piklab and form the integrated konsole give the command pk2cmd -<command>
Its very fast and very pratical... hope this help
Bye!
That's true Xiaofan !
But since I was not at home yesterday, I was not able to respond
From my experience, 100% of problems with pikdev and pk2cmd come
from a defective installation of pk2cmd.
In fact, 100% means it has been true 3 times, for 3 persons who sent me an
email about a similar problem.
I personally build pk2cmd from sources, and I use the install option of the
makefile.
For persons who prefer to install from precompiled pk2cmd, here is the
procedure which mimics the behavior of the install option.
1) got to the directory which contains the pk2cmd executable , then su root
2)
mkdir -p /usr/share/pk2
cp pk2cmd /usr/local/bin
chmod u+s /usr/local/bin/pk2cmd
cp PK2DeviceFile.dat /usr/share/pk2/PK2DeviceFile.dat
3) go back to user mode
pk2cmd should work from CLI and from pikdev.
It works perfectly on my debian unstable, and also under Ubuntu 9.04
(tested by a person who had the same problem).
However, since I am not an USB guru, I cannot guarantee it will solve your
problem.
Alain
The main problem is that is is impossible for a little group of persons
(wich can be reduced to 1 person !!) to follow new products. This is why
the pic emulators are restricted to a very small number of devices.
> To me, negative factors are: some developers spread their resources thoruh
> many different programs and projects (very close each other (see Piklab and
> Pikdev) )
I agree on this point. Ask Nicolas Hadacek why he have decided to fork pikdev
without any proposition of collaboration. Sadly, we are are both french, so
the communication could have been be technically easy.
Alain
Ask Nicolas Hadacek why he have decided to fork pikdev
without any proposition of collaboration. Sadly, we are are both french, so
the communication could have been be technically easy.
Le Thursday 16 July 2009 20:15:25 Wilhem, vous avez écrit :
> Jeff has right,The main problem is that is is impossible for a little group of persons
> this work takes so much resources and require specify
> attention.
(wich can be reduced to 1 person !!) to follow new products. This is why
the pic emulators are restricted to a very small number of devices.
I agree on this point.
> To me, negative factors are: some developers spread their resources thoruh
> many different programs and projects (very close each other (see Piklab and
> Pikdev) )
Alain
Ok, this rules out usb permission problem.
> Unfortunately, I do not have now any more solutions in mind. Thus, I will
> probably turn to Piklab! It seems to be really good (as far as I have seen
> at a glance). And I hope that I can use it! I can also create the .hex file
> in MPLAB (in wine) and then write the PIC with the pk2cmd. No matter what it
> takes, I will not turn to Windows!! ;-)
Piklab does not support pk2cmd. In fact, it does not support PICKit 2
firmware version 2. It only supports the old PICkit 2 firmware version 1.
Piklab has many functionality beyond Pikdev. But in terms of PICkit 2
support, it is a pity that Piklab still does not support PICKit 2.
http://piklab.sourceforge.net/
--
Xiaofan http://mcuee.blogspot.com
Actually, Microchip is far more receptive to the open source community than
most companies. That's why I was willing to collaborate with them. I *never*
would do such work for Microsoft. I think Microchip is owed a well-deserved
thank you for being so open and supportive of third party software. It shows
a very enlightened attitude that is far too rare in American corporations. It
also shows that they are focused on their customers' needs, not on gouging
customers for every nickel they could get. The world would be a far better
place if most companies where like that.
> Even a IDE develop requires too much and linux doesn't offer the same
> prerspectives as microsoft,
>
That's because Windows is a mono-culture, whereas Linux has many different
distributions that differ in various ways. Choice is a Good Thing.
I've given some thought to developing an IDE and I think QT version 3 would be
the best choice for a GUI toolkit. Unfortunately I lack the time to persue it
further, but I'd like to help anyone who does. Anyone interested?
Jeff
(Totally off-topic comment: If you can't write cross-platform code, you
shouldn't write code.)
See dates, copyright and contributors list.
>
> Anyaway, there is a specific reason? From my point of view Piklab seems
> well supported than Pikdev (but it's just my impression)
I have stopped the development of important features after the fork for two
reasons: The first one is I was not pleased by this fork, but the most
important one is the development of my C compiler for pic18 devices (cpik).
However, since cpik is now perfectly usable, a pikdev 1.2 will be available
soon (I have to package it) with improved support of C language.
But the key problem is I do not have enough time to do all I wish to do.
Alain
I am pretty sure it can works on ANY recent distribution .
> Nevertheless, I also prefer to build applications from sources and this is
> what I have done this time with pk2cmd, too. I think, it would be good to
> un-install and then build again the pk2cmd sources, just in case something
> wrong has happened there.
OK, let know us the results.
Alain
Ok, this rules out usb permission problem.
Piklab does not support pk2cmd. In fact, it does not support PICKit 2
firmware version 2. It only supports the old PICkit 2 firmware version 1.
Piklab has many functionality beyond Pikdev. But in terms of PICkit 2
support, it is a pity that Piklab still does not support PICKit 2.
http://piklab.sourceforge.net/
You are right. Actually Nicolas list you as the author as well.
http://piklab.sourceforge.net/devel.php
I am listed as a contributor since I did a lot of tests for Piklab. But
to be honest, I have not really used Piklab since early 2008. That was
when the development of Piklab slowed down by a lot. We were trying
to support PICKit 2 version 2 firmware in December 2007 together
with Hector Martin.
>> Anyaway, there is a specific reason? From my point of view Piklab seems
>> well supported than Pikdev (but it's just my impression)
>
> I have stopped the development of important features after the fork for two
> reasons: The first one is I was not pleased by this fork,
I am not so sure what happened at the time of the fork. But I think
this happens quite often in the open source world.
> but the most
> important one is the development of my C compiler for pic18 devices (cpik).
> However, since cpik is now perfectly usable, a pikdev 1.2 will be available
> soon (I have to package it) with improved support of C language.
Glad to know that.
> But the key problem is I do not have enough time to do all I wish to do.
>
I think that is the major issue for every one. We all have bills to pay
and better things to do in life. ;-)
The development of Piklab has also significantly slowed down since
Nicolas has a new job and does not have much time on the project.
It is much better if there are a team of developers, testers and
a vibrant user community. Unfortunately it is not so easy for
project like Pikdev and Piklab.
Right now I put my main attention at ARM MCUs and OpenOCD
projects. Again I am not a coder but I can help on quite some
issues like testing and documentation side. Being OS neutral,
I can help on both Linux and Windows.
http://openocd.berlios.de/web/
https://lists.berlios.de/pipermail/openocd-development/2009-July/thread.html
--
Xiaofan http://mcuee.blogspot.com
Yay!
>
> But the key problem is I do not have enough time to do all I wish to do.
>
Trust me, I know the feeling :-)
Jeff
(Totally off-topic comment: If you can't write cross-platform code, you
shouldn't write code.)
And not to rag on anyone in particular, but it seems that way too many who can
write code only for Windows have some really bizarre ideas about software. I
suspect that's because Microsoft provides tools that make it easy for script
kiddies to "write code".
If you want someone who can produce Really Good Code, get someone who can
write a compiler :-)
Jeff