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
Hot Topic (More than 8 Replies) Upgrade from vs2019 to vs2022 causes freeze of esp32 (Read 1549 times)
martijnvb
Newbies
*
Offline


Posts: 5
Joined: Aug 24th, 2022
Upgrade from vs2019 to vs2022 causes freeze of esp32
Aug 24th, 2022 at 1:39pm
Print Post  
After upgrading vs2019 to vs2022, and installing the correct vmicro version, my esp32 dev board freezes when trying to debug. The build in release mode runs fine, but in debug mode (serial debug enabled) the board freezes, even after restarting the board disconnected from the computer. Only way to bring it back to life is deploy a release build. On the same computer, closing vs2022 and running vs2019, all works as expected.
« Last Edit: Aug 31st, 2022 at 11:01am by martijnvb »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upgrade from vs2019 to vs2022 causes freeze of esp32
Reply #1 - Aug 24th, 2022 at 1:56pm
Print Post  
Thanks for the output. The 2019 output shows release build. Please give debug build

Thanks
  
Back to top
WWW  
IP Logged
 
martijnvb
Newbies
*
Offline


Posts: 5
Joined: Aug 24th, 2022
Re: Upgrade from vs2019 to vs2022 causes freeze of esp32
Reply #2 - Aug 31st, 2022 at 11:02am
Print Post  
Done
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Upgrade from vs2019 to vs2022 causes freeze of esp32
Reply #3 - Aug 31st, 2022 at 12:32pm
Print Post  
Thanks for the updated logs.

Also try updating the ESP32 board package to the latest (2.0.4), it may improve the situation.

Can you attach a screenshot of the whole IDE when it is debugging and frozen, with the output window open?
« Last Edit: Aug 31st, 2022 at 1:42pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
martijnvb
Newbies
*
Offline


Posts: 5
Joined: Aug 24th, 2022
Re: Upgrade from vs2019 to vs2022 causes freeze of esp32
Reply #4 - Aug 31st, 2022 at 2:18pm
Print Post  
updating the ESP32 board package: What is the best way to do that? When i try to update from vmicro UI, it looks like there 's no update available, maybe i look in the wrong direction?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Upgrade from vs2019 to vs2022 causes freeze of esp32
Reply #5 - Aug 31st, 2022 at 2:24pm
Print Post  
If you press the "Check for Updates" button this should update the list with the latest.

If you can only see up to v1.0.6 still, try changing the URL on the vMicro > General > IDE Locations screen to the one below, which includes all latest releases:
Code
Select All
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json 

  
Back to top
 
IP Logged
 
martijnvb
Newbies
*
Offline


Posts: 5
Joined: Aug 24th, 2022
Re: Upgrade from vs2019 to vs2022 causes freeze of esp32
Reply #6 - Aug 31st, 2022 at 2:49pm
Print Post  
Thanks, i updated the board succesfully. Unfortunately it did not solve the problem. Here is a screenshot of the freezing situation, the esp dev board is unresponsive now (no display). Done in vs2022, in debug mode
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Upgrade from vs2019 to vs2022 causes freeze of esp32
Reply #7 - Aug 31st, 2022 at 3:00pm
Print Post  
Thanks for the update.

1) Can you try running the debugging with the same board with the simple "Blink" sketch?

2) Please state what speed the Serial.begin() in your code is using? Also state if you set the speed in the serial monitor yourself or via the debugger menu?

« Last Edit: Aug 31st, 2022 at 6:36pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
martijnvb
Newbies
*
Offline


Posts: 5
Joined: Aug 24th, 2022
Re: Upgrade from vs2019 to vs2022 causes freeze of esp32
Reply #8 - Sep 1st, 2022 at 9:30am
Print Post  
The issue is solved.
Indeed, Blink did work properly. 
I upgraded all the libraries. After that, the behaviour changed, the esp dev board keeps rebooting, so it imediately crashes before entering the loop. 

It occurred i had some old code that tried to set the LIGHT_LOAD_BIT, it seems not to be correct (wrong address perhaps) that was called in the setup routine. After disabling that, everything runs fine. 

Still weird that on vs2019 it worked like a charm.

Thanks so much for your support.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint