Announcements

Ever wondered how you could shape the future in collaboration with others? Join us at OktoberTech Asia Pacific and get inspired. Click here to sign up FREE of charge.

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 First like received 5 solutions authored 10 replies posted
Moderator

Hi liuyang,

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

thanks, Kevin

0 Likes