cancel
Showing results for 
Search instead for 
Did you mean: 

Std Peripheral Library for ADC throws COSMIC compiler errors

BCowa
Associate II

My project uses the ADC on an STM8S and as it compiles using Cosmic the stm8s_adc1 module throws a huge number of compiler errors as follows:

Compiling stm8s_adc1.c...

cxstm8 +modsl0 +debug -pxp -no -pp -l -i"C:\Program Files (x86)\COSMIC\FSE_Compilers\Hstm8" -clDebug\ -coDebug\ stm8s_adc1.c

#error cpstm8 stm8s_adc1.c:54(8+3) bad struct/union operand

#error cpstm8 stm8s_adc1.c:55(8+3) bad struct/union operand

#error cpstm8 stm8s_adc1.c:56(8+3) bad struct/union operand

#error cpstm8 stm8s_adc1.c:57(8+3) bad struct/union operand

#error cpstm8 stm8s_adc1.c:58(8+4) bad struct/union operand

#error cpstm8 stm8s_adc1.c:59(8+4) bad struct/union operand

...

#error cpstm8 stm8s_adc1.c:634(34+5) bad struct/union operand

#error cpstm8 stm8s_adc1.c:639(32+3) bad struct/union operand

#error cpstm8 stm8s_adc1.c:630(28+4) ADC1 undefined

#error cpstm8 stm8s_adc1.c:634(28+4) ADC1 undefined

#error cpstm8 stm8s_adc1.c:639(26+4) ADC1 undefined

#error cpstm8 stm8s_adc1.c:675(12+5) bad struct/union operand

#error cpstm8 stm8s_adc1.c:679(12+5) bad struct/union operand

#error cpstm8 stm8s_adc1.c:684(10+3) bad struct/union operand

#error cpstm8 stm8s_adc1.c:675(6+4) ADC1 undefined

#error cpstm8 stm8s_adc1.c:679(6+4) ADC1 undefined

#error cpstm8 stm8s_adc1.c:684(4+4) ADC1 undefined

stm8s_adc1.c:

 The command: "cxstm8 +modsl0 +debug -pxp -no -pp -l -i"C:\Program Files (x86)\COSMIC\FSE_Compilers\Hstm8" -clDebug\ -coDebug\ stm8s_adc1.c" has failed, the returned value is: 1

exit code=1.

My code simply calls ADC1_DeInit() and then init code.

Any ideas what I am doing wrong or what I need to do please?

Cheers, Bruce

0 REPLIES 0