Page 1 of 1

Log output on UART1 does not work any more

Posted: Thu Sep 28, 2017 4:28 pm
by novalight
I am using sdkconfig with custom log output: UART1 on GPIO16 and GPIO17.

Since a commit from a few days (sorry, can't pinpoint it down) it stopped logging anything after the bootloader. It seams, the output gets somehow disabled. I fixed it (using arduino as idf component) this way, after the first lines of code I do:

Code: Select all

    HardwareSerial loggerRS485_2(1);
    loggerRS485_2.begin(115200, SERIAL_8N1, 16, 17);
    loggerRS485_2.println("Hello on UART1");
    loggerRS485_2.flush();
And voila, the logging comes back. I think this should somehow be considered a bug. When you select logging on UART1 in sdkconfig, it should not be disabled somehow. Does anybody know, what has been changed/where this could come from?

Re: Log output on UART1 does not work any more

Posted: Wed Oct 18, 2017 7:54 am
by novalight
There is now a github issue regarding this bug:
https://github.com/espressif/esp-idf/issues/1131