Difference between revisions of "Directions for Starting New MPLAB Project"

From Mech
Jump to navigationJump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
* Open MPLAB IDE.
* Open MPLAB IDE.
<br clear=all>
<br clear=all>
* Choose <i>Configure>Select Device</i>. In the Device dialog, select the PIC you are using from
* Choose <i>Configure>Select Device</i>. In the Device dialog, select the PIC you are using from the list if it’s not already selected. The lights show which software is supported for that PIC.
[[Image:MPLAB_DeviceConfigure.bmp|thumb|300 px|left]]
the list if it’s not already selected. The lights show which software is supported for that PIC.
<br clear=all>
[[Image:MPLAB_DeviceConfigure.bmp|thumb|300 px|Device Configure]]
* Choose <i>Project>Project Wizard</i>. Click <b>Next</b>
[[Image:MPLAB_ProjectWizardStart.bmp|thumb|300 px|left]]
<br clear=all>
* Select the device from the drop down menu. Click <b>Next</b>
[[Image:MPLAB_ProjectWizardDevice.bmp|thumb|300 px|left]]
<br clear=all>
* Select the Microchip PIC32 C-Compiler Toolsuite from the drop down menu. Click <b>Next</b>
[[Image:MPLAB_ProjectWizardToolsuite.bmp|thumb|300 px|left]]
<br clear=all>
* Create a new project in the folder where you want the project and c files to be stored. Click <b>Next</b>
[[Image:MPLAB_ProjectWizardNewProject.bmp|thumb|300 px|left]]
<br clear=all>
* Add the c files (if you already have some) in the folder to your project. Click <b>Next</b>
[[Image:MPLAB_ProjectWizardAddFiles.bmp|thumb|300 px|left]]
<br clear=all>
* Click <b>Finish</b>
[[Image:MPLAB_ProjectWizardFinish.bmp|thumb|300 px|left]]
<br clear=all>

The project has now been created. It will not compile because it does not know where the common header files of the Microchip Framework are located.
* Choose <i>Project>Build Options>Project</i>.
* In the directories tab, choose the Include Search Path.
* Add a New path - Browse to find the include folder (<Installation Folder> \pic32_solutions\Microchip\Include)
* Add a New path - type a period '.' (this will search the project folder)
* Click <b>Apply</b> and then <b>OK</b>
[[Image:MPLAB_IncludeSearchPath.bmp|thumb|300 px|left]]
<br clear=all>
<br clear=all>
* Choose <i>Project>Project Wizard</i>

Latest revision as of 08:47, 14 July 2009

  • Open MPLAB IDE.


  • Choose Configure>Select Device. In the Device dialog, select the PIC you are using from the list if it’s not already selected. The lights show which software is supported for that PIC.
MPLAB DeviceConfigure.bmp


  • Choose Project>Project Wizard. Click Next
MPLAB ProjectWizardStart.bmp


  • Select the device from the drop down menu. Click Next
MPLAB ProjectWizardDevice.bmp


  • Select the Microchip PIC32 C-Compiler Toolsuite from the drop down menu. Click Next
MPLAB ProjectWizardToolsuite.bmp


  • Create a new project in the folder where you want the project and c files to be stored. Click Next
MPLAB ProjectWizardNewProject.bmp


  • Add the c files (if you already have some) in the folder to your project. Click Next
MPLAB ProjectWizardAddFiles.bmp


  • Click Finish
MPLAB ProjectWizardFinish.bmp


The project has now been created. It will not compile because it does not know where the common header files of the Microchip Framework are located.

  • Choose Project>Build Options>Project.
  • In the directories tab, choose the Include Search Path.
  • Add a New path - Browse to find the include folder (<Installation Folder> \pic32_solutions\Microchip\Include)
  • Add a New path - type a period '.' (this will search the project folder)
  • Click Apply and then OK
MPLAB IncludeSearchPath.bmp