ST编译设置 问题

[复制链接]
3627|5
 楼主| wgggjfg 发表于 2010-9-4 16:09 | 显示全部楼层 |阅读模式
在用ST工程时,编译设置改为:
Memory 选择 Long Stack(+modsl)
就会出现下面问题:
#error clnk Debug\stm8s208.lkf:1 symbol f__stext not defined(Debug\stm8_interrupt_vector.o )
The command: "clnk -m Debug\stm8s208.map -l"C:\Program Files\COSMIC\CXSTM8\Lib"  -o
Debug\stm8s208.sm8 Debug\stm8s208.lkf " has failed, the returned value is: 1exit code=1.

我用的工程版本是:
  * @file project\main.c
  * @brief This file contains the firmware main function.
  * @author STMicroelectronics - MCD Application Team
  * @version V1.1.1
  * @date 06/05/2009
xuannin 发表于 2010-9-6 13:53 | 显示全部楼层
stm8_interrupt_vector.c中的extern void _stext();     /* startup routine */
改为extern @near void _stext();     /* startup routine */
就行了
pkat 发表于 2010-9-6 17:46 | 显示全部楼层
楼上的说的很对,楼主可以试试
 楼主| wgggjfg 发表于 2010-9-6 19:10 | 显示全部楼层
还真行了,非常感谢谢!
 楼主| wgggjfg 发表于 2010-9-6 19:11 | 显示全部楼层
但为什么不用"@far"?
crazy2012 发表于 2014-1-3 12:50 | 显示全部楼层
关注一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

65

主题

438

帖子

3

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