1: Add header file in IAR settings
When programming in IAR, you often use your own header files. At this time, you need to set the path to add the included header files. The common method is to right-click on the project and select options, and load your header file path in the preprocessor in the c/c++ compiler settings. $PROJ_DIR$ means that the path of the included file is in the project file, in the same directory as the eww file, that is, search from the current project directory.
In the figure, $PROJ_DIR$\Headfile means that the header file is contained in the Headfile directory at the next level of the path where the current project file is located (Headfile is a newly created folder).
two,
When I opened a separate c file for all interrupt functions, the following problems occurred when the global variables defined in other files were used in the interrupt function:
Error[e46]: Undefined external "?cstart_init_zero" referred in Fun ( D:\WaterMeter Program\DISPLY_20140220\Debug\Obj\Fun.r43 ) as shown in the following figure:
The specific problems found are:
Solution to the problem: As shown in the figure: right-click the project file and select option. Select library in the library Configuration tab in general option. Normal DLIB is as shown in the figure:
problem solved.
Previous article:C language: pointer function and function pointer
Next article:MSP430 Learning Bits - Watchdog Timer
- Popular Resources
- Popular amplifiers
Recommended Content
Latest Microcontroller Articles
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
MoreDaily News
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
Guess you like
- 13. "Wanli" Raspberry Pi Car - Accessories Preparation
- [Survey] What is the most convenient tool for PCB design?
- stm32f103rct6 serial port 485 can receive, send error
- How to achieve constant temperature between 2 and 8 degrees
- Reverse application of buzzer chip
- How does this circuit achieve the baseline restoration function?
- Xunwei i.MX6ULL Terminator Thread Basics Thread Termination and Recycling
- LED matrix display for dot pixel art
- The much-anticipated "China Chip" will be launched today. Are chip stocks still attractive?
- Driver and app