Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 30 Jul 2014, 15:50
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
How to program PIC microcontrollers in Puppy?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
jhsu

Joined: 02 Mar 2007
Posts: 137

PostPosted: Sat 28 Feb 2009, 14:44    Post subject:  How to program PIC microcontrollers in Puppy?
Subject description: I have a PICSTART Plus programmer
 

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.
Back to top
View user's profile Send private message 
jhsu

Joined: 02 Mar 2007
Posts: 137

PostPosted: Sat 28 Feb 2009, 17:17    Post subject:  

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?
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 28 Feb 2009, 17:42    Post subject:  

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

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Sat 28 Feb 2009, 18:23    Post subject:  

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/fat-free-2.16-dillo.iso



big_bass
Back to top
View user's profile Send private message 
WN2A


Joined: 02 Jun 2007
Posts: 46
Location: USA

PostPosted: Sat 28 Feb 2009, 22:05    Post subject:  

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!
www.qsl.net/wn2a
Back to top
View user's profile Send private message 
brad_chuck

Joined: 15 Aug 2005
Posts: 284
Location: Appalachian Mountains

PostPosted: Mon 02 Mar 2009, 07:28    Post subject:  

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.
Back to top
View user's profile Send private message 
mister_electronico


Joined: 20 Jan 2008
Posts: 610
Location: Asturias_ España

PostPosted: Thu 21 Feb 2013, 17:13    Post subject: How install Mplax in Puppy  

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/viewtopic.php?t=78621&sid=44adce32a3a30ea3db25532f0c846378

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

So I hope someone can help me.

Thanks.
Back to top
View user's profile Send private message Yahoo Messenger 
muggins

Joined: 20 Jan 2006
Posts: 6673
Location: lisbon

PostPosted: Fri 22 Feb 2013, 13:56    Post subject:  

Installs fine in lupu528.
mplabx.jpg
 Description   
 Filesize   27.96 KB
 Viewed   484 Time(s)

mplabx.jpg

Back to top
View user's profile Send private message 
mister_electronico


Joined: 20 Jan 2008
Posts: 610
Location: Asturias_ España

PostPosted: Sat 23 Feb 2013, 10:31    Post subject: Yes I know.  

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.
Back to top
View user's profile Send private message Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0618s ][ Queries: 13 (0.0048s) ][ GZIP on ]