suppress boot msg on ESP8266

design4
Posts: 5
Joined: Tue May 18, 2021 3:49 pm

suppress boot msg on ESP8266

Postby design4 » Tue May 18, 2021 3:59 pm

Hi genius,

Im using esp8266 freeertos sdk. esptool.py v2.4.0.

I already do step from this link "https://www.esp32.com/viewtopic.php?t=1658".
Summary:-
1. As mentioned in earlier posts (> 2.5 years ago), strap GPIO15 to ground.
In "make menuconfig"
2. Bootloader config -> Bootloader log verbosity -> (no output)
3. Component config -> Log output -> Default log verbosity (no output)


But, im unable to fully suppress all msg during startup. The device still printing as below at baud 74880.
ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x60000014, len 8, room 16
tail 8


Thanks in advanced

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

Re: suppress boot msg on ESP8266

Postby Her Mary » Thu May 20, 2021 11:24 am

Those logs are in the ROM code, I'm afraid that you cannot disable them.. Maybe the only way is to swap UART to other pins instead..There is an API `uart_enable_swap`..

design4
Posts: 5
Joined: Tue May 18, 2021 3:49 pm

Re: suppress boot msg on ESP8266

Postby design4 » Mon Jun 21, 2021 11:22 am

Her Mary wrote:Those logs are in the ROM code, I'm afraid that you cannot disable them.. Maybe the only way is to swap UART to other pins instead..There is an API `uart_enable_swap`..


Hi,

Agenda: My agenda is to disable print during power ON as mentioned in previous comment. I also want to use the UART for my AT command. The garbage print is very disturbance when multiple ESP is connected in RS485 line.

1) I have enable uart_enable_swap() in make menuconfig msys32. Upon power ON, still didnt resolve my problem. And anything I print for my UART command, doesnt work anymore.

2) It print before app_main(). If I use uart_enable_swap() in app_main(), it still can print before enter app_main().

Any solution?

Thanks in advanced.

design4
Posts: 5
Joined: Tue May 18, 2021 3:49 pm

Re: suppress boot msg on ESP8266

Postby design4 » Tue Jun 22, 2021 5:55 pm

Her Mary wrote:Those logs are in the ROM code, I'm afraid that you cannot disable them.. Maybe the only way is to swap UART to other pins instead..There is an API `uart_enable_swap`..



Hi master,

It doesnt work. I put in in app_main() and it prints before API `uart_enable_swap`.

Any solution for this? Can I put comment '//' in the source file? Did you know in what file source? It prints in baud 74880

This one also printed. "phy_version: 1159.0, 85b471e, Apr 21 2020, 17:03:08, RTOS new<CR><LF>". It prints in my baud rate 115200. I cannot find in phy_version. I dont want to suppress ESP_LOGI msg because im using it.

Thanks in advance master

design4
Posts: 5
Joined: Tue May 18, 2021 3:49 pm

Re: suppress boot msg on ESP8266

Postby design4 » Tue Jun 29, 2021 12:35 pm

Her Mary wrote:Those logs are in the ROM code, I'm afraid that you cannot disable them.. Maybe the only way is to swap UART to other pins instead..There is an API `uart_enable_swap`..


Hi, thanks for reply. It happen before main. So if i put swap, it still print.

Thanks in advanced

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

Re: suppress boot msg on ESP8266

Postby Her Mary » Tue Jul 13, 2021 3:02 pm

The ROM log cannot be disabled, it will be printed from the original UART anyway. You can try to change your hardware, use MTDO and MTCK pins as a new UART to instead of the original UART, and call UART swap API in main() to make the application print logs from the new UART. If this method still cannot solve your problem, then I don't know if there is any other solution. Maybe you can ask for help from the technical support. https://www.espressif.com/en/contact-us ... -inquiries

Who is online

Users browsing this forum: No registered users and 10 guests