加上uart_init();后,无法输出ready。。

1598025967
Posts: 1
Joined: Sat Jan 06, 2018 11:50 am

加上uart_init();后,无法输出ready。。

Postby 1598025967 » Sat Jan 06, 2018 11:54 am

user_init(void)
{
char buf[64] = {0};
at_customLinkMax = 5;
at_init();
os_sprintf(buf,"compile time:%s %s",__DATE__,__TIME__);
at_set_custom_info(buf);
at_port_print("\r\nready\r\n");
at_cmd_array_regist(&at_custom_cmd[0], sizeof(at_custom_cmd)/sizeof(at_custom_cmd[0]));
//uart_init(BIT_RATE_115200,BIT_RATE_115200);
}
这是乐鑫官方的例程,我在结尾添加了uart_init();后,串口无法输出ready,屏蔽掉后可以输出ready,找了很多资料都没有说清楚uart的用法。。

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

Re: 加上uart_init();后,无法输出ready。。

Postby Her Mary » Thu Jan 11, 2018 6:04 pm

AT 占用了 UART,你重新初始化 UART,AT 就用不了吧。。

Nikita
Posts: 1
Joined: Thu Apr 05, 2018 8:27 pm

uart_init ready

Postby Nikita » Tue Apr 10, 2018 8:41 am

Im one or two items short, but in general, Im ready for WoE.

Who is online

Users browsing this forum: No registered users and 3 guests