tt09yy9 发表于 2012-4-19 15:30:23

请教一个问题,STVD打开LED工程,编译出现错误?


错误如下:
#error cpstm8 stm8s105s4.h:5 can't open STM8S105C_S.h
#error cpstm8 main.c:57(12+7) ADC_CSR undefined
#error cpstm8 main.c:53(4+7) ADC_CR1 undefined
#error cpstm8 main.c:64(4+10) TIM2_CCR2L undefined
#error cpstm8 main.c:63(4+10) TIM2_CCR2H undefined
#error cpstm8 main.c:60(45+7) ADC_DRL undefined
#error cpstm8 main.c:60(32+7) ADC_DRH undefined
#error cpstm8 main.c:70(11+9) TIM3_ARRH undefined
#error cpstm8 main.c:75(8+10) TIM3_CCR1L undefined
#error cpstm8 main.c:74(8+10) TIM3_CCR1H undefined
#error cpstm8 main.c:73(8+9) TIM3_ARRL undefined
#error cpstm8 main.c:106(4+6) PD_CR2 undefined
#error cpstm8 main.c:104(4+6) PD_DDR undefined
#error cpstm8 main.c:110(4+8) EXTI_CR2 undefined
#error cpstm8 main.c:109(4+8) EXTI_CR1 undefined
#error cpstm8 main.c:105(4+6) PD_CR1 undefined
#error cpstm8 main.c:124(4+10) CLK_CKDIVR undefined
#error cpstm8 main.c:140(4+8) ADC_TDRL undefined
#error cpstm8 main.c:139(4+7) ADC_CSR undefined
#error cpstm8 main.c:138(4+7) ADC_CR1 undefined
#error cpstm8 main.c:137(4+7) ADC_CR2 undefined
#error cpstm8 main.c:169(4+8) TIM3_CR1 undefined
#error cpstm8 main.c:168(4+9) TIM3_PSCR undefined
#error cpstm8 main.c:166(4+10) TIM3_CCR1L undefined
#error cpstm8 main.c:165(4+10) TIM3_CCR1H undefined
#error cpstm8 main.c:164(4+9) TIM3_ARRL undefined
#error cpstm8 main.c:163(4+9) TIM3_ARRH undefined
#error cpstm8 main.c:162(4+10) TIM3_CCER1 undefined
#error cpstm8 main.c:161(4+10) TIM3_CCMR1 undefined
#error cpstm8 main.c:158(4+8) TIM2_CR1 undefined
#error cpstm8 main.c:157(4+9) TIM2_PSCR undefined
#error cpstm8 main.c:155(4+9) TIM2_CCR2 undefined
#error cpstm8 main.c:154(4+9) TIM2_ARRL undefined
#error cpstm8 main.c:153(4+9) TIM2_ARRH undefined
#error cpstm8 main.c:152(4+10) TIM2_CCER1 undefined
#error cpstm8 main.c:151(4+10) TIM2_CCMR2 undefined
main.c:
The command: "cxstm8 +mods0 +debug -pxp -pp -l -i"D:\Program Files\STMicroelectronics\Cxstm8\Hstm8"-clDebug\ -coDebug\ main.c" has failed, the returned value is: 1
exit code=1.

johnsonz999 发表于 2012-5-27 07:01:26

没有包括头文件。

kebaojun305 发表于 2012-6-22 21:39:25

用的库的话是不是MCU型号没有定义。
页: [1]
查看完整版本: 请教一个问题,STVD打开LED工程,编译出现错误?