MPLAB Setup Path

Publisher:静逸心境Latest update time:2020-09-08 Source: eefocusKeywords:MPLAB Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Everyone knows that when compiling a program in the MPLAB environment, c files, h files, files generated by the compiler, etc. will be ruthlessly placed in a project folder by the compiler.


A programmer who is a little bit particular may feel that the MPLAB project organization is a mess. So everyone thought of a way, which is to classify the files in the project into different folders to form a clear project tree.

 

Methods as below:

Right click "Project" -> "Build Options" -> "Directories" -> "Show directories for"

Select and set the output file path to "F:2.DCCP LED DriverOUTPUT"

Select and set the source file path to "F:2.DCCP LED Drivercode"

 

Compile and try to see if it succeeds. If it succeeds, then congratulations, you have learned how to do this.

 

But at the same time, I also want to ask a question: What if the path where the project is located changes? (For example, the project is copied from F drive to E drive) How can I make the project work wherever it is placed?

Next we need to introduce relative paths...

In your environment directory, just make the following changes

1. Remove the parent directory and add "./"

2. Change "" to "/"

 

for example:

Original path "F:2.DCCP LED DriverOUTPUT"

Now changed to "./OUTPUT"

Original path "F:2.DCCP LED Drivercode"

Now changed to "./code"

This method does not require you to create a folder when you start building a project, because if no folder is specified, the system will automatically assign one!

Keywords:MPLAB Reference address:MPLAB Setup Path

Previous article:Revolving door controlled by PIC microcontroller
Next article:The difference between 16 series and 18 series

Recommended ReadingLatest update time:2024-11-16 19:39

MPLAB X IDE v3.40 Software Installation Tutorial
Microchip official website MPLAB X IDE software download link: http://www.microchip.com/mplab/mplab-x-ide
[Microcontroller]
MPLAB X IDE v3.40 Software Installation Tutorial
PIC interrupt writing method (MPLAB X integrated development environment, XC compiler)
How to write interrupts under the XC compiler: According to the XC compiler user guide: It gives an example of how to write an interrupt with a stack error. void __attribute__((__interrupt__,__auto_psv__)) _StackError(void); If we write our own terminal service program, we can leave void __attribute__((__int
[Microcontroller]
PIC interrupt writing method (MPLAB X integrated development environment, XC compiler)
Getting Started with MPLAB X IDE Debug Simulation
Simulation is divided into hardware simulation and software simulation. I won’t go into details about the difference between hardware simulation and software simulation. I believe everyone has heard of these two concepts. What I want to introduce to you here is the function of "Set PC at Cursor". This function is re
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号