CCS, Inc. - How do I get CCS to work inside MPLAB® IDE_.pdf

7
CCS, Inc. - How do I get CCS to work inside MPLAB® IDE? http://www.ccsinfo.com/faq.php?page=ccs_mplab[30/08/2014 07:39:40 p.m.] Search: Content Products Log In Cart Contents Support Technical Support Compiler Registration Maintenance & Renewals FAQs Customer Forums Video Tutorials Reference Data Sheets Return/Repair Development Tools Compilers Programmers & Debuggers Development Boards & Kits Internet Modules Books & Publications Development Tools Selector Video Tutorials Home » Support » FAQ » How do I get CCS to work inside MPLAB ® IDE? Frequently Asked Questions How do I get CCS to work inside MPLAB ® IDE? This FAQ will show how to create a simple project for the ex_sqw.c sample provided with the compiler. After you have success creating this project then you should not have problems creating projects with your own code. 1. Make sure CCS is installed correctly on your PC. Try compiling an example program provided with the compiler to verify it works. 2. Verify that MPLAB installed. 3. If you haven't done so already, download and install the CCS MPLAB plugin 4. Start MPLAB ® , verify that the latest CCS Plug-in is installed in MPLAB by selecting Help->About MPLAB IDE... This will open a dialog showing all the installed plug-ins. Look for a plug-in labeled Suite-CCSPIC. In the right column it will show the version of the plug-in, make sure it is the latest version (goto www.ccsinfo.com/downloads/ to verify the version CCS has available) Products Downloads Shop Support Design Services Company

