21ic电子技术开发论坛 综合技术交流 德州仪器模拟论坛 编译出错
发新帖我要提问
返回列表
打印
[技术求助]

编译出错

[复制链接]
937|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
mentoscui|  楼主 | 2012-10-29 17:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
out文件出不来,提示的错误是symbol referencing errors

编译提示:

--------------------------  carrier64161.pjt - Debug  --------------------------

\"d:\\ti\\c6000\\cgtools\\bin\\cl6x\" -g -q -fr\"D:/ti/myprojects/carrier/carrier64161/Debug\" -d\"_DEBUG\" -mv6400 -@\"Debug.lkf\" \"init.c\"



\"d:\\ti\\c6000\\cgtools\\bin\\cl6x\" -g -q -fr\"D:/ti/myprojects/carrier/carrier64161/Debug\" -d\"_DEBUG\" -mv6400 -@\"Debug.lkf\" \"main.c\"



\"d:\\ti\\c6000\\cgtools\\bin\\cl6x\" -g -q -fr\"D:/ti/myprojects/carrier/carrier64161/Debug\" -d\"_DEBUG\" -mv6400 -@\"Debug.lkf\" \"start.asm\"



\"d:\\ti\\c6000\\cgtools\\bin\\cl6x\" -@\"Debug.lkf\"



undefined                        first referenced

symbol                              in file

---------                        ----------------

_load                            D:\\ti\\myprojects\\carrier\\carrier64161\\Debug\\main.obj

>>   error: symbol referencing errors - \'sine.out\' not built



Build Complete,

  1 Errors, 0 Warnings, 0 Remarks.

相关帖子

沙发
mentoscui|  楼主 | 2012-10-29 17:22 | 只看该作者
我的函数没有定义~不过没看懂load函数干什么的

后来把load.asm添加以后就好了

附_load.sam



        .global _load



        .text



N       .set    1000



;

;  ======== _load ========

;  This function simulates a load on the DSP by executing N * loopCount

;  instructions, where loopCount is the input parameter to load().

;

;      void _load(int loopCount)

;

;  The loop is using 8 instructions. One instruction for sub, nop and

;  b, plus nop 5. The extra nop added after sub is to make the number

;  of instructions in the loop a power of 2.

;

_load:



        mv a4, b0               ; use b0 as loop counter

  [!b0] b lend  

        mvk N,b1

        mpy b1,b0,b0

        nop

        shru b0,3,b0            ; (loop counter)= (# loops)/8



loop:

        sub b0,1,b0

使用特权

评论回复
板凳
qwempty| | 2012-10-29 17:29 | 只看该作者
我看此load函数的说明,它什么都不做的,只是增加DSP的计算负担,可能是用来模拟负载的。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

10

主题

176

帖子

0

粉丝
关闭 热门推荐
快速回复 在线客服 返回列表 返回顶部