Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • 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
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ESP32 verbose core logging (Read 1814 times)
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
ESP32 verbose core logging
Jun 21st, 2021 at 2:50pm
Print Post  
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
« Last Edit: Jun 21st, 2021 at 4:31pm by drs »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: ESP32 verbose core logging
Reply #1 - Jun 22nd, 2021 at 2:35pm
Print Post  
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
Joined: Mar 20th, 2018
Re: ESP32 verbose core logging
Reply #2 - Jun 22nd, 2021 at 6:28pm
Print Post  
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 TopicPrint