IAR新创建的stm8工程添加固件库,芯片选型为STM8S103,编译时固件库报错,求解!
错误信息为:
Building configuration: Led - Debug
Updating build tree...
stm8s_adc1.c
main.c
stm8s_adc2.c
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 56
Error[Pe020]: identifier "ADC2_CSR_RESET_VALUE" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 56
Error[Pe020]: identifier "ADC2_CR1_RESET_VALUE" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 57
Error[Pe020]: identifier "ADC2_CR2_RESET_VALUE" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 58
Error[Pe020]: identifier "ADC2_TDRH_RESET_VALUE" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 59
Error[Pe020]: identifier "ADC2_TDRL_RESET_VALUE" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 60
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 113
Error[Pe020]: identifier "ADC2_CR1_ADON" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 113
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 128
Error[Pe020]: identifier "ADC2_CR1_ADON" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 128
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 132
Error[Pe020]: identifier "ADC2_CR1_ADON" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 132
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 149
Error[Pe020]: identifier "ADC2_CSR_EOCIE" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 149
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 154
Error[Pe020]: identifier "ADC2_CSR_EOCIE" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 154
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 170
Error[Pe020]: identifier "ADC2_CR1_SPSEL" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 170
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 193
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 198
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 206
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 210
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 217
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 221
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 244
Error[Pe020]: identifier "ADC2_CR2_ALIGN" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 244
Error[Pe020]: identifier "ADC2_CR1_CONT" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 251
Error[Pe020]: identifier "ADC2_CR1_CONT" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 256
Error[Pe020]: identifier "ADC2_CSR_CH" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 260
Error[Pe020]: identifier "ADC2" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 282
Error[Pe020]: identifier "ADC2_CR2_EXTSEL" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 282
Error[Pe020]: identifier "ADC2_CR2_EXTTRIG" is undefined D:\LedTest\Lib\STM8S_StdPeriph_Driver\src\stm8s_adc2.c 287
|