Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

MOTIX™ MCU Forum Discussions

liuyang
Level 1
10 questions asked 10 sign-ins 5 questions asked
Level 1

TLE9854 的串口能正常输出,现在想配置成printf,使能了STDOUT和STDIN,选择了MicroLIB,可是没法输出,怀疑是程序里这个函数没被调用,这个函数在哪里调用的?

void ttywrch(int ch)
{
stdout_putchar(ch);
}

我把sint32 stdout_putchar(sint32 Char)注释,改为

int fputc(int ch, FILE *f),printf可以用,这是怎么回事,是哪里我没配置吗
{
}

 

0 Likes
1 Reply
Kevin_Wu
Moderator
Moderator 5 replies posted 5 sign-ins First solution authored
Moderator

Hi liuyang,

  信息不全,不能回答你的问题。

thanks, Kevin

0 Likes