Page 1 of 1

ESP32 How to turn off automatic log of system output

Posted: Wed Jan 17, 2018 2:01 pm
by Devil月哥
ESP32 How to turn off automatic log of system output
The system defaults to output a lot of logs, you can set the shutdown, only output my own definition of the log.

Re: ESP32 How to turn off automatic log of system output

Posted: Wed Jan 17, 2018 2:55 pm
by ESP_igrr
1. Disabling ROM bootloader output: pull down GPIO15.

2. Disabling 2nd stage bootloader output: make menuconfig, go to "Bootloader config" and set "Bootloader log verbosity" to "No output"

3. Application: make menuconfig, go to "Component config", "Log output", set "Default log verbosity" to "No output".

This should remove all log output.

Re: ESP32 How to turn off automatic log of system output

Posted: Thu Jan 18, 2018 5:46 am
by Devil月哥
Thank you. It's trying to set up

Re: ESP32 How to turn off automatic log of system output

Posted: Thu Aug 02, 2018 4:44 pm
by urbanze
ESP_igrr wrote: 2. Disabling 2nd stage bootloader output: make menuconfig, go to "Bootloader config" and set "Bootloader log verbosity" to "No output"
How to disable ONLY 2nd stage output? Setting "no output" in menuconfig disable all output, including my code. I tried to set new level (esp_log_level_set("*", ESP_LOG_INFO);) in start of code, but obvious, this doesnt work (spected).


Edit:
Disabling logput in menuconfig and use "#define LOG_LOCAL_LEVEL ESP_LOG_INFO" worked.

2nd stage boot output = OFF
my code output = ON

Re: ESP32 How to turn off automatic log of system output

Posted: Mon Jun 24, 2019 9:38 am
by Harvey
Hi:
How to close the log(printf/esp_log) in "main.c". I want to change the UART GPIO1 and GPIO3 to IIC SCL and SDA, so uart must be turned off to avoid conflicts.

请问如何在主程序关闭log,不去改动硬件,只做软件修改。需求是需要把UART的GPIO1和GPIO3改为IIC口,所以必须关闭uart,以免冲突。

Re: ESP32 How to turn off automatic log of system output

Posted: Tue Feb 11, 2020 7:50 am
by somesh
ESP_igrr wrote:
Wed Jan 17, 2018 2:55 pm
1. Disabling ROM bootloader output: pull down GPIO15.

2. Disabling 2nd stage bootloader output: make menuconfig, go to "Bootloader config" and set "Bootloader log verbosity" to "No output"

3. Application: make menuconfig, go to "Component config", "Log output", set "Default log verbosity" to "No output".

This should remove all log output.
I have disabled all this setting's but still getting logs. please see following logs.
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x400969e5 PS : 0x00060833 A0 : 0x8009414d A1 : 0x3ffbd640
A2 : 0x3ffdfc80 A3 : 0x3ffdfdec A4 : 0x00000001 A5 : 0x00000001
A6 : 0x00060820 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x3ffb59bc
A10 : 0x3ffb59bc A11 : 0x00000000 A12 : 0x80095102 A13 : 0x3ffbd550
A14 : 0x00000003 A15 : 0x00060023 SAR : 0x00000000 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000004 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

ELF file SHA256: c9b29b84069ce8afd017c6517efc1710e00046301e40eee803f0a5e97e234019

Backtrace: 0x400969e5:0x3ffbd640 0x4009414a:0x3ffbd660 0x400da88a:0x3ffbd680 0x40094f1e:0x3ffbd710

Rebooting...
How to disable this?

Re: ESP32 How to turn off automatic log of system output

Posted: Tue Feb 11, 2020 12:23 pm
by ESP_Sprite
That is not a log, that is a crash dump. 'Easiest' way to get rid of this is to make sure there are no errors in your code ;) but you can also change if this is printed out in menuconfig: iirc components -> esp-32-specific -> panic handler behaviour -> set to 'silent reboot'.

Re: ESP32 How to turn off automatic log of system output

Posted: Tue Feb 11, 2020 1:02 pm
by somesh
ESP_Sprite wrote:
Tue Feb 11, 2020 12:23 pm
That is not a log, that is a crash dump. 'Easiest' way to get rid of this is to make sure there are no errors in your code ;) but you can also change if this is printed out in menuconfig: iirc components -> esp-32-specific -> panic handler behaviour -> set to 'silent reboot'.
Ok. Thanks.

Re: ESP32 How to turn off automatic log of system output

Posted: Tue Aug 02, 2022 6:21 pm
by felipedeoliveira
Helllo, I'm trying to do the same for the esp32C3, instead of pulling down GPIO15, witch one should I pull down?

Re: ESP32 How to turn off automatic log of system output

Posted: Wed Aug 03, 2022 11:27 am
by warwick
ESP_Sprite wrote:
Tue Feb 11, 2020 12:23 pm
That is not a log, that is a crash dump. 'Easiest' way to get rid of this is to make sure there are no errors in your code ;) but you can also change if this is printed out in menuconfig: iirc components -> esp-32-specific -> panic handler behaviour -> set to 'silent reboot'.
Hello - just wondering if there is some way to set the panic handler behaviour to "silent reboot" in Arduino framework? is there a register or similar in the ESP32 which controls this output, which can be set or cleared during run time?