VS Arduino
Visual Micro >> Usb/Serial/WiFi Debugging >> ESP Verbose Debug Level
https://www.visualmicro.com/forums/YaBB.pl?num=1647943336

Message started by The_Specialist on Mar 22nd, 2022 at 10:02am

Title: ESP Verbose Debug Level
Post by The_Specialist on Mar 22nd, 2022 at 10:02am
Hi,

I tried to set the board.txt to level 5 for verbose level, but no output of verbose, the strange thing is that in the visual micro menu I have only: error, info, warning, debug is showed

when I add this to my code I have also only those four output to my serial monitor.



Quote:
#ifdef CORE_DEBUG_LEVEL
#undef CORE_DEBUG_LEVEL
#endif
//
#define CORE_DEBUG_LEVEL 5

void setup() {
     Serial.begin(115200);
     while (!Serial);

     Serial.setDebugOutput(true);
     //log_v("Verbose");
     //log_d("Debug");
     //log_i("Info");
     //log_w("Warning");
     //log_e("Error");[/code]



Naamloos5.png ( 6 KB | 2 Downloads )

Title: Re: ESP Verbose Debug Level
Post by The_Specialist on Mar 22nd, 2022 at 10:22am
I changed the wrong one in the board.txt. This is what I got

v1.menu.DebugLevel.none=Noneesp32doit-devkit-
v1.menu.DebugLevel.none.build.code_debug=0esp32doit-devkit-
v1.menu.DebugLevel.error=Erroresp32doit-devkit-
v1.menu.DebugLevel.error.build.code_debug=1esp32doit-devkit-
v1.menu.DebugLevel.warn=Warnesp32doit-devkit-
v1.menu.DebugLevel.warn.build.code_debug=2esp32doit-devkit-
v1.menu.DebugLevel.info=Infoesp32doit-devkit-
v1.menu.DebugLevel.info.build.code_debug=3esp32doit-devkit-
v1.menu.DebugLevel.debug=Debugesp32doit-devkit-
v1.menu.DebugLevel.debug.build.code_debug=4esp32doit-devkit-

Soo I have add

v1.menu.DebugLevel.verbose=Verboseesp32doit-devkit-
v1.menu.DebugLevel.verbose.build.code_debug=5esp32doit-devkit-

It still doesn't shown up.

Title: Re: ESP Verbose Debug Level
Post by Simon@Visual Micro on Mar 22nd, 2022 at 10:42am
Thanks for the report.

The verbose option has not been added for that board menu, which is supplied by the espressif esp32 board package to Visual Micro. 

Can you confirm if you are adding the new menu entries in the board packages board.txt, or into a local board.txt within the project?


Title: Re: ESP Verbose Debug Level
Post by Simon@Visual Micro on Mar 22nd, 2022 at 11:10am
You can override the currently selected entry on the board menu, by adding a local board.txt file to the project (vMicro > Add Code > Add Local board.txt), and then adding the below entry, in this case it will override the "None" option to be "Verbose":
[code]menu.DebugLevel.none.build.code_debug=5[/code]

Alternatively you can modify the board.txt in the installed esp32 board package, to add the entries for your board.  Once changed ensure you restart Visual Studio to make sure the new menu item is visible.






Title: Re: ESP Verbose Debug Level
Post by The_Specialist on Mar 25th, 2022 at 1:42pm
Yes, I tried to add the verbose option to the board.txt, but it diden't work.

I found out that it is board depended. For example the MH ET Live ESP32 mini does have the verbose option too select. Very strang why the doit doesn't apply to that.

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