[技术求助] out文件出不来怎么回事

[复制链接]
 楼主| zhanghqi 发表于 2019-10-13 16:07 | 显示全部楼层 |阅读模式
out文件出不来怎么回事
jlyuan 发表于 2019-10-13 16:11 | 显示全部楼层
提示的错误是?
 楼主| zhanghqi 发表于 2019-10-13 16:13 | 显示全部楼层
错误是symbol referencing errors
jlyuan 发表于 2019-10-13 16:17 | 显示全部楼层
编译提示什么啊
 楼主| zhanghqi 发表于 2019-10-13 16:20 | 显示全部楼层

--------------------------  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.
 楼主| zhanghqi 发表于 2019-10-13 16:26 | 显示全部楼层
我的函数没有定义~不过没看懂load函数干什么的
dengdc 发表于 2019-10-13 16:30 | 显示全部楼层
然后呢
 楼主| zhanghqi 发表于 2019-10-13 16:33 | 显示全部楼层
后来把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
heweibig 发表于 2019-10-13 16:36 | 显示全部楼层

我看此load函数的说明,它什么都不做的,只是增加DSP的计算负担,可能是用来模拟负载的。
heweibig 发表于 2019-10-13 16:39 | 显示全部楼层

得设置
好像是link里面
wuhany 发表于 2019-10-13 16:42 | 显示全部楼层

检查下看是不是缺啥文件的吧。。
午夜粪车 发表于 2019-10-13 16:46 | 显示全部楼层

既然有错误爆出的,,就好处理的
 楼主| zhanghqi 发表于 2019-10-13 16:48 | 显示全部楼层
哦,那我就知道怎么回事了,多谢大家,结贴了哈
您需要登录后才可以回帖 登录 | 注册

本版积分规则

852

主题

11757

帖子

5

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

852

主题

11757

帖子

5

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