ESP8266 Developer Zone The Official ESP8266 Forum 2016-04-28T00:44:51+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2017 2016-04-28T00:44:51+08:00 2016-04-28T00:44:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2017&p=6641#p6641 <![CDATA[Re: UART1 TX]]>
This is how I implemented UART1

Code:

   UART_ConfigTypeDef uart_config;
   uart_config.baud_rate = BIT_RATE_115200;
   uart_config.data_bits = UART_WordLength_8b;
   uart_config.parity = USART_Parity_None;
   uart_config.stop_bits = USART_StopBits_1;
   uart_config.flow_ctrl = USART_HardwareFlowControl_None;
   uart_config.UART_RxFlowThresh = 120;
   uart_config.UART_InverseMask = UART_None_Inverse;
   UART_ParamConfig(UART1, &uart_config);
   UART_SetPrintPort(UART1);


Hope that helps

Statistics: Posted by jhinkle — Thu Apr 28, 2016 12:44 am


]]>
2016-04-27T16:29:08+08:00 2016-04-27T16:29:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2017&p=6633#p6633 <![CDATA[Re: UART1 TX]]> and that is my demo ,you can see it;
uart_init(BIT_RATE_115200, BIT_RATE_115200);
os_install_putc1((void *)uart1_write_char);//this is use uart1 for debug infomations.

Statistics: Posted by hualaonanxiaoniao — Wed Apr 27, 2016 4:29 pm


]]>
2016-04-12T14:32:19+08:00 2016-04-12T14:32:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2017&p=6427#p6427 <![CDATA[UART1 TX]]>
I'm using RTOS 1.4 and I'm stuck trying to use UART1 for debugging purposes.

I added the uart driver provided with the SDK but I cannot see the function to make the UART1 work. This is the content of my user_init function:

void user_init(void)
{
uart_init_new();
UART_SetBaudrate(UART0,BIT_RATE_115200);
printf("\n\r\nSDK version: %s\n", system_get_sdk_version());
printf("Chip ID: 0x%x\n", system_get_chip_id());
}

Which is the instruction to send info through the UART1???...OS_PRINT???

Thanks in advance!

Statistics: Posted by IPQ — Tue Apr 12, 2016 2:32 pm


]]>