VS Arduino
Visual Micro >> Usb/Serial/WiFi Debugging >> ESP32 verbose core logging
https://www.visualmicro.com/forums/YaBB.pl?num=1624287048

Message started by drs on Jun 21st, 2021 at 2:50pm

Title: ESP32 verbose core logging
Post by drs on Jun 21st, 2021 at 2:50pm
Hallo,
not sure, if the topic has been discussed already but I cannot find any answer in the forum.
I need to debug my Arduino ESP32 BLE app and want to switch on the core logging messages. Normally, I thought its easy, just need to go vmicro --> core debug level --> verbose.
BUT, It prints nothing to serial monitor.
After digging around I found that I need to change sdkconfig.h:
1. change CONFIG_LOG_DEFAULT_LEVEL to 5
2. add #define USE_ESP_IDF_LOG

I also tried to add these defines in compiler options, but it worked only half...since CONFIG_LOG_DEFAULT_LEVEL=5 showed only 90% of core log messages and decoding.

It only works 100% with the above two modifications of sdkconfig.h
My question; did I miss something for easier configuration?

Thanks in advance
DRS

Title: Re: ESP32 verbose core logging
Post by Simon@Visual Micro on Jun 22nd, 2021 at 2:35pm
You should also be able to add any manual build time defines, in vMicro > Project Properties > Micro General > Configuration Defines (and specific ones for Core/Library/Project are also available)
e.g. CONFIG_LOG_DEFAULT_LEVEL=5

I don't believe you should need to modify the core to get the debug logging to work correctly.


Title: Re: ESP32 verbose core logging
Post by drs on Jun 22nd, 2021 at 6:28pm
Thanks,

I added in Micro General (Project Globals) -> Defines.

I will now add to Micro General (Current Configuration) -> Configuration Defines.

BR

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.