- Developer Help
- Installing MPLAB X IDE
- What components are installed?
- Installing MPLABВ® XC Compilers
- Developer Help
- Do I have a 64-bit Linux installation?
- What about 64-bit distributions with multiarch support?
- What 32-bit libraries / packages do I need to install?
- Distribution Specific Notes
- Ubuntu 14.04 and later
- Fedora
- Mageia 4
- Package Installation
- Check Installation Status
- Installing Required Packages
- Developer Help
- Download MPLABВ® X Installer
- Run the Installer
- Run Installer
- Setup
- License Agreement
- Installation Options
- Select Applications
- Ready to Install
- Installing
- Permit Device Driver Installation
- Complete
- Untar and Run Installer
- Setup
- License Agreement
- Installation Directory
- Ready to Install
- Installing
- Reboot Advisory
- Complete
Developer Help
Installing MPLAB В® X Integrated Development Environment (IDE) and its compilers is as easy as any computer application. MPLAB X IDE and the MPLAB XC Compilers are each installed separately and each has an installer application you can download and launch. MPLAB X IDE and MPLAB XC Compilers install and run on the following computing platforms:
- Windows В®
- OS/X В®
- Linux В®
Installing MPLAB X IDE
Navigate to the MPLABВ® X home page and scroll down to the ‘Downloads’ tab, where you can download an installer and the release notes/user guide for your specific platform.
After downloading, run the installer, and follow the instructions on the installer dialogs.
For specific installation instructions, refer to the «MPLABВ® X IDE Release Notes / User Guide vX.XX» .
What components are installed?
MPLAB X IDE will install with the following features that are built into the application:
- A full-featured programmer’s text editor
- A project manager (visible as the Projects window).
- An assembler for Assembly Language Programming
- A debugger engine that provides breakpoints, single stepping, Watches windows and all the features of a modern debugger
- A software simulator for all PIC MCU and dsPIC DSC devices
- USB Drivers for all supported programmers and in-circuit debuggers
Installing MPLABВ® XC Compilers
Navigate to the «MPLAB XC Compilers» home page, then scroll down to the ‘Downloads’ tab, where you can select and download the XC Compilers installer for your operating system. You can install all versions of the XC compiler (XC8, XC16, and XC32) so you can be ready to develop for any Microchip MCU:
AVR and SAM Device Support
XC8 support for AVR MCUs and XC32 support for SAM MCUs is in development and new devices are added with every release of MPLAB X and XC Compiler version.
After downloading, run each installer, and follow the installer dialogs to install each XC Compiler separately. The recommended installation choice for this training is the «Free» mode. Simply click through and accept all default settings.
The next time MPLAB X IDE is started, it will scan and locate all the newly installed XC compilers.
MPLAB X IDE and its XC Compilers are now installed and ready to use!
Источник
Developer Help
MPLABВ® X IDE and the MPLAB XC Compilers are 32-bit applications, so to run them on a 64-bit system with a 64-bit Linux distribution, you may need to install additional packages from your distribution’s repository.
For better or worse, there is still quite a bit of variation among 64-bit Linux distributions with respect to their support of 32-bit applications and exactly which libraries are installed or required by default. The information on this page will hopefully allow you to successfully install and run MPLAB X IDE and the MPLAB XC Compilers on a 64-bit Linux system.
Do I have a 64-bit Linux installation?
You can determine whether you are running a 64-bit version of Linux by running the following command in a terminal:
If the output has «64» at the end (e.g. x86_64), then you have a 64-bit system.
What about 64-bit distributions with multiarch support?
64-bit versions of Debian based distributions such as Ubuntu, Linux Mint and their derivatives, and perhaps some others now include multiarch support. Ideally, this means that you don’t need to install ia32-libs, though you may still require some 32-bit versions of specific libraries.
You can determine if a 64-bit Debian based distribution has multiarch support by running the following command in a terminal:
If the output is i386 you have multiarch support and don’t need to install the ia32-libs 32-bit runtime libraries, though you will probably need to install other 32-bit libraries.
What 32-bit libraries / packages do I need to install?
MPLAB X IDE requires the libraries listed below. The MPLAB XC compilers require a subset of these libraries, so if you install them for MPLAB X IDE, you will be all set to use the MPLAB XC compilers as well.
Package | Description | Libraries |
ia32-libs | 32-bit runtime libraries. Only for 64-bit distributions without multiarch support | |
libc6:i386 | Embedded GNU C Library | libc.so, libdl.so, libm.so, libpthread.so, librt.so |
libx11-6:i386 | X11 client-side library | libX11.so |
libxext6:i386 | X11 miscellaneous extension library | libXext.so |
libstdc++6:i386 | GNU Standard C++ Library | libstdc++.so |
libexpat1:i386 | XML parsing C library | libexpat.so |
Distribution Specific Notes
Ubuntu 14.04 and later
libc6:i386 is the only one of these packages you will find if you are using Synaptic. These must be installed from the command line using apt-get:
sudo apt-get install libc6:i386 libx11-6:i386 libxext6:i386 libstdc++6:i386 libexpat1:i386
Fedora
If you try to install without the required libraries, the installer will quit without any warning messages.
Tested on versions 20 and above.
sudo dnf install libX11.i686 libXext.i686 libgcc.i686 libstdc++.i686 expat.i686
Mageia 4
Installer script can’t detect 32 bit libraries on this platform.
Work around suggested by a user:
In the installation script function ‘check32BitLibraries()’ search for:
echo Check for 32 Bit libraries
out=0
for lib in $@
do
ldconfig -p | grep $lib | grep 386 > /dev/null
if [ $? -ne 0 ]; then
if [ $out -eq 0 ]; then
echo These 32 bit libraries were not found and are needed for MPLAB X to run:
and change
ldconfig -p | grep $lib | grep 386
to
ldconfig -p | grep $lib | grep -v x86-64
to enable detection.
According to the developers, a fix similar to this will be in the version 2.25 installer script.
Package Installation
Check Installation Status
You may already have one or more of these installed on your system. To determine whether a package is installed on a Debian based distribution, run the following command in a terminal:
For example: dpkg -s libexpat1:i386
For rpm based systems, the command is:
Installing Required Packages
On Debian based systems (e.g. Ubuntu, Mint) packages may be installed with apt-get in a terminal window:
sudo apt-get install package1 package2 packageN
Or they may be installed from your distribution’s graphical package manager such as Synaptic, Muon, or the Ubuntu Software Center.
Источник
Developer Help
64-bit Windows is required for reasonable performance using MPLAB В® X IDE. MPLAB X IDE can run on a 32-bit Windows installation, but will likely experience slower performance. It is recommended to update the operating system to 64-bit Windows prior to installing MPLAB X IDE.
Download MPLABВ® X Installer
Run the Installer
Choose your operating system from the tabs below:
Run Installer
Setup
Click Next >.
License Agreement
Click the I accept the agreement radio button.
Click Next >.
Installation Options
By default, MPLAB В® X IDE will be installed at C:\Program Files (x86)\Microchip\MPLABX or C:\Program Files\Microchip\MPLABX as of v5.45. If you would prefer a different directory, click on the folder icon to the right of the text box and select the desired installation location.
If you don’t have an internet connection, select No Proxy. Otherwise, select Use System Proxy Settings.
Click Next >.
Select Applications
If you only want to install MPLAB X IDE or MPLAB IPE, check or uncheck the appropriate boxes. Generally, you should install both programs.
Select the device families you want to be installed. Selecting only what you want makes the installation smaller. You can always run the installer again to add other device families or use the MPLAB Pack Manager to install a single device family pack.
Click Next >.
Ready to Install
Click Next >.
Installing
Wait until the installer has finished installing all components of the IDE.
Permit Device Driver Installation
The USB device drivers are required to communicate with Microchip’s hardware development tools.
Check the Always trust software from Microchip Technology box to prevent this dialog from appearing in the future.
Complete
Leave the box checked if you want to have your web browser opened to the Microchip MPLAB XC compiler download page to download a compiler for use with MPLAB X IDE.
Uncheck the box if you already have a compiler or want to download one later.
Click Finish.
Installation is complete. There will be icons for MPLAB X IDE and MPLAB IPE on the desktop. There will also be launchers in the Windows/Start menu under All Programs > Microchip > MPLAB X IDE.
If you have already installed MPLAB X IDE, but are unable to communicate with our USB connected hardware tools, see step 9 of the installation instructions below for a possible solution.
If you are running a 64-bit distribution without multiarch support, you may need to install dependencies before you can run the installer.
Untar and Run Installer
Navigate to the directory where you downloaded the file and extract the shell script from the .tar file by running the following command:
You may need to make the file executable. If so, run the command:
Then as root or using sudo, run the installer:
If you have problems running the graphical installer, you can run the installer in text mode instead by specifying «text» as the mode parameter value (where 2.XX is the installer version):
sudo ./MPLABX-vX.XX-linux-installer.sh --mode text
Setup
Click Next >.
If you don’t have Java or the open source IcedTea installed, the installer will run in text mode in the terminal. You don’t need to install Java for MPLAB X IDE to run. A special version of Java will be installed in the mplabx directory exclusively for use by MPLAB X IDE. It will not interfere with existing Java or IcedTea installations.
License Agreement
Click the radio button next to «I accept the agreement».
Click Next >.
Installation Directory
By default, MPLAB X will be installed at /opt/microchip/mplabx. If you would prefer a different directory, click on the folder icon to the right of the text box and select the desired installation location.
Click Next >.
Ready to Install
Click Next >.
Installing
Wait until the installer has finished installing all components of the IDE.
Reboot Advisory
Click OK.
Complete
Click Finish.
Installation is complete.
The package was installed into: /opt/microchip/mplabx
The executables reside in: /opt/microchip/mplabx/mplab_ide/bin
For Linux distributions that use systemd, the systemd-udevd unit may be setup to avoid inter-process communications via sockets for security reasons. Recently Ubuntu 18.04LTS has been shipped in this way. This is a change from 17.10. Other distributions like Manjaro are also shipped with blocked inter-process communications via systemd. MPLAB X IPE and IDE rely on the systemd-udevd unit for plug and play. MPLAB X software has udev rules that allow a program to run on plug-and-play notifications. This program relies on sockets to communicate with MPLAB X IDE and IPE. So, to have working plug-and-play in MPLAB X software, you need to re-enable socket communications.
You can do this by adding an override file for systemd-udevd.
$ sudo systemctl edit systemd-udevd
Источник