DSP 建立helloworld工程-- BIOS系统下

 

平台DM6437 、SEED仿真器

目标:在BIOS系统实现hello world程序

 

1、  新建hello_bios工程

 

2、创建tcf配置文件,并发“hello_bios”为文件名保存,如下图:

 

 

3、右键 à“Inset Log” à 命名为 “trace” 。保存后如下图:

 

 

 

4、向工程添加文件,”hello_bios.tcf”  “hello_bioscfg.cmd” 。(添加这两个的时候,会有一些文件自动被添加)

 

 

5、添加自己的含有main的源文件 hello_bios.c

hello_bios.c内容如下:

#include <std.h> 
#include <log.h> 
#include "hello_bioscfg.h"

/* Objects created by the Configuration Tool */ 
extern LOG_Obj trace; 


/* ======== main ======== */ 
Void main() 
{ 
	LOG_printf(&trace, "hello world!"); 
}


 

 

6、编译。

有出错信息:

[hello_bioscfg.s62] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -pdsw225 -fr"D:/all/SoftWare/hello_bios/Debug" -d"_DEBUG" -mv6400 -@"Debug.lkf" "hello_bioscfg.s62"

"hello_bioscfg.s62", ERROR!   at line 365: [ ***** USER ERROR ***** - ]

         Project build options do not match Global configuration settings.

           Compiler options do not specify -mv64+, but configuration is for

           C64x+

                   .emsg "Project build options do not match Global configuration settings.  Compiler options do not specify -mv64+, but configuration is for C64x+"

 

"hello_bioscfg.s62", ERROR!   at EOF: [E0300] The following symbols are

                                              undefined:

 

解决办法:

Project à Build Option à target vertion à 把”c64xx” 换成 “c64x+”

 

 

 

7、花了很长时间的一步。下载到板子上运行,程序可以运行,但就是不到hello world 。

原来hello world 不是在 stdout 里显示的,而是在 DSP/BIOS à Message Log 里面打印的。

至此,伟大的hello world 终于出现了。

如图:

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值