How to program PIC microcontrollers in Puppy?

Mathematical tools, physics simulators, CAD, CNC, etc.
Post Reply
Message
Author
jhsu
Posts: 137
Joined: Fri 02 Mar 2007, 04:52

How to program PIC microcontrollers in Puppy?

#1 Post by jhsu »

I have successfully programmed PIC microcontrollers with my PICSTART Plus programmer, but only in Windows (using MPLAB).

Has anyone here successfully programmed PIC microcontrollers with a PICSTART Plus in Puppy Linux? I just tried to install GPSIM, but it won't compile, because I'm lacking a number of other things needed. I tried to use MPLAB in WINE, but MPLAB seems to think I have MUCH less hard drive space available than I actually do.

jhsu
Posts: 137
Joined: Fri 02 Mar 2007, 04:52

#2 Post by jhsu »

I finally realized that my pup_save file was too small, so I expanded it. I was able to install MPLAB and use it. (I do get a few error messages, but the errors must be minor.)

My next stumbling block: How do I get MPLAB to recognize my PICSTART Plus programmer? I'm using a USB-to-serial cable converter. MPLAB doesn't recognize USB ports, just COM ports. How do I proceed now?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

type in a console:
modprobe usbserial

This should load a kernelmodule for USB to serial adapters.
Then the com ports in Wine should be redirected automatically.
It might not work with every product, in that case google for "usbserial" and the productname.
Sometimes this gives a solution.

Also search for "usbserial" here:
http://wellminded.com/puppy/pupsearch.html


If you find nothing, you might have to buy a serial card for one of the slots in your computer, those usually work reliable.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#4 Post by big_bass »

http://www.dattalo.com/gnupic/gpsim.html#reqs

thats really great news


I'll see if I can get it to compile

a lot of nice projects will follow

ubuntu uses the port for CNC control on linux using EMC

whats your plans with the PIC
around 1999 I wrote in qbasic from DOS
to control the parallel port
to first control 8 solid state relays
that switch larger relays of 220 volts
to turn on and of some equipment

then I built a stepper motor driver
and test program in qbasic

never tried writing to the port in linux
but if you need a stripped down puppy as a base for your project
try fat-free 2.16 works great on older hardware
http://www.puppylinux.asia/tpp/big_bass ... -dillo.iso



big_bass

User avatar
WN2A
Posts: 50
Joined: Sat 02 Jun 2007, 21:54
Location: USA

#5 Post by WN2A »

I have been using MPLAB 7.5.2 quite successfully with Wine 1.0 on Puppy 4.0. I have been using the IDE capability, but not the device programming-yet. Will be looking at this soon.
CWLab : Amateur Radio CW Program Moving to GNU/Linux!
[url]http://www.qsl.net/wn2a[/url]

brad_chuck
Posts: 286
Joined: Tue 16 Aug 2005, 03:47
Location: Appalachian Mountains

#6 Post by brad_chuck »

On my system I did not have to modprobe anything. USB serial just worked. Plug it in and see if you have a device named /dev/ttyUSB0

The problem is wine... In the "/root/.wine/dosdevices" folder you have link to /dev/ttyUSB0 and name it "com1" or some com port name. Note that this must be lower case.

I needed 8 of these at one time... windoes could not handle it but Puppy did.

What version of wine 1 do you use? I tryed MPLAB 7 ish about a year ago and it gave me some dumb warning and crashed.

We don't use pics but I have had to program a few here and there.

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

How install Mplax in Puppy

#7 Post by mister_electronico »

I installed MplabX in Debian and work Fine.

I try in Puppy 5.4 but nothing.

The problem is I can't install .run files in puppy.

chmod 777 MPLABX-v1.60-linux-installer.run

./MPLABX-v1.60-linux-installer.run

and nothing happens

I am installing JRE.

I other post read, for work the installation need a devxx file, but nothing again.

I think the problem is in this distribution, because time ago I can installed in puppy
5.28 but anyway don't work ok.


http://www.murga-linux.com/puppy/viewto ... 2f0c846378

Must be a program for install .run files but I don't know what is it.

So I hope someone can help me.

Thanks.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#8 Post by muggins »

Installs fine in lupu528.
Attachments
mplabx.jpg
(27.96 KiB) Downloaded 1057 times

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

Yes I know.

#9 Post by mister_electronico »

Thanks muggins for you reply, I know in lupu528 there aren't no problems.

But my question is for why is possible install MplabX.run files in lupu528 and not in my puppy slacko 5.4.

Because I want use Slacko 5.4. I think must be script file but still I don't know.

I Hope someone know . Thanks anyway.

Post Reply