STM8S建工程问题

[复制链接]
7717|10
 楼主| wgggjfg 发表于 2010-5-20 09:54 | 显示全部楼层 |阅读模式
本帖最后由 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)

下面是设置图片:
uart2_set.JPG
IJK 发表于 2010-5-20 11:00 | 显示全部楼层
“UART2.c总是加不进来,只能加UART3.c” 这个问题很奇怪,从来没碰到过。

最好贴图出来,否则说不清。
jgphu 发表于 2010-5-20 13:05 | 显示全部楼层
LS 传库文件给我,谢谢 jgphu@163.com
 楼主| wgggjfg 发表于 2010-5-20 22:27 | 显示全部楼层
这个里面有ST公司最新关于STM8S的8位机资料,其它就不清楚。
http://www.st.com/mcu/familiesdocs-113.html
 楼主| wgggjfg 发表于 2010-5-22 21:19 | 显示全部楼层
来个高手啊!
racinglam 发表于 2010-6-12 15:41 | 显示全部楼层
情况同你一样,终于找到原因
/* Uncomment the line below according to the target STM8S device used in your
   application.
   Tip: To avoid modifying this file each time you need to switch between these
        devices, you can define the device in your toolchain compiler preprocessor. */
#if !defined (STM8S208) && !defined (STM8S207) && !defined (STM8S105) && !defined (STM8S103) && !defined (STM8S903)
//#define STM8S208
/* #define STM8S207 */
#define STM8S105
/* #define STM8S103 */
/* #define STM8S903 */
#endif

在stm8s.h里!
单车骑士 发表于 2011-11-20 12:26 | 显示全部楼层
6# racinglam
就是怎样?
shuaibaobao 发表于 2011-11-26 15:58 | 显示全部楼层
能不能把库文件传给我。
单车骑士 发表于 2011-12-4 14:14 | 显示全部楼层
建议不要用库
亿万嗣年 发表于 2015-8-28 11:52 | 显示全部楼层
racinglam 发表于 2010-6-12 15:41
情况同你一样,终于找到原因
/* Uncomment the line below according to the target STM8S device used in  ...

说半天??????怎么解决啊?
sun1238898 发表于 2015-8-28 18:23 | 显示全部楼层
10年的事情15年还在讨论,真牛
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:专业人做专业事!高效充电。

65

主题

438

帖子

3

粉丝
快速回复 在线客服 返回列表 返回顶部