MPLAB ® X IDE User's Guide

Please download to get full document.

View again

of 330
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Published
es una practica de microcontroladores
    2011-2015 Microchip Technology Inc.DS50002027D MPLAB ®  X IDEUser’s Guide  DS50002027D-page 2    2011-2015 Microchip Technology Inc.Information contained in this publication regarding deviceapplications and the like is provided only for your convenienceand may be superseded by updates. It is your responsibility toensure that your application meets with your specifications.MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS ORIMPLIED, WRITTEN OR ORAL, STATUTORY OROTHERWISE, RELATED TO THE INFORMATION,INCLUDING BUT NOT LIMITED TO ITS CONDITION,QUALITY, PERFORMANCE, MERCHANTABILITY ORFITNESS FOR PURPOSE . Microchip disclaims all liabilityarising from this information and its use. Use of Microchipdevices in life support and/or safety applications is entirely atthe buyer’s risk, and the buyer agrees to defend, indemnify andhold harmless Microchip from any and all damages, claims,suits, or expenses resulting from such use. No licenses areconveyed, implicitly or otherwise, under any Microchipintellectual property rights unless otherwise stated. Note the following details of the code protection feature on Microchip devices: •Microchip products meet the specification contained in their particular Microchip Data Sheet.•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions.•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property.•Microchip is willing to work with the customer who is concerned about the integrity of their code.•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.”Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such actsallow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company’s quality system processes and procedures are for its PIC  ®    MCUs and dsPIC  ®   DSCs, K  EE  L OQ ®    code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. QUALITY MANAGEMENT SYSTEM CERTIFIED BY DNV ISO/TS 16949   Trademarks The Microchip name and logo, the Microchip logo, dsPIC, FlashFlex, flexPWR, JukeBlox, K EE L OQ , K EE L OQ  logo, Kleer, LANCheck, MediaLB, MOST, MOST logo, MPLAB, OptoLyzer, PIC, PICSTART, PIC 32  logo, RightTouch, SpyNIC, SST, SST Logo, SuperFlash and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.The Embedded Control Solutions Company and mTouch are registered trademarks of Microchip Technology Incorporated in the U.S.A. Analog-for-the-Digital Age, BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net, ECAN, In-Circuit Serial Programming, ICSP, Inter-Chip Connectivity, KleerNet, KleerNet logo, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, RightTouch logo, REAL ICE, SQI, Serial Quad I/O, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries.GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries.  All other trademarks mentioned herein are property of their respective companies.© 2011-2015, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. ISBN: 978-1-63277-614-3    2011-2015 Microchip Technology Inc.DS50002027D-page 3 MPLAB ®  X IDEUSER’S GUIDE Table of Contents Preface ...........................................................................................................................9Chapter 1. What is MPLAB X IDE? 1.1 Introduction ...................................................................................................131.2 An Overview of Embedded Systems ............................................................141.3 The Development Cycle ...............................................................................211.4 Project Manager ...........................................................................................221.5 Language Tools ............................................................................................231.6 Target Debugging .........................................................................................241.7 Device Programming ....................................................................................251.8 Components of MPLAB X IDE .....................................................................261.9 MPLAB X IDE Online Help ...........................................................................271.10 Other MPLAB X IDE Documentation ..........................................................281.11 Web Site .....................................................................................................301.12 MPLAB X Store ..........................................................................................301.13 MPLAB X IDE Updates ..............................................................................30 Chapter 2. Before You Begin 2.1 Introduction ...................................................................................................312.2 Install JRE and MPLAB X IDE ......................................................................312.3 Install the USB Device Drivers (For Hardware Tools) ..................................322.4 Connect to a Target (For Hardware Tools) ..................................................362.5 Install the Language Tools ...........................................................................362.6 Launch the IDE and View the Desktop .........................................................372.7 Access Information from the Start Page .......................................................382.8 Shop the MPLAB X Store .............................................................................402.9 Launch Multiple Instances of the IDE ...........................................................412.10 Launch Multiple Versions of the IDE ..........................................................43 Chapter 3. Tutorial 3.1 Introduction ...................................................................................................453.2 Setting Up the Hardware and Software ........................................................463.3 Creating and Setting Up a Project ................................................................473.4 Running and Debugging Code .....................................................................64 Chapter 4. Basic Tasks 4.1 Working with MPLAB X IDE Projects ...........................................................714.2 Create a New Project ...................................................................................724.3 View Changes In Desktop Panes .................................................................82  MPLAB ®  IDE User’s Guide DS50002027D-page 4    2011-2015 Microchip Technology Inc. 4.4 View or Make Changes to Project Properties ...............................................834.5 Set Up or Change Debugger/Programmer Tool Options .............................844.6 Set Up or Change Language Tool Options ..................................................854.7 Set Language Tool Locations .......................................................................864.8 Set Other Tool Options .................................................................................884.9 Create a New File .........................................................................................894.10 Add Existing Files to a Project ....................................................................914.11 Editor Usage ...............................................................................................924.12 Add and Set Up Library and Object Files ...................................................934.13 Set File and Folder Properties ....................................................................964.14 Set Build Properties ....................................................................................984.15 Build a Project ..........................................................................................1024.16 Run Code .................................................................................................1034.17 Debug Run Code ......................................................................................1044.18 Control Program Execution with Breakpoints ...........................................1064.19 Step Through Code ..................................................................................1094.20 Watch Symbol Values Change .................................................................1104.21 Watch Local Variable Values Change ......................................................1124.22 View/Change Device Memory (including Configuration Bits) ...................1134.23 Program a Device .....................................................................................116 Chapter 5. Additional Tasks 5.1 Performing Additional Tasks ......................................................................1195.2 Import MPLAB Legacy Project ...................................................................1205.3 Prebuilt Projects .........................................................................................1235.4 Loadable Projects, Files and Symbols .......................................................1245.5 Loadable Projects and Files: Bootloaders ..................................................1295.6 Library Projects ..........................................................................................1305.7 Other Embedded Projects ..........................................................................1315.8 Sample Projects .........................................................................................1315.9 Work with Other Types of Files ..................................................................1315.10 Modify or Create Code Templates ...........................................................1325.11 Switch Hardware or Language Tools .......................................................1345.12 Modify Project Folders and Encoding .......................................................1355.13 Speed Up Build Times ..............................................................................1365.14 Use the Stopwatch ...................................................................................1365.15 View the Disassembly Window ................................................................1375.16 View The Call Stack .................................................................................1375.17 View The Call Graph ................................................................................1385.18 View the Dashboard Display ....................................................................1395.19 Improve Your Code ..................................................................................1425.20 Control Source Code ................................................................................1425.21 Collaborate on Code Development and Error Tracking ...........................1455.22 Add Plug-In Tools .....................................................................................146  Table of Contents   2011-2015 Microchip Technology Inc.DS50002027D-page 5 Chapter 6. Advanced Tasks & Concepts 6.1 Introduction .................................................................................................1516.2 Speed Up MPLAB X IDE ............................................................................1516.3 Work with Multiple Projects ........................................................................1536.4 Work with Multiple Configurations ..............................................................1556.5 Create User Makefile Projects ....................................................................1586.6 Package an MPLAB X IDE Project .............................................................1666.7 Work with Third-Party Hardware Tools ......................................................1676.8 Log Data .....................................................................................................1676.9 Customize Toolbars ...................................................................................1686.10 Checksums ...............................................................................................1736.11 Configurations ..........................................................................................174 Chapter 7. Editor  7.1 Introduction .................................................................................................1757.2 Source Editor General Tasks: Quick Reference ........................................1757.3 Editor Usage ...............................................................................................1767.4 Editor Options .............................................................................................1787.5 Editor Red Bangs .......................................................................................1807.6 Code Folding ..............................................................................................1817.7 C Code Refactoring ....................................................................................185 Chapter 8. Project Files and Folders 8.1 Introduction .................................................................................................1878.2 Projects Window View ................................................................................1878.3 Files Window View .....................................................................................1888.4 Classes Window View ................................................................................1908.5 Favorites Window View ..............................................................................1908.6 File or Folder Name Restrictions ................................................................1918.7 Viewing User Configuration Data ...............................................................1918.8 Importing an MPLAB IDE v8 Project – Relative Paths ...............................1918.9 Moving, Copying or Renaming a Project ....................................................1918.10 Deleting a Project .....................................................................................192 Chapter 9. Troubleshooting 9.1 Introduction .................................................................................................1939.2 USB Driver Installation Issues ....................................................................1939.3 Cross-Platform (Operating System) Issues ................................................1939.4 Windows Operation System Issues ............................................................1939.5 NetBeans Platform Issues ..........................................................................1949.6 MPLAB X IDE Issues .................................................................................1959.7 Errors ..........................................................................................................1989.8 Forums .......................................................................................................202 Chapter 10. MPLAB X IDE vs. MPLAB IDE v8 10.1 Introduction ...............................................................................................20310.2 Major Differences .....................................................................................203
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks