I am trying to develop simple spi communication between 2 stm8s. I am using same files for master and spi with main.c different. Master code compiles successfully with no errors, slave has following error inspite all syntax is proper. Any help?
Compiling main.c...
cxstm8 +warn +mods0 +debug -pxp +strict -pp -ps -psa -pu -l -i"C:\Program Files (x86)\COSMIC\FSE_Compilers\Hstm8" -clDebug\ -coDebug\ main.c
#error cpstm8 stm8s.h:2525(12) missing ;
#error cpstm8 stm8s_gpio.h:68(18) incomplete declaration
#error cpstm8 stm8s_gpio.h:141(61) bad proto argument type
#error cpstm8 stm8s_gpio.h:141(53+8) missing )
#error cpstm8 stm8s_gpio.h:141(91) missing ;
#error cpstm8 main.c:44(28+21) too many arguments
#error cpstm8 main.c:45(28+21) too many arguments
#error cpstm8 main.c:46(28+21) too many arguments
#error cpstm8 main.c:47(55) too many arguments
#error cpstm8 main.c:48(28+21) too many arguments
#error cpstm8 main.c:47(29+26) GPIO_MODE_OUT_PP_HIGH_FAST undefined
#error cpstm8 main.c:44(28+21) GPIO_MODE_IN_PU_NO_IT undefined
main.c:
The command: "cxstm8 +warn +mods0 +debug -pxp +strict -pp -ps -psa -pu -l -i"C:\Program Files (x86)\COSMIC\FSE_Compilers\Hstm8" -clDebug\ -coDebug\ main.c" has failed, the returned value is: 1
exit code=1.
