Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
ESP32 verbose core logging (Read 287 times)
drs
Junior Member
**
Offline



Posts: 26
ESP32 verbose core logging
Jun 21st, 2021 at 3: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
Back to top
« Last Edit: Jun 21st, 2021 at 5:31pm by drs »  
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1014
Re: ESP32 verbose core logging
Reply #1 - Jun 22nd, 2021 at 3: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.

Back to top
 
 
IP Logged
 
drs
Junior Member
**
Offline



Posts: 26
Re: ESP32 verbose core logging
Reply #2 - Jun 22nd, 2021 at 7:28pm
 
Thanks,

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

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

BR
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print