无法再stdout里面显示出

[复制链接]
1802|28
 楼主| spark周 发表于 2018-1-5 19:57 | 显示全部楼层 |阅读模式
hello wordl! 无法再stdout里面显示出啦
liliang9554 发表于 2018-1-5 20:02 | 显示全部楼层
怎么回事
 楼主| spark周 发表于 2018-1-5 20:04 | 显示全部楼层

---------------------------  myhello.pjt - Debug  ----------------------------
"C:\ti\c2000\cgtools\bin\cl2000" -g -fr"C:/TI/MYPROJECTS/MYHELLO/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../MYHELLO/Debug.lkf" "hello.c"

"C:\ti\c2000\cgtools\bin\cl2000" -g -fr"C:/TI/MYPROJECTS/MYHELLO/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../MYHELLO/Debug.lkf" "vectors.asm"

"C:\ti\c2000\cgtools\bin\cl2000" -@"Debug.lkf"
<Linking>
>> warning: creating .stack section with default size of 400 (hex) words.
   Use----------------------------  myhello.pjt - Debug  ----------------------------
"C:\ti\c2000\cgtools\bin\cl2000" -g -fr"C:/TI/MYPROJECTS/MYHELLO/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../MYHELLO/Debug.lkf" "hello.c"

"C:\ti\c2000\cgtools\bin\cl2000" -g -fr"C:/TI/MYPROJECTS/MYHELLO/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"../MYHELLO/Debug.lkf" "vectors.asm"

"C:\ti\c2000\cgtools\bin\cl2000" -@"Debug.lkf"
<Linking>
>> warning: creating .stack section with default size of 400 (hex) words.
   Use
            -stack option to change the default size.
>> warning: creating .sysmem section with default size of 400 (hex) words.


            Use -heap option to change the default size.

Build Complete,
  0 Errors, 2 Warnings, 0 Remarks.
午夜粪车 发表于 2018-1-5 20:08 | 显示全部楼层
我安装了ccs ,但是在安装文件里根本就没有hello1这个文件?谁有啊,请发到网上,大家分享一下吧
zhaoxqi 发表于 2018-1-5 20:12 | 显示全部楼层

warning: creating .stack section with default size of 400 (hex) words.
这个改380就可以了
huangchui 发表于 2018-1-5 20:16 | 显示全部楼层
楼上正解,说的不错
heweibig 发表于 2018-1-5 20:20 | 显示全部楼层
#include <stdio.h>
#include <stdlib.h>
这两句要加开头,还是无法显示的话就是程序有错误,否则不可能。
zhanghqi 发表于 2018-1-5 20:23 | 显示全部楼层
嗯,还有你要改build options里面linker,将Heapsize和Stacksize修改为0x400;
 楼主| spark周 发表于 2018-1-5 20:29 | 显示全部楼层
好的,我明天去单位试一下,多谢各位大侠了哈,结贴了先        
jkl21 发表于 2018-1-5 22:22 | 显示全部楼层
不是使用printf吗?
maqianqu 发表于 2018-1-5 22:22 | 显示全部楼层
这个是c++的代码
dspmana 发表于 2018-1-5 22:22 | 显示全部楼层
楼主的代码是怎么写的?
eefas 发表于 2018-1-5 22:23 | 显示全部楼层
在<stdio.h>
pl202 发表于 2018-1-5 22:23 | 显示全部楼层
printf最简单。
10299823 发表于 2018-1-5 22:23 | 显示全部楼层
是不是没有配置串口
lihuami 发表于 2018-1-5 22:24 | 显示全部楼层
你的代码写的对吗?
xiaoyaozt 发表于 2018-1-5 22:24 | 显示全部楼层
printf( "xxxx")
uptown 发表于 2018-1-5 22:25 | 显示全部楼层
spark周 发表于 2018-1-5 20:04
---------------------------  myhello.pjt - Debug  ----------------------------
"C:\ti\c2000\cgtools ...

这个有错误吗?
cehuafan 发表于 2018-1-5 22:25 | 显示全部楼层
午夜粪车 发表于 2018-1-5 20:08
我安装了ccs ,但是在安装文件里根本就没有hello1这个文件?谁有啊,请发到网上,大家分享一下吧
...

这个是什么功能
jkl21 发表于 2018-1-5 22:26 | 显示全部楼层
stdout怎么输出?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

821

主题

10121

帖子

4

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