UART1

potter68
Posts: 1
Joined: Wed Oct 11, 2017 10:16 pm

UART1

Postby potter68 » Wed Oct 11, 2017 10:48 pm

Hello,

i am trying to use UART1 for debugging.

This is what i have done so far:

- Connected FTDI RX pin to ESP8266 GPIO2
- user_init():
uart_init(BIT_RATE_115200, BIT_RATE_115200);
os_install_putc1((void *)uart1_write_char);
PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO2, FUNC_U1TXD_BK);
os_printf("Hello");

I did point uart1_write_char to the same function in your uart.c file.
Is this correct? Or should i implement it by myself?

My problem is that there is no data at all received by my terminal program in Ubuntu.

What am i doing wrong?

Best regards,
potter68

User avatar
pratik
Posts: 467
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: UART1

Postby pratik » Mon Nov 06, 2017 4:03 pm

Are you able to send characters to UART1 directly using uart1_write_char function?
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Who is online

Users browsing this forum: No registered users and 14 guests