Hi all,
I am trying to interface my ESP8266 against a pre-existing device over RS-485 (via a TTL-RS485 converter), and wish to suppress the transmission of the boot status messages (the ones at 77400kbps) via the serial Tx line to avoid causing issues for the device.
Looking at the UART documentation, it says that I should call "system_uart_swap". While putting this as the first line in my "user_init" function does suppress any further output (e.g. any "os_printf" invocations), it doesn't stop the boot messages. Likewise, only calling the "system_uart_deswap" function before "os_printf", followed immediately by another "system_uart_swap" does not stop the messages at the next boot.
Is there some other place that I should be invoking "system_uart_swap", or should I change things so that I transmit via UART 1, and receive via UART 0, bypassing the UART 0 transmit functionality?
(I am using SDK version 1.5.2 via the pfalcon "esp-open-sdk" GitHub repository)
Thanks,
Ian
Silencing serial boot messages
-
- Posts: 1
- Joined: Mon May 23, 2016 9:07 pm
Re: Silencing serial boot messages
Postby TriMesh » Wed May 25, 2016 11:22 pm
As far as I can see, the boot ROM messages will always be output on U0TXD - there is nothing you can do about this, because at the point they are being output your user code hasn't got control of the system. You could try connecting your RS485 TX data line to GPIO2 and then redirecting the output there using the pin multiplexer as one of the first things in your main() routine. You might have to put a weak pullup on the pin to hold the TX line in the mark state until you can reconfigure the pins, though.
Who is online
Users browsing this forum: No registered users and 235 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.