Reason: The lowercase letters of the 0x..... string of the registration machine were not changed to uppercase letters during installation.
Warning[Pe001]: last line of file ends without a newline F:emoTionIARPK 升级CC1110-8main.c
Reason: When using IAR, a warning like this often pops up. In fact, as long as you add a carriage return to the last line, this warning will no longer appear.
Error[e72]: Segment BANK_RELAYS must be defined in a segment definition option (-Z, -b or -P)
Cause: This is an error when compiling with 730B, which may be due to the version being too high relative to the target project. Later, 720H was used instead and no error occurred.
Error[Pe005]: could not open source file "stdio.h"
Cause: The header file path is incorrect. The solution is to add $TOOLKIT_DIR$INCCLIB to the Incl? paths in the C/C++ Compiler -> Preprocessor option in the Settings tab.
Error[Pe005]: could not open source file "hal.h" C:UsersuserDesktopExample ProgramWireless Communication Integrated
Cause: First check whether there is a file called setTimer34Period.c in C:UsersuserDesktopExample ProgramWireless Communication Comprehensive TestLibrarycc2430HALsource. If so, it is because IAR does not support Chinese paths well. Copy this project to an English path and compile it without errors.
Error[e16]: Segment CODE_C (size: 0x1869 align: 0) is too long for segment definition. At least 0x1259 more bytes needed.
Reason: CODE is not enough, modify its size in the xcl file, 0x28FF+0x1259=0x3B58, set -D_CODE_END=0x3B58
Error[e16]: Segment XDATA_Z (size: 0x1ea7 align: 0) is too long for segment definition. At least 0x2a7 more bytes
Reason: Modify the segment size in the xcl file, -D_IXDATA_END=0xFD53
Error[e16]: Segment CSTACK (size: 0x50 align: 0x1) is too long for segment definition. At least 0x50 more bytes needed. The problem occurred while processing the segment placement command "-Z(DATA)CSTACK+_STACK_SIZE#",
Cause: This error is caused by the RAM occupied by the defined global variables and array buffers exceeding the hardware support. Size: 0x50 is the excess size. Just reduce unnecessary global variables and minimize the array buffers!
Error[e46]: Undefined external "OnBoard_SendPhoto::?relay" referred in hal_key ( C:Texas InstrumentsZStack-1.4.3-1.2.1ProjectszstackSamplesSi
Cause: The function definition OnBoard_SendPhoto() was not found, only the declaration and use were found. This error usually occurs during linking.
Error[e89]:Too m h object code prod ed(more than 0x1000 bytes)for this package
Reason: 4K restricted version, please use the non-restricted version.
Please start with the following aspects for common IAR errors:
1.
2. Check
3.
4.
5.
6.
The following is my own supplement (continuously updated)
1.
My modification is project options---->C/C++ Compiler----->Optimizations(optimization)----->size----->High(maximum optimization)
That is, optimize the code to the maximum extent possible to save space.
Hey, when I create a new project, I often forget to add a suffix to the saved .c file. When I add it to the project, the system cannot recognize it. This kind of low-level mistake is written down to remind myself.
3. Warning[Pe069]: integer conversion resulted in truncation
#define SEG_A
#define SEG_B
#define SEG_C
#define SEG_D
#define SEG_E
#define SEG_F
#define SEG_G
#define SEG_H
Reason: After the values of SEG_A to SEG_H were calculated, for example, ~0x04 was changed to 0xFB. The problem was solved because the calculation amount in the array was too complicated.
Previous article:RS232 serial port power supply circuit diagram
Next article:Why use 4~20mA current to transmit analog quantity?
- Popular Resources
- Popular amplifiers
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- 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)
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
- 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
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- TI TMS320C6678 Evaluation Module
- The output voltage of the Zener diode is too low
- Understand data center solutions in seconds
- Update the firmware of PYBCNV2
- I bought a small thing, guess what it is
- BlueNRG ADC2 reads back incorrect voltage value
- Getting Started with Robot Operating System
- ATA-1000 Series Broadband Amplifier Series Introduction
- Share: A summary of the most comprehensive answers to various questions in the 2019 e-sports competition
- Live broadcast at 10:30 am today | A brief discussion on Microchip's FPGA products and intelligent embedded vision solutions