[应用相关] 无法再stdout里面显示出

[复制链接]
773|11
 楼主| _gege 发表于 2018-2-11 22:11 | 显示全部楼层 |阅读模式
--------------------------  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.


hello wordl! 无法再stdout里面显示出啦
Mozarts 发表于 2018-2-11 22:12 | 显示全部楼层
谁有啊,请发到网上,大家分享一下吧
Listate 发表于 2018-2-11 22:16 | 显示全部楼层
warning: creating .stack section with default size of 400 (hex) words.
这个改380就可以了
feiqi1 发表于 2018-2-11 22:16 | 显示全部楼层

#include <stdio.h>
#include <stdlib.h>
这两句要加开头,还是无法显示的话就是程序有错误,否则不可能。
androidbus 发表于 2018-2-11 22:21 | 显示全部楼层
你要改build options里面linker,将Heapsize和Stacksize修改为0x400;
litengg 发表于 2018-2-11 22:21 | 显示全部楼层
这个不是使用printf吗?
qiangweii 发表于 2018-2-11 22:26 | 显示全部楼层

楼主的代码是怎么写的?
shashaa 发表于 2018-2-11 22:26 | 显示全部楼层
这个是不是没有配置串口??
xia00 发表于 2018-2-11 22:31 | 显示全部楼层
c语言使用的不是这个吧。
hfdy01 发表于 2018-2-11 22:31 | 显示全部楼层
这个宏定义的对不对呢?
CallReceiver 发表于 2018-2-11 22:36 | 显示全部楼层
正常的串口配置正确才行。
boy1990 发表于 2018-2-11 22:36 | 显示全部楼层
定义了printf代码了吗?这个printf最简单的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

42

主题

1357

帖子

1

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