The following error is reported during the compilation of the stm8s program:
Compiling stm8s_stdperiph_driversrcstm8s_adc2.c...
cxstm8 +mods0 +debug -pxp -no -pp -l -istm8s_stdperiph_driverinc -i"C:Program Files (x86)COSMICCXSTM8Hstm8" -i"C:Program Files (x86)STMicroelectronicsst_toolsetinclude" -clDebug -coDebug stm8s_stdperiph_driversrcstm8s_adc2.c
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:50(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:51(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:52(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:53(10+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:54(10+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:50(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:54(17+21) ADC2_TDRL_RESET_VALUE undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:53(17+21) ADC2_TDRH_RESET_VALUE undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:52(17+20) ADC2_CR2_RESET_VALUE undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:51(17+20) ADC2_CR1_RESET_VALUE undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:50(17+20) ADC2_CSR_RESET_VALUE undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:108(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:108(17+13) ADC2_CR1_ADON undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:108(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:126(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:130(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:126(21+13) ADC2_CR1_ADON undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:126(8+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:130(32+13) ADC2_CR1_ADON undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:130(8+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:149(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:154(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:154(46) const assignment
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:149(30+14) ADC2_CSR_EOCIE undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:149(8+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:154(32+14) ADC2_CSR_EOCIE undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:154(8+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:172(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:174(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:172(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:172(28+14) ADC2_CR1_SPSEL undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:198(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:199(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:199(35+3) const assignment
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:203(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:204(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:211(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:215(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:215(88) const assignment
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:222(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:226(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:198(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:203(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:211(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:215(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:222(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:226(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:251(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:253(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:258(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:263(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:263(45) const assignment
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:267(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:269(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:251(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:267(28+11) ADC2_CSR_CH undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:251(28+14) ADC2_CR2_ALIGN undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:258(21+13) ADC2_CR1_CONT undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:263(32+13) ADC2_CR1_CONT undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:292(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:297(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:297(47) const assignment
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:302(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:306(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:292(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:292(28+15) ADC2_CR2_EXTSEL undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:297(31+16) ADC2_CR2_EXTTRIG undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:302(32+16) ADC2_CR2_EXTTRIG undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:322(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:322(17+13) ADC2_CR1_ADON undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:322(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:338(15+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:341(22+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:343(22+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:350(22+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:352(22+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:338(9+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:338(21+14) ADC2_CR2_ALIGN undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:369(30+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:369(36+12) ADC2_CSR_EOC undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:369(24+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:380(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:380(40) const assignment
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:380(28+12) ADC2_CSR_EOC undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:380(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:391(28+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:391(34+12) ADC2_CSR_EOC undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:391(22+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:401(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:401(40) const assignment
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:401(28+12) ADC2_CSR_EOC undefined
#error cpstm8 stm8s_stdperiph_driversrcstm8s_adc2.c:401(4+4) ADC2 undefined
stm8s_stdperiph_driversrcstm8s_adc2.c:
The command: "cxstm8 +mods0 +debug -pxp -no -pp -l -istm8s_stdperiph_driverinc -i"C:Program Files (x86)COSMICCXSTM8Hstm8" -i"C:Program Files (x86)STMicroelectronicsst_toolsetinclude" -clDebug -coDebug stm8s_stdperiph_driversrcstm8s_adc2.c" has failed, the returned value is: 1
exit code=1.
wrong reason:
Too many irrelevant source code files are added to the project, resulting in a large target file after compilation. Only the source code files needed in the project are retained and recompiled.
Previous article:stm8 programming tips (stvd)
Next article:Integrated Circuits - STM8 Microcontroller Notes
Recommended ReadingLatest update time:2024-11-16 13:01
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
- Thank you for being there + the extraordinary me in 2019
- Macro base stations, distributed base stations, small base stations
- How to integrate FreeRTOS on ARMv8-M architecture processor?
- [STM32WB55 Review] Play with the built-in Demo
- Reading Notes on the Good Book "Electronic Engineer Self-Study Handbook" 03 Program
- Base station interference source positioning system based on drone
- This is an article about 5G 2.4G antenna. You will earn money if you see it. You will learn the truth if you learn it.
- [Share] Easy-to-understand introductory textbook on FPGA. Standardize design and avoid detours
- Learn about the MSP430F5529 Power Management Module
- How to choose a DC-DC module power supply What is the importance of DC_DC module power supply