Searching \ for '[PIC] Mini Howto: Microchip tools under Linux with' 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: 'Mini Howto: Microchip tools under Linux with'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] Mini Howto: Microchip tools under Linux with'
2005\09\06@230509 by Chen Xiao Fan

face
flavicon
face
Sorry for the cross posting but I think this may be
useful to both lists.

After installing gpasm/gpsim/sdcc CVS versions on my FC4 box
(much easier than installation on Ubuntu three months ago), I
think maybe it is also useful to install MPLAB with Wine on
this FC4 box. Therefore I started the Wine installation yesterday
evening. It is not as smooth as my Ubuntu installation but I think
I made it finally.

Regards,
Xiaofan

----------------------------------------------
Xiaofan Chen
R&D Engineer, Photoelectric Sensor Development
Pepperl+Fuchs Singapore
http://www.pepperl-fuchs.com
Signals for the world of automation
--------------------------------------------

1. Test System
Dell 600M Notebook with FC4 installed.
[mcuee@localhost wine]$ uname -a
Linux localhost.localdomain 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56
EDT 2005 i686 i686 i386 GNU/Linux

The same tests have been done on Ubuntu 5.04 (Debian based) AMD 64
based desktop. The installation will take about 2 hours with a fast
broadband connection (2Mbps Cable Modem here).

2. Installation of Wine rpms as root
Three files are necessary. They can be downloaded from Wine-hq. From there,
follow
the links to get winetools and xdialog (needed by winetools).
-rw-rw-r--  1 mcuee mcuee 14321924 Sep  6 20:51
wine-20050524-1fc3winehq.i686.rpm
-rw-rw-r--  1 mcuee mcuee   282244 Sep  6 20:50 winetools-2.1.2-jo.i386.rpm
-rw-rw-r--  1 mcuee mcuee   360778 Sep  6 20:51
xdialog-2.1.2-1.1.fc3.rf.i386.rpm

For the Ubuntu systems, install the Ubuntu packages.

3. Configuration of Wine using winetools
Basically followed exactly the sequences of winetools.

3.1 Base setup
1) Launch winetools by running wt2 from BASH as a normal user.
2) Create fake windows drive
3) Install true type fonts (ARIAL32)
arial32.exe download from the default Sourceforge site failed. I manually
downloaded it from google search and put it to ~/winetools/fonts.
3) Install DCOM 98
4) Install MFC4 dll
5) Install IE6, be patient of the long process
This is one of the most critical step. Luckily I have no problems.
6) optional printer installation (skipped)

3.2 more system softwares
1) Windows installer
This is another critical step to install MPLAB later.
On FC4, It failed with a permission problem. I need to do the following to
fix the problem.

Change the ownership of /usr/lib/msiexece.exe.so to the current user
by issuing the following command as root (my user id is mcuee):
chown mcuee:mcuee msiexece.exe.so (chmod 777 does not work)

The retry again and it will be okay. You can change the ownership
back after this.

There was no problem on Ubuntu with this last time.

2) Install VB5/VB6 runtime and VC6 runtime
3) Install MDAC 2.8 and Jet 4.0 SP6
4) Install MSXML4.0 SP2 (seems to be failed but does not cause problems)
There was no problem on Ubuntu with this last time.

5) Windows script host 5.6
6) Common control 5.0

3.3 Optional true type fonts (not necessary, skipped)
I install quite some fonts last time on Ubuntu. This time
I do not have time and skip the installation.

3.4 Optional tested software (not necessary, skipped)

I install quite some softwares last time on Ubuntu. This time
I do not have time and skip the installation.

To do: to recommend some more tested software

4. Installation of MPLAB/MPLAB C18/MPLAB C30

4.1 Download the following files from Microchip websites
-rw-rw-r--  1 mcuee mcuee  9631082 Sep  6 21:30 C30_v132.zip
-rw-rw-r--  1 mcuee mcuee 32576258 Sep  6 21:33 MP721_full.zip
-rw-rw-r--  1 mcuee mcuee 18600365 Sep  6 21:34 MPLAB-C18-Beta-v3_00b1.exe

I was using C30_v132, MPLAB 7.10/7.20 and MPLAB C18 2.4 student
edition for my Ubuntu installation.

4.2 Installation of MPLAB

4.2.1 Unzip the MPLAB zip archive and run setup (wine setup.exe) as
normal user.

4.2.2 Say no to all the hardware installation instructions in the end of
the installation. The pickit1.dll will fail to register and all MPLAB
related hardware will not work under Wine anyway.

4.2.3 MPLAB C18 3.0 beta
Last time I was using the C18 2.40 student edition. The installation failed
but I copied the installation from Windows partition and it will work.

There is no problem with MPLAB C18 beta 3.0 installation this time on FC4.

4.2.4 MPLAB C30 1.32 installation
There is no problem with MPLAB C30 installation.

5. Post install
Set up the paths under Wine or put it do a batch file under the fake c:\
To do: add more details

6. running MPLAB
6.1) use wine
6.2) use fake "dos" environment
Type dos under BASH and you will go to a command prompt environment under
dos.
The go to MPLAB IDE directory and fire up MPLAB.

To do: add more details

7. Status
MPLAB IDE is not really very useful right now. MPLAB C18/C30/MPASM/MPASM30
are fully functional.

To do: add more details

8. Document history
Version 0.10: Initial release by Xiaofan Chen
(First name: Xiaofan Family name: Chen)
Email: xiaofan AT sg dot pepperl-fuchs dot com
Date: 07/09/2005

9. License
GNU Free Documentation License
To do: add more details

10. To do list:

1) To find a place to host this document, PICList is the first one.
PIClist.com and Microchip Forum will be the next.
2) To remove the bugs
3) To add more things

















2005\09\07@080942 by John Nall

picon face
Chen Xiao Fan wrote:

>> maybe it is also useful to install MPLAB with Wine on
>this FC4 box. Therefore I started the Wine installation yesterday
>evening. It is not as smooth as my Ubuntu installation but I think
>I made it finally.
>  
>
yum install wine

What could be simpler than that????

John

2005\09\07@092911 by Chen Xiao Fan

face
flavicon
face
Are you sure? Please be a bit more patient and only hit the reply
button after you read the whole email. Anyway, hopefully there
will be a day that install MPALB is just one command.

yum install MPLAB
or
sudo apt get install MPLAB.

However I guess that will not happen so fast.

Regards,
Xiaofan

--------------

John Nall wrote:
{Quote hidden}

2005\09\07@095255 by John Nall

picon face
Chen Xiao Fan wrote:

>Are you sure? Please be a bit more patient and only hit the reply
>button after you read the whole email.
>
Well, actually I did read the whole email before replying.  :-)  But I
installed WINE just the other day, and "yum install wine" was all it
took.  Granted, however, that one has to have the system set up so that
the correct repositories can be accessed.  I set up my FC4 system using
Stanton Finley's installation notes
(stanton-finley.net/fedora_core_4_installation_notes.html) and so I use
the set of repositories that he recommends.

That said, your efforts in not only attempting to get MPLAB working
under Linux, but also sharing the information, is very greatly appreciated.

John




2005\09\07@202751 by Chen Xiao Fan

face
flavicon
face
Okay it is my fault. I should have removed *Wine* there. Wine
installation itself is easy. Winetools is the greatest help to
Wine users. Before Winetools, I only managed to run notepad and
Winmine with Wine. :) For me it is even better than some commercial
product like CrossOver since a similar installation failed
under my friend's CrossOver-equipped Linux PC.

> maybe it is also useful to install MPLAB with Wine on
>this FC4 box. Therefore I started the *Wine* installation yesterday
>evening. It is not as smooth as my Ubuntu installation but I think
>I made it finally.
----> The *Wine* should have been removed or been replaced by
     "MPLAB under Wine" or something similar.

Sorry for my English. I think my English is quite okay as a non-native
speaker. However compared to native speakers, my English is really
lousy.

Regards,
Xiaofan


{Original Message removed}

2005\09\07@212109 by John Nall

picon face
Chen Xiao Fan wrote:

>> Sorry for my English. I think my English is quite okay as a non-native
>speaker. However compared to native speakers, my English is really
>lousy.
>  
>
Don't worry about it.  Your English is fine.  (And the native speakers
are not all that great.  For one thing, we tend to use a lot of
colloquial expressions which are so much gibberish unless you are
familiar with the culture; for another, there is a lot of misspelling
and bad grammar (and I am just as guilty as anyone else)).  So just keep
on keeping on (probably another colloquialism. :-)

