This indicates that no access operation is performed on the local variable i in the function.
Solution: Eliminate the declaration of the i variable in the function.
2. Warning 206:'Music3':missing function-prototype
This means that the Music3() function has not been declared or has not been declared externally, so it cannot be called by other functions.
The solution is to write the statement void Music3(void) at the beginning of the program as a declaration. If it is a function of other files, it should be written as extern void Music3(void), that is, as an external declaration.
3. Compling: C:\8051\MANN.C
Error:318:can't open file 'beep.h'
Description: During the compilation of the C:\8051\MANN.C program, main.c used the instruction #include "beep.h", but it could not find it.
Solution Write an include file called beep.h and save it in the working directory of c:\8051.
4. Compiling: C:\8051\LED.C
Error 237:'LedOn':function already has a body
Description: The LedOn() function name is defined repeatedly, that is, there are two or more identical function names.
Solution: Fix one of the function names so that the function names are independent.
5. ***WARNING 16:UNCALLED SEGMENT,IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_DELAYX1MS?DELAY
This shows that the DelayX1ms() function will occupy program memory space even if it is not called by other functions.
The solution is to remove the DelayX1ms() function or use conditional compilation #if …#endif to keep the function and not compile.
6. ***WARNING 6 :XDATA SPACE MEMORY OVERLAP
FROM : 0025H
TO: 0025H
Explanation: The 0025H address of the external data ROM is repeatedly defined.
Solution: The definition of external data ROM is as follows
Pdata unsigned char XFR_ADC _at_0x25 The name of the XFR_ADC variable is 0x25. Please check if it is
Is there any other variable name defined at 0x25? Correct it.
7. WARNING 206:'DelayX1ms': missing function-prototype
C:\8051\INPUT.C
Error 267:'DelayX1ms ':requires ANSI-style prototype C:\8051\INPUT.C
This means that the DelayX1ms function is called in the program but the function is not defined, that is, the program content or function is not written.
Defined but not declared.
Solution: After writing the content of DelayX1ms, you must also declare it or make an external declaration in delay.h
The included file is declared as external for other functions to call.
8. ***WARNING 1:UNRESOLVED EXTERNAL SYMBOL
SYMBOL:MUSIC3
MODULE:C:\8051\MUSIC.OBJ(MUSIC)
***WARNING 2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL:MUSIC3
MODULE:C:\8051\MUSIC.OBJ(MUSIC)
ADDRESS:0018H
This means that the MUSIC function is called in the program but the extension C of the function is not added to the project file.
Prj compiles and links.
Solution: Set the MUSIC3 function in MUSIC C and add MUSIC C to the project file.
9 . ***ERROR 107:ADDESS SPACE OVERFLOW
SPACE: DATA
SEGMENT: _DATA_GOUP_
LENGTH: 0018H
***ERROR 118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: VOLUME
MODULE: C:\8051\OSDM.OBJ (OSDM)
ADDRESS: 4036H
The address range of the data storage space is 0~0x7f.
If the storage mode is set to SMALL, local variables will be temporarily stored in working registers R2~R7.
If the number of temporary data in the data type space exceeds 0x7f, the address will be insufficient.
Solution: Change the public variable defined as data type to idata type.
Previous article:How to convert numbers into strings in C51
Next article:When creating multiple c files in keil
Recommended ReadingLatest update time:2024-11-16 14:32
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- How to read electrical control circuit diagrams (Classic best-selling books on electronics and electrical engineering) (Zheng Fengyi)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
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
- EEWORLD University ---- OpenCV 3 with Python 3 Tutorial
- Siemens 230RC opens for 3 seconds and closes for 3 seconds
- Stack Overflow Technology from Entry to Mastery
- Design of Automatic AC Voltage Stabilizer
- Competition control competition materials and excellent works sharing
- NUCLEO_G431RB Review (1) Compilation Environment Settings
- EEWORLD University - Practical Application of IoT in Vehicles
- Memory Compression Technology in Embedded Systems
- Porting shttpd Web
- Why are all the packets captured by USB Dongle empty?