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 Core debug level not working properly (Read 1655 times)
The_Specialist
Full Member
***
Offline


Posts: 227
Joined: Jul 1st, 2020
Core debug level not working properly
Aug 28th, 2022 at 10:06am
Print Post  
When I compiling the micro build doesn't show me anything (0%, 2%, 4%...) but it uploads, only if I compile with verbose on I see some messages in the micro buld... 

After uploading in doesn't show me the complete log, when I set in the menu the core debug level to info. It also crashes on a log report of a library that was working before. I recently updated all my software including visual micro. I am working on vs2019. I dit clean the solution. I tried other projects and they work properly. I have added my log, maybe you can find anything what is wrong.
« Last Edit: Aug 28th, 2022 at 10:22am by The_Specialist »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 227
Joined: Jul 1st, 2020
Re: Core debug level not working properly
Reply #1 - Aug 28th, 2022 at 10:34am
Print Post  
These are the only I can see

[   454][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled

[  4496][I][Player-URL-V2.ino:146] setup(): Info
[  4496][W][Player-URL-V2.ino:147] setup(): Warning
[  4496][E][Player-URL-V2.ino:148] setup(): Error

after setting

     Serial.setDebugOutput(true);//Ook visual micro menu
     log_v("Verbose");
     log_d("Debug");
     log_i("Info");
     log_w("Warning");
     log_e("Error");

[  4956][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000

I am using WiFi so normaly I have to see a lot more.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core debug level not working properly
Reply #2 - Aug 28th, 2022 at 12:15pm
Print Post  
I think you are saying that the mcu crashes, it might be code related.

We always recommend keeping things simple when testing. In this case you have the serial debug enabled. Yet you are also trying to debug using the serial debug trace of the mcu itself.

I suggest trying with serial debug off. If that still fails then test same in the arduino ide. If that is also a problem then it is a board core issue not a Visual Micro issue.

Switch the configuration on the toolbar from Debug to Release
« Last Edit: Aug 28th, 2022 at 12:18pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 227
Joined: Jul 1st, 2020
Re: Core debug level not working properly
Reply #3 - Sep 4th, 2022 at 10:38am
Print Post  
I was on the wrong pad in searching what the issue was. It had nothing to do by updates I have made in using the latest ESP Arduino, Visual Studio and Visual Micro.

The WiFi secure was not in use and there for didn't get any messages of that. The external library was using a callback to display the log. I forgot that. Now it's working and even crashes anymore.

Trying the example WiFiScan helped me a lot. And maybe changing the compiler in Visual Studio->Project->Properties->Platfrom to Clang did help. But that was the only thing I did change as far as I remember. Or I didn't select and other board and than selected my board back to reload the settings. Everything is working now.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core debug level not working properly
Reply #4 - Sep 4th, 2022 at 11:20am
Print Post  
Great. the project settings are not used to control the compile, they have no effect other than for intellisense.
  
Back to top
WWW  
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 227
Joined: Jul 1st, 2020
Re: Core debug level not working properly
Reply #5 - Sep 4th, 2022 at 5:17pm
Print Post  
I used the project settings to select the platform (Clang in my case). If I understand it right they are not use to compile my program?

This topic was about logs I didn't receive. But apparently that was for other reasons.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core debug level not working properly
Reply #6 - Sep 4th, 2022 at 5:25pm
Print Post  
Thanks, yes you understand correctly.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint