使用STVD+COSMIX编译STM8S工程问题汇总
1)#error cpstm8 main.c:231(10) missing prototype
解决方案:所有函数声明和定义都要带形参。
例: void SysInit(void);void SysInit(void){}
2) warning: Toolset rootpaths have not been specified for at least one of supported toolsets.confirm that the root path for the toolset that you are using have been specified
STVD中COSMIX编译器默认路径设置。
在Tool>option 下将Toolset Root Path路径设置成编译器的安装路径。
如:C:\Program Files (x86)\COSMIC\CXSTM8