I am using IAR EW8051-EV-750A.
There are often errors during runtime, such as: Fatal Error[Pe005]: could not open source file "hal.h" D:CC2430 Tester-0.6PER-ReceiveLibrarycc2430HALsourcewait.c 23. After checking the information, I found that the path was not configured properly. Let me talk about the configuration below. The figure below shows what I have configured (different programs have different configurations).
For example, if the project file is in D:CC2430 Tester-0.6PER-ReceiveApp_Excc2430IAR_files, and the h file is in D:CC2430 Tester-0.6PER-ReceiveLibrarycc2430HALinclude, then $PROJ_DIR$......Librarycc2430HALinclude will do.
Knowledge points:
In the text box that defines the path of the included file, there are two very important syntaxes for defining the path of the included file. One is $TOOLKIT_DIR$, which means that the path of the included file is in the 8051 folder of the IAR installation path. That is to say, if IAR is installed in the C drive, it means the path C:Program FilesIAR SystemsEmbedded Workbench 4.05 Evaluation version8051. The other is $PROJ_DIR$, which means that the path of the included file is in the project file, that is, the same directory as the eww file and ewp file. In the project we just created, if this language is used, it means that the file now points to the folder C:Documents and SettingsAdministratorDesktopproject. There are two very important symbols used in conjunction with these two languages, which are ".." and "folder name".
..: Return to the previous folder
Folder name: means entering the folder named "folder name".
Let’s look at two specific examples.
$TOOLKIT_DIR$inc: This sentence means that the include file points to C:Program FilesIAR SystemsEmbedded Workbench 4.05 Evaluation version8051inc.
$PROJ_DIR$..Source: This sentence means that the included files point to the Source folder in the parent directory of the project directory.
Previous article:References - IAR include file path definition
Next article:Using PROTEUS to simulate the interface between microcontroller and LCD
Recommended ReadingLatest update time:2024-11-15 10:22
- Popular Resources
- Popular amplifiers
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- Principles and Applications of Single Chip Microcomputers 3rd Edition (Zhang Yigang)
- Principles and Applications of Single Chip Microcomputers and C51 Programming (3rd Edition) (Xie Weicheng, Yang Jiaguo)
- IAR fully supports the new industrial-grade PX5 real-time operating system
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- The Academic Degrees Committee of the State Council voted to approve the proposal to "establish integrated circuit as a first-level discipline"!
- esp32-s2-wrover cannot start after upgrading micropython 1.18
- Today is International Day Against Spatting. Were you ever spanked as a child?
- B&O Beoplay E8 TWS True Wireless Bluetooth Earphones
- Flyback switching power supply simulation using Saber
- Our company makes FOC motor drivers. The algorithm is mature. We want to find a chip manufacturer to cooperate with us to make a motor-specific chip.
- How to build a simple and efficient isolated power supply below 2W
- Six common circuit board surface treatment processes
- [N32L43X Review] 1. Getting Started Environment Configuration
- Tektronix THz Radar Signal Test Solution