Transcript of CCS, Inc. - How do I get CCS to work inside MPLAB® IDE_.pdf

  • CCS, Inc. - How do I get CCS to work inside MPLAB IDE?

    http://www.ccsinfo.com/faq.php?page=ccs_mplab[30/08/2014 07:39:40 p.m.]

    Search: Content Products

    Log In Cart Contents

    SupportTechnical SupportCompiler RegistrationMaintenance & RenewalsFAQsCustomer ForumsVideo TutorialsReference Data SheetsReturn/Repair

    Development ToolsCompilersProgrammers & DebuggersDevelopment Boards & KitsInternet ModulesBooks & Publications

    Development ToolsSelector

    Video Tutorials

    Home Support FAQ How do I get CCS to work inside MPLAB IDE?

    Frequently Asked QuestionsHow do I get CCS to work inside MPLAB IDE?

    This FAQ will show how to create a simple project for the ex_sqw.c sample provided with the compiler.After you have success creating this project then you should not have problems creating projects withyour own code.

    1. Make sure CCS is installed correctly on your PC. Try compiling an example program providedwith the compiler to verify it works.

    2. Verify that MPLAB installed.

    3. If you haven't done so already, download and install the CCS MPLAB plugin

    4. Start MPLAB, verify that the latest CCS Plug-in is installed in MPLAB by selecting Help->AboutMPLAB IDE... This will open a dialog showing all the installed plug-ins. Look for a plug-in labeledSuite-CCSPIC. In the right column it will show the version of the plug-in, make sure it is the latestversion (goto www.ccsinfo.com/downloads/ to verify the version CCS has available)

    Products Downloads Shop Support Design Services Company

    https://www.ccsinfo.com/loginDirect.phphttps://www.ccsinfo.com/loginDirect.phphttp://www.ccsinfo.com/shopping_cart.phphttp://www.ccsinfo.com/shopping_cart.phphttp://www.ccsinfo.com/http://www.ccsinfo.com/content.php?page=technical-supporthttp://www.ccsinfo.com/register.phphttp://www.ccsinfo.com/renewals.phphttp://www.ccsinfo.com/faq.phphttp://www.ccsinfo.com/forum/http://www.ccsinfo.com/content.php?page=video_tutorialshttp://www.ccsinfo.com/content.php?page=devicedatasheetshttp://www.ccsinfo.com/rma.phphttp://www.ccsinfo.com/content.php?page=compilershttp://www.ccsinfo.com/content.php?page=programmers-debuggerhttp://www.ccsinfo.com/content.php?page=development-kitshttp://www.ezweblynx.com/http://www.ccsinfo.com/content.php?page=bookshttp://www.ccsinfo.com/ccs-tool-selector.phphttp://www.ccsinfo.com/ccs-tool-selector.phphttp://www.ccsinfo.com/content.php?page=video_tutorialshttp://www.ccsinfo.com/videos/QuickStartVideo.wmvhttp://www.ccsinfo.com/http://www.ccsinfo.com/content.php?page=technical-supporthttp://www.ccsinfo.com/faq.phphttp://www.ccsinfo.com/downloads/mplab-ccs-plugin-install.exehttp://www.ccsinfo.com/downloads/http://www.ccsinfo.com/downloads.phphttp://www.ccsinfo.com/ccs-product-catalog.phphttp://www.ccsinfo.com/content.php?page=technical-supporthttp://www.ccsinfo.com/custeng.php?ce=mainhttp://www.ccsinfo.com/content.php?page=about

  • CCS, Inc. - How do I get CCS to work inside MPLAB IDE?

    http://www.ccsinfo.com/faq.php?page=ccs_mplab[30/08/2014 07:39:40 p.m.]

    5. Start MPLAB's Project Wizard by selecting Project->Project Wizard:

    You will then be greeted with the Wizard splash screen:

    Press NEXT to continue

    6. Select the device you wish to compile for and press NEXT to continue:

  • CCS, Inc. - How do I get CCS to work inside MPLAB IDE?

    http://www.ccsinfo.com/faq.php?page=ccs_mplab[30/08/2014 07:39:40 p.m.]

    7. The next screen of the wizard will ask you which build suite you wish to use for your project.Select the tool suite labeled CCS C Compiler for PIC10/12/14/16/18/24/dsPIC30/dsPIC33. If youdo not see this option then the plug-in was not installed correctly.Your tool-suite select screen should look like this:

    Verify the location field is where you installed the compiler. Press NEXT to continue.

    8. The next step of the New Project Wizard will ask you what to call the project and where to savethe associated project files. Since we are creating a project of ex_sqw.c then we shall call theProject Name ex_sqw and save the project files to the examples folder C:\program

  • CCS, Inc. - How do I get CCS to work inside MPLAB IDE?

    http://www.ccsinfo.com/faq.php?page=ccs_mplab[30/08/2014 07:39:40 p.m.]

    files\picc\examples.This is assuming you installed the compiler to the default location. If you installed it into a differentlocation then please put that location there

    When done your screen should look like this:

    Press NEXT to continue

    9. The next step of the New Project Wizard asks you what files you wish to include with the project.This will be the .C file containing your main(), or the .C file that you call from CCSC.EXE or PCWto compile. In our example this is ex_sqw.c - so open C:\program files\picc\examples, highlightex_sqw.c and press the Add >> button.When done your screen should look like this:

  • CCS, Inc. - How do I get CCS to work inside MPLAB IDE?

    http://www.ccsinfo.com/faq.php?page=ccs_mplab[30/08/2014 07:39:40 p.m.]

    Press NEXT to continue

    10. MPLAB Project Wizard will now give you a summary:

    Press FINISH to continue

    11. The Project Wizard will now close and MPLAB will be back to normal mode. In the ProjectWindow on the left side you will see EX_SQW.C listed under Source Files. Double-clicking on thisfile will open EX_SQW.C with the MPLAB Editor.Your screen should look like this:

  • CCS, Inc. - How do I get CCS to work inside MPLAB IDE?

    http://www.ccsinfo.com/faq.php?page=ccs_mplab[30/08/2014 07:39:40 p.m.]

    12. Now that the project is completed, you can compile it by selecting Project->Compile:

    OR you could press F10 to compile your project. The output window will display results of thecompile, and if successful it will say BUILD SUCCESSFULL:

  • CCS, Inc. - How do I get CCS to work inside MPLAB IDE?

    http://www.ccsinfo.com/faq.php?page=ccs_mplab[30/08/2014 07:39:40 p.m.]

    TranslateSite MapContact CCSTrademark InformationCopyright 2014 CCS, Inc.

    If there were any errors with your compile it would display the errors in the output window.

    Some more tipsIf creating your own project, in Step 8 specify your own project name (usually somethingdescriptive to help you find your project) and specify the directory where you want to save yourown files. (If the directory doesn't exist MPLAB will create it.) In Step 9 you can either use theAdd >> button to include your files or you can skip that screen of the wizard and add your filelater. To add your file later, right click on the Source Files of the Project Window and select AddFiles.

    If you add multiple .c files to the project, they will be compiled to .o files and then linked in thefinal stage. An already compiled .o file can be added to the project, and will be linked during theMake/Build process. If there is only one source in the project, it will be compiled and linked in onephase (no .o file will be created).

    Many project build options (such as output directory, include directories, output files generated,etc) can be changed by selecting "Project -> Build Options" from the MPLAB toolbar.

    If the compile fails with an error that says something like "Target chip not supported" or "Compilernot found" make sure that a.) you have the proper PIC selected (use "Configure -> Select Device"from the MPLAB toolbar), b.) the CCS C Toolsuite has been selected for this project (use "Project-> Set Language Toolsuite" from the MPLAB toolbar), c.) he path for CCSC.EXE is configuredcorrectly for your installation of the CCS C Compiler (use "Project -> Set Language ToolLocations" on the MPLAB toolbar) and d.) verify you have the latest CCS MPLAB Plug-ininstalled.

    If you are still having problems with MPLAB, try opening a DOS command prompt and invokingthe compiler from the command-line to verify that the compiler is working properly. See the CCSmanual for help on using the command line compiler.

    javascript:openWindow("open")http://www.ccsinfo.com/content.php?page=sitemaphttp://www.ccsinfo.com/content.php?page=contact-abouthttp://www.ccsinfo.com/content.php?page=trademarkhttp://www.microchip.com/devtoolthirdparty/ThirdpartyListing.aspx?catId=58239612-7638-433f-818f-3065d9a81369https://www.facebook.com/ccsinfo1https://twitter.com/ccsinfo1http://www.youtube.com/user/CCSIncTubehttp://www.ccsinfo.com/rss.xml

    ccsinfo.comCCS, Inc. - How do I get CCS to work inside MPLAB IDE?

    EucGhwP3BhZ2U9Y2NzX21wbGFiAA==: form1: search: input0:

    EucGhwP3BhZ2U9Y2NzX21wbGFiAA==: header_search_type: content