John

2005\09\07@214851 by Chen Xiao Fan

face
flavicon
face
Sorry for the cross-posting again.

I have since corrected some small typos and put this
mini-howto to my member page at PIClist.com and Microchip
Forum MPLAB section.

My PIClitst.com member page (Thanks, James!)
http://www.piclist.com/techref/member/xiaofan-sg-/index.htm

Microchip Forum Post:
http://forum.microchip.com/tm.asp?m=112347

Further updates will be posted to these two sites. It will
take a while though since I am now testing some PICKit 2
and PICDEM FS USB Linux applications as well as Xwisp2
Linux support (Yes!!! Xwisp2 for Linux!!!).

Regards,
Xiaofan










2005\09\08@100651 by Dennis J. Murray

picon face
Don't apologize for your English, Chen!!  There are a LOT of native
English-speaking people who do a lot worse!!  In fact, I had several
working for me that couldn't put a readable monthly report together if
their life depended on it!  One had his Doctorate in Mathematics and the
other had a Masters in Computer Science!!

I can read your posts just fine!
Dennis

Chen Xiao Fan wrote:

{Quote hidden}

>{Original Message removed}

2005\09\08@101504 by Dennis J. Murray

picon face
Got a question on your post.  You mention Crossover as a commercial
product (which it is).  But the way you phrase your sentence, it appears
that WINE is not.  Is that true - am I reading too much into your
statement??  I thought WINE was a commercial product also (i.e. not part
of the GNU environment).

Am I wrong?  I thought you had to pay to get WINE?  I run a dual boot
PC, running WInXP and RHEL4, and would like to run WINE just to aid in
my migration away from Microsoft.  Your prior posts indicate a
reasonable degree of success in running Microchip software under WINE,
thus my interest in your experiences.

Thanks for your input.
Dennis

Chen Xiao Fan wrote:

{Quote hidden}

>{Original Message removed}

2005\09\08@102832 by Alex Harford

face picon face
On 9/8/05, Dennis J. Murray <spam_OUTdenbarbTakeThisOuTspamverizon.net> wrote:
> Got a question on your post.  You mention Crossover as a commercial
> product (which it is).  But the way you phrase your sentence, it appears
> that WINE is not.  Is that true - am I reading too much into your
> statement??  I thought WINE was a commercial product also (i.e. not part
> of the GNU environment).

I don't mean to step on Chen's toes here... but WINE is 'LGPL' (GNU
Lesser General Public License) so it's free to download.  The
difference between Lesser and the real GPL is that you can link to
LGPL code in a closed source product, GPL can only link to compatible
licenses (GPL and some others).

http://www.winehq.com/

Alex

2005\09\08@102928 by John Nall

picon face
Dennis J. Murray wrote:

> > Got a question on your post.  You mention Crossover as a commercial
> product (which it is).  But the way you phrase your sentence, it
> appears that WINE is not.  Is that true - am I reading too much into
> your statement??  I thought WINE was a commercial product also (i.e.
> not part of the GNU environment).

It wasn't my post, of course, but WINE is available at no charge.

John

2005\09\08@104409 by Dennis J. Murray

picon face
Thanks to all that replied!!  I was REALLY under the impression that
WINE was a commercial product and that's why I had not tried it!!

Gonna have to download it and start getting familiar with it!!

Thanks again!
Dennis

2005\09\08@111401 by Jan Wagemakers

flavicon
face
"Dennis J. Murray" <.....denbarbKILLspamspam@spam@verizon.net> schreef:

> Got a question on your post.  You mention Crossover as a commercial
> product (which it is).  But the way you phrase your sentence, it appears
> that WINE is not.  Is that true - am I reading too much into your
> statement??  I thought WINE was a commercial product also (i.e. not part
> of the GNU environment).

<http://www.fsf.org/licensing/essays/words-to-avoid.html#Commercial>


--
Met vriendelijke groetjes         - Jan Wagemakers -

... When we speak of free software, we are referring to freedom, not price.
         -- GNU GENERAL PUBLIC LICENSE Version 2, June 1991

2005\09\08@205911 by Chen Xiao Fan

face
flavicon
face
Wine is for sure a great product and it is free and better yet
open source. The main objective to use wine for now is to use
the MPLAB C18 and C30 under Linux sometimes without rebooting
to Windows. The original motivation to try Wine was that I could
not build SDCC and gpsim at that time so I started with Wine.
Gputils are quite stable already and I used it before under Windows.

Linux C30 RPM or DEB binary packages can be downloaded from
http://noel.feld.cvut.cz/dspic/
http://forum.microchip.com/tm.asp?m=94243 (uChip Forum post)
But I think the libraries are missing. I will check out this later
since my dsPIC experiment has not really started.

For the other things, gputils/gpsim/sdcc have both native Linux versions
as well as Windows and are recommended over Wine. Within the past
four months (I started my Linux PIC exploration only in May this year),
tremendous progress has been made in this front. Just check out the
GNUPIC list and you will know. Remember to check out the CVS version
from time to time.

Some more status for my wine experiments:

MPLAB IDE project management is not working under Wine (broken support
of name pipe under Wine??). But there is the great Make as a good
alternative. There are free tools (MCC18 wrapper) to integrate C18
with Eclipse IDE (IMHO not really necessary) under Wine.

All hardware tools MPLAB supports (ICD2, PICKit 1, Promate II/III)
are not working under Wine due to broken serial/usb support under Wine.

Actually there are quite some other PIC development software which
will work under Wine. I will write a follow-up to the mini-howto
but it will take lower priority than my PICkit 2/Wisp628/PICDEM FS USB/
experiments. You are welcome to report your progress with Wine
here as well.

You can check out the PIClist.com archive of my previous posts.
Threads:
RE: [PIC] PIC development under Linux  with Wine
RE: [EE]  MCU and electronics development on Linux


Regards,
Xiaofan


-----Original Message-----
From: Dennis J. Murray [denbarbspamKILLspamverizon.net]
Sent: Thursday, September 08, 2005 10:44 PM
To: Microcontroller discussion list - Public.
Subject: Re: [PIC] Mini Howto: Microchip tools under Linux with Wine


Thanks to all that replied!!  I was REALLY under the impression that
WINE was a commercial product and that's why I had not tried it!!

Gonna have to download it and start getting familiar with it!!

Thanks again!
Dennis

2005\09\09@232516 by Chen Xiao Fan

face
flavicon
face
Some screen snapshots on the Ubuntu system (MPLAB 7.1, C18 2.40 and C30
1.32).

http://forum.microchip.com/tm.asp?m=112347

Regards,
Xiaofan

2005\09\10@173613 by Chetan Bhargava

picon face
I just received a lot of Ubuntu Linux CDs. They are free for grabs
locally (Milpitas, CA, USA). I can mail them for a small fee.

On 9/9/05, Chen Xiao Fan <.....xiaofanKILLspamspam.....sg.pepperl-fuchs.com> wrote:
> Some screen snapshots on the Ubuntu system (MPLAB 7.1, C18 2.40 and C30
> 1.32).


--
Chetan Bhargava
Web: http://www.bhargavaz.net
Blog: http://microz.blogspot.com

2005\09\11@031038 by Chen Xiao Fan

face
flavicon
face
The free Ubuntu CD Distribution System (free shipment as well!)
(http://www.ubuntulinux.org/support/documentation/faq/shipit/)
http://shipit.ubuntu.com/ is currently closed and will only be
open after Breezy Badger scheduled to be released in early
October. It also takes quite some time (4-6 weeks) so I think
your offer is good for the people in the States.

By the way, I was hitting by the bugs detailed here:
ubuntuforums.org/archive/index.php/t-696.html
or
http://ubuntuforums.org/archive/index.php/t-27709.html

Now my 2.6.10 kernel died after the "smart" update provide
by Synaptic. Luckily I still have the 2.6.12 Breezy kernel
working (I installed that for PICDEM FS USB CDC demo code).
I will turn off all kernel update after this incident!

It seems there is no solution to that bug now. Maybe I
would like to upgrade to Breezy Badger one month
after it is released.

Regards,
Xiaofan



{Original Message removed}

2005\09\11@032804 by Chetan Bhargava

picon face
It took a month for me to get the CDs. I didn't pay for the CDs so
they are free to be picked up. As I have to pay for individual
shipping, I would like to be entitled for a small fee.

I myself have been playing around with Ubuntu and have found that it
is by far the best distribution around.  I like the single CD
distribution where you install mini mun applications,
and add more apps when you need them. I have been using MPLAB with
wine and am very happy with it.

Regards,

Chetan Bhargava



On 9/11/05, Chen Xiao Fan <EraseMExiaofanspam_OUTspamTakeThisOuTsg.pepperl-fuchs.com> wrote:
{Quote hidden}

> {Original Message removed}

2005\09\11@040640 by Chen Xiao Fan

face
flavicon
face
I love Ubuntu as well. I stopped my Linux exploration in
late 2002 but restarted early this year. I played
with different distribution and finally choose Ubuntu 5.04.
It is very easy to set up and I like its one CD installation
as well. Now I use it as my primary Linux Desktop (dual boot
with Windows XP SP2) and roughly spent 50% time on each platform.
I should say like both. I installed Fedora Core 4 on the
other PC (a Dell 600M notebook) because most of the GNUPIC
developers use Redhat based system. Still I have not booted
FC4 enough time to pass my judgement. My previous Redhat
experience (Redhat 5/7/8/9) were not very pleasant. Maybe it
was because I happened to use the integer version and they
normally fixed it at the dot 2 versions. ;)-

As for MPLAB under wine, what is your main usage of it? To be
honest, I basically stopped the Wine experiment since
gputils/gpsim/sdcc are there. If I need to use C18,
normally I will boot back to Windows since the MPLAB
IDE itself is not really working under Wine. I have not
really into dsPIC yet.

Regards,
Xiaofan


{Original Message removed}

2005\09\11@043231 by Chetan Bhargava

picon face
I use Ubuntu on my dual P3 machine. I have Eagle, MPLAB and ARM
development toolchain on the machine. I like it for the following
reasons:

1. Single CD distribution (in contrast to three CDs of FC3)
2. Minimum apps installed
3. Ease of use and updates
4. Debian stability


At work I play with lots of *nix distributions including Fedora,
RedHat EL, slackware, Debian, FreeBSD, OpenBSD, NetBSD etc. So to test
a hardware platform I wold load a single CD of Ubuntu and have all the
tools.

I ordered about 50 CDs of Ubuntu one and a half months ago and today I
received them.  I intended to distribute among friends and colleagues.
After looking at your MPLAB on  Ubuntu thread, i decided to offer them
to piclist.

Regards,

Chetan Bhargava




On 9/11/05, Chen Xiao Fan <xiaofanspamspam_OUTsg.pepperl-fuchs.com> wrote:
{Quote hidden}

2005\09\12@193305 by Martin Klingensmith

flavicon
face
Chen Xiao Fan wrote:

{Quote hidden}

Xiofan,
One thing I just found was that Synaptic had sdcc and all the related
packages listed. I installed them and I will send a message to the list
if i get things working.

--
Martin Klingensmith
http://wwia.org/
http://nnytech.net/

2005\09\12@200832 by Chen Xiao Fan

face
flavicon
face
Hi Martin,

Some recomemdendations from my Linux PIC experiment on Ubuntu
regarding SDCC/GPSIM/GPUTILS:
*** Do not use the Ubuntu or Debian packages, old and trouble-making
!!!!****
*** Use the CVS version and update from time to time *****
*** Join GNUPIC and SDCC-user/SDCC-devel mailing list ***

For Fedora 4, the developers provide the RPM packages and
it is even easier but I still use the CVS version to have
the same set-up between my two Linus systems.

GPUtils is very stable now. Gpsim is also quite good but
my experience with gpsim is very limited (the examples
are broken). SDCC becomes usable for the 18F target (PIC16).
It can also be used for simple 16F target (PIC14). Still
I hope one day I can compile PICKit 2 firmware using
SDCC.

It was a pain to install GPSIM and SDCC from CVS version when
I firsted started this May, but thanks to people in the gpsim and
sdcc development teams, now the installation is almost
pain-free.

Regards,
Xiaofan

-----Original Message-----
From: Martin Klingensmith [@spam@martin-distlistsKILLspamspamnnytech.net]
Sent: Tuesday, September 13, 2005 7:33 AM
To: Microcontroller discussion list - Public.
Subject: Re: [PIC] Mini Howto: Microchip tools under Linux with Wine

Xiofan,
One thing I just found was that Synaptic had sdcc and all the related
packages listed. I installed them and I will send a message to the list
if i get things working.

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