本帖最后由 wgggjfg 于 2010-5-20 22:24 编辑
为什么我用STVD选STM8S105S6时,手册上说STM8S105S6只有UART2,但UART2.c总是加不进来,只能加UART3.c.
我用STM8S的8位机半年了,但总觉得建工程很烦,有时建上几个小时,不是编辑连不上就是库加不对,有什么好的办法没。
信息图口的内容:
----------- Project uart - STM8 Cosmic - Configuration Debug -------------
Compiling
..\library\src\stm8s_uart2.c...
cxstm8 -i..\library\inc +debug -pxp -no -l +mods0 -pp -i"C:\Program
Files\COSMIC\Hstm8" -clDebug\ -coDebug\ ..\library\src\stm8s_uart2.c
#error cpstm8
..\library\src\stm8s_uart2.c:51(19+2) bad struct/union operand
#error cpstm8 ..\library\src\stm8s_uart2.c:52(19+2) bad struct/union operand
#error cpstm8 ..\library\src\stm8s_uart2.c:54(11+4) bad struct/union operand
.
.
.
#error cpstm8 ..\library\src\stm8s_uart2.c:885(8+5) UART2 undefined
#error cpstm8 ..\library\src\stm8s_uart2.c:890(8+5) UART2 undefined
..\library\src\stm8s_uart2.c:
The command: "cxstm8 -i..\library\inc +debug -pxp -no -l +mods0 -pp -i"C:\Program Files\COSMIC\Hstm8" -
clDebug\ -coDebug\ ..\library\src\stm8s_uart2.c " has failed, the returned value is: 1
exit code=1.
uart.elf - 151 error(s), 0 warning(s)
下面是设置图片: |