Using HitechC Compiler in MPLAB-IDE 1. Load the compiler: 1. Start MPLAB-IDE and select Project-》Install Language Tool as shown below |
2. In the pop-up Install Language Tool dialog box, the "Language Suite" option now shows Microchip. Click the arrow behind it to select the language. The tool I use is HI-TECH PICCME, so I choose "HI-TECH PICC". |
3. Next, select the calling path of the compiler component in "Tool Name". Here, "PICC Compiler" (C compiler), "PICC Assembler" (assembler) and "PICC Linker" (linker) all need to be set. Use "Browse" to select the calling path, and set the calling files of the above three components to PICC.EXE. Click "OK" to complete the setting. |
2. Choose a compiler: 1. Create a new project. The default "Language Tool Suite" column in the Edit Project dialog box is "Microchip". Change it to "HI-TECH PICC". |
2. Click "flasha[.hex]" in the project file box, and the "Node Properties" button will light up. Click to enter. |
3. Set node properties. Since FLASHA.C has other related source programs that need to be added, you should select "PICC Linker" in the "Language Tool" column. Usually we can choose: 1) Generate debug info: Display debug information; 2) Create map file: After selecting this option, we will see the usage of ROM and RAM; 3) Error file: displays error information; 4) Compile for MPLAB ICD: If you do not use ICD, you do not need to select this item. |
4. After the settings are completed, click "Add Node" to add a node. This project has two nodes: fla.c and flasha.c. Select the node and click "Node Properties" or double-click the node to enter the node property settings. |
5. The tool for the node file should be "PICC Compiler" (C compiler). The 4 items in the blue circle are: 1) Display debug information; 2) Local optimization; 3) Global optimization; 4) ICD compilation accessories. Selecting optimization will make the program code more reasonable and reduce the resource usage. Similarly, if you are not using ICD, the 4th item should not be selected. |
6. After completing the above settings, you can compile. The figure below is the compilation interface. The following is the interface of successful compilation: the blue box contains the compilation success information; the red box displays the resource usage. |
Previous article:The composition of PIC8-bit microcontroller source program
Next article:PIC CCS C language program examples
Recommended ReadingLatest update time:2024-11-16 15:19
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Agitek case sharing - Metrology and testing demonstration case of automotive electronic modules
- How to turn off MPLAB XIDE's code optimization function
- IoT Smart Parking Solutions
- EPWM1 A and B pulses are not complementary
- Find the parameters of the low-pass filter
- Bone vibration sensor and high-quality voice calls (including working principles)
- Millimeter wave sensors
- New Year's flavor competition, post photos during the New Year to win gifts~~
- C language function interrupt function
- NUCLEO_G431RB Review - First Experience