[STM32F1] 无法再stdout里面显示出

[复制链接]
 楼主| juventus9554 发表于 2021-7-4 17:52 | 显示全部楼层 |阅读模式
--------------------------  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里面显示出啦
zwll 发表于 2021-7-4 17:55 | 显示全部楼层
谁有啊,请发到网上,大家分享一下吧
午夜粪车 发表于 2021-7-4 17:57 | 显示全部楼层

warning: creating .stack section with default size of 400 (hex) words.
这个改380就可以了
stly 发表于 2021-7-4 17:59 | 显示全部楼层

#include <stdio.h>
#include <stdlib.h>
这两句要加开头,还是无法显示的话就是程序有错误,否则不可能。
llljh 发表于 2021-7-4 18:01 | 显示全部楼层
你要改build options里面linker,将Heapsize和Stacksize修改为0x400;
renyaq 发表于 2021-7-4 18:52 | 显示全部楼层
这个不是使用printf吗?
 楼主| juventus9554 发表于 2021-7-4 18:54 | 显示全部楼层
楼主的代码是怎么写的?
llljh 发表于 2021-7-4 18:56 | 显示全部楼层
这个是不是没有配置串口??
tian111 发表于 2021-7-4 18:58 | 显示全部楼层
c语言使用的不是这个吧。
xxrs 发表于 2021-7-4 19:00 | 显示全部楼层
这个宏定义的对不对呢?
chenjunt 发表于 2021-7-4 19:02 | 显示全部楼层
正常的串口配置正确才行。
kangzj 发表于 2021-7-4 19:04 | 显示全部楼层
定义了printf代码了吗?这个printf最简单的。
 楼主| juventus9554 发表于 2021-7-4 19:07 | 显示全部楼层

嗯,我再好好缕一缕吧,有了好消息及时通知大家
 楼主| juventus9554 发表于 2021-7-4 19:09 | 显示全部楼层

其实还是不大明白,我再琢磨琢磨吧,多谢了哈先
您需要登录后才可以回帖 登录 | 注册

本版积分规则

900

主题

12190

帖子

3

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