2021-05-14 08:10 PM
I code in STVD + COSMIC for STM8S001J3, it was prompted:
----------- Project test_stm8s001j3 - STM8 Cosmic - Configuration Debug -------------
Compiling main.c...
cxstm8 -if:\stm8\stm8s_stdperiph_lib\libraries\stm8s_stdperiph_driver -if:\stm8\stm8s_stdperiph_lib\libraries\stm8s_stdperiph_driver\inc +debug -pxp -no -l +mods0 -pp -iF:\CXSTM8\Hstm8 -clDebug\ -coDebug\ main.c
#error cpstm8 main.c:32(22) missing prototype
#error cpstm8 main.c:38(22) missing prototype
main.c:
The command: "cxstm8 -if:\stm8\stm8s_stdperiph_lib\libraries\stm8s_stdperiph_driver -if:\stm8\stm8s_stdperiph_lib\libraries\stm8s_stdperiph_driver\inc +debug -pxp -no -l +mods0 -pp -iF:\CXSTM8\Hstm8 -clDebug\ -coDebug\ main.c " has failed, the returned value is: 1
exit code=1.
main.o - 3 error(s), 0 warning(s)
I used SPL of STM8, and I tailored .h and .c file into the project, since if not this, there would be errors in compiling, now I met these error prompt - "delay_ms(1); missing prototype", did I missed any file?
2021-05-15 02:35 AM
As far as I see there is no delay function in the SPL. So you wrote one yourself? And added it in?