ESP32 How to turn off automatic log of system output

Devil月哥
Posts: 15
Joined: Sat Nov 25, 2017 3:43 am

ESP32 How to turn off automatic log of system output

Postby Devil月哥 » Wed Jan 17, 2018 2:01 pm

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.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

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

Postby ESP_igrr » 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.

Devil月哥
Posts: 15
Joined: Sat Nov 25, 2017 3:43 am

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

Postby Devil月哥 » Thu Jan 18, 2018 5:46 am

Thank you. It's trying to set up

User avatar
urbanze
Posts: 301
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

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

Postby urbanze » Thu Aug 02, 2018 4:44 pm

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

Harvey
Posts: 1
Joined: Mon Jun 24, 2019 9:34 am

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

Postby Harvey » Mon Jun 24, 2019 9:38 am

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,以免冲突。

somesh
Posts: 36
Joined: Tue Jun 25, 2019 6:44 am
Location: Pune
Contact:

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

Postby somesh » Tue Feb 11, 2020 7:50 am

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?
Thanks,
Somesh Burkule

ESP_Sprite
Posts: 9711
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » 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'.

somesh
Posts: 36
Joined: Tue Jun 25, 2019 6:44 am
Location: Pune
Contact:

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

Postby somesh » Tue Feb 11, 2020 1:02 pm

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.
Thanks,
Somesh Burkule

felipedeoliveira
Posts: 2
Joined: Mon Jun 20, 2022 4:38 pm

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

Postby felipedeoliveira » Tue Aug 02, 2022 6:21 pm

Helllo, I'm trying to do the same for the esp32C3, instead of pulling down GPIO15, witch one should I pull down?

warwick
Posts: 3
Joined: Tue Sep 21, 2021 1:51 pm

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

Postby warwick » Wed Aug 03, 2022 11:27 am

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?

Who is online

Users browsing this forum: Majestic-12 [Bot] and 64 guests