PIC32 Development on Mac OS X and Linux
http://www.paintyourdragon.com/uc/osxpic32/index.html
Download the required images:
http://www.paintyourdragon.com/uc/osxpic32/c32-build.tar.gz
http://ww1.microchip.com/downloads/en/DeviceDoc/MPLABC32-v105-Evaluation.exe
http://ww1.microchip.com/downloads/en/DeviceDoc/pic32-microchip-release-1-05-20090302-source.tar.gz
http://ww1.microchip.com/downloads/en/DeviceDoc/pk2cmdv1.20LinuxMacSource.tar.gz
Ubuntu 14.04.2+c32-build = not work~
After the following patch:
http://www.microchip.com/forums/m416697.aspx
But still have issue on bison 3.0 (Ubuntu 14.04). The general solution to this is to downgrade to bison 2.7. I don't want to try this on my working computer.
VirtualBox+Ubuntu8.04+c32-build = work!!
I setup a VirtualBox with Ubuntu8.04.
https://help.ubuntu.com/
Edit /etc/apt/sources.list, replace all the server with "old-releases.ubuntu.com".
Then install the required package:
apt-get updateThen I could complete the procedure without problem.
apt-get install bison cpp flex g++ gcc gettext patch patchutils
libncurses5-dev automake libtool build-essential libncurses5-dev
zlib1g-dev gawk ccache gettext libssl-dev xsltproc g++ zlib1g-dev gawk
libncurses5-dev
apt-get install wine libusb-dev
apt-get install openssh-server
Ubuntu 14.04.2 + Latest MPLab X IDE + My project
MPLAB- XC Compilers | Microchip Technology Inc.
http://www.microchip.com/mplab/compilers
Get Started with MPLAB® X IDE and Microchip Tools - Developer Help
http://microchip.wikidot.com/tls0101:start
Install the following:
Install MPLAB® X IDE - Developer Help
http://microchip.wikidot.com/install:mplabx
http://ww1.microchip.com/downloads/en/DeviceDoc/MPLABX-v3.26-linux-installer.tar
http://ww1.microchip.com/downloads/en/DeviceDoc/xc32-v1.31-linux-installer.run.tar
Execute the following to run MPLAB X IDE:
/opt/microchip/mplabx/v3.26/mplab_ide/bin/mplab_ide
I installed the JRE in /usr/java. (ref here)
(java need to be in $PATH, or manually make symbolic link /usr/bin/java to the newly installed JRE java binary)
or on Ubuntu16.04 install JRE directly by:
sudo apt install openjdk-8-jre
Windows 8 + Latest MPLab X IDE + My project
Install the following:
http://ww1.microchip.com/downloads/en/DeviceDoc/MPLABX-v3.26-windows-installer.exe
(It seems XC32 r1.4.0 has known issues, multiple definition of `_atexitptr')
http://ww1.microchip.com/downloads/en/DeviceDoc/xc32-v1.31-windows-installer.exe
http://ww1.microchip.com/downloads/en/DeviceDoc/harmony_v1_07_01_windows_installer.exe
MPLAB® Harmony Configurator (MHC) Installation ...
http://microchip.wikidot.com/harmony:mhc-installation
(2010/12/27) GnuWin32
http://gnuwin32.sourceforge.net/
http://gnuwin32.sourceforge.net/packages.html
Download and install the following to C:\Program Files (x86)\Microchip\MPLABX\v3.26\gnuBins:
http://iweb.dl.sourceforge.net/project/gnuwin32/sed/4.2.1/sed-4.2.1-setup.exe
http://nchc.dl.sourceforge.net/project/gnuwin32/grep/2.5.1-2/grep-2.5.1-2-bin.exe
http://heanet.dl.sourceforge.net/project/win32svn/1.8.15/Setup-Subversion-1.8.15.msi
(2011/03/17) win-bash - bash port for Windows
http://win-bash.sourceforge.net/
http://nchc.dl.sourceforge.net/project/win-bash/shell-complete/latest/shell.w32-ix86.zip
ONLY copy the sh.exe to C:\Program Files (x86)\Microchip\MPLABX\v3.26\gnuBins\GnuWin32\bin.
I have a Chinese Windows 8, but it seems MPLAB X doesn't support Chinese and the error message during building project become Chinese and not readable on MPLAB X. I tried changing the system language but not work.
This could be workaround by removing the locale C:\Program Files (x86)\Microchip\MPLABX\v3.26\gnuBins\GnuWin32\share\locale.
(Just rename doesn't work, don't know why)
(2016/10/07) I got missing java.exe on another newly Win7
Changes to port a project between Windows and Linux MPLAB
- Windows executables has suffix .exe, e.g. date.exe, while Linux doesn't
- Windows path separate with slash "\", while Linux with backslash"/". Sometimes file path might be written in Windows form, e.g in nbproject/configurations.xml:
..\..\harmony\framework\driver\ethmac\src\drv_ethmac_local.h
../../harmony/framework/driver/ethmac/src/drv_ethmac_local.h - Windows "make" can expand wildcard in double quote, while Linux doesn't. For example, Linux cannot handle the following:
cp -r "./foo/*" "./foobar"
I have double quote on every parameter and even some command, it cause problem when there are wildcard in it. - Windows "make" seems require additional escape char, while Linux doesn't. For example:
sed -i '/<\\/head>/ i\\' "header.inc"
http://www.paintyourdragon.com/uc/ubw32/index.html
https://www.microchip.com/development-tools
http://microchip.wikidot.com/tls0101:start
http://microchip.wikidot.com/tls0101:get-compiler
http://www.microchip.com/mplab/compilers
http://ww1.microchip.com/downloads/en/DeviceDoc/MPLABC32-v105-Evaluation.exe
http://ww1.microchip.com/downloads/en/DeviceDoc/pic32-microchip-release-1-05-20090302-source.tar.gz
http://ww1.microchip.com/downloads/en/DeviceDoc/pk2cmdv1.20LinuxMacSource.tar.gz
http://ww1.microchip.com/downloads/en/DeviceDoc/MPLABC32-v105-Upgrade.exe
http://ww1.microchip.com/downloads/en/DeviceDoc/MPLABX-v3.26-linux-installer.tar
沒有留言:
張貼留言