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) Why can't I run the project? (Read 2531 times)
bbhxwl
Newbies
*
Offline


Posts: 8
Joined: Mar 12th, 2022
Why can't I run the project?
Mar 13th, 2022 at 2:35am
Print Post  
This is always the case after running. I can run the same code using Arduino ide.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
bbhxwl
Newbies
*
Offline


Posts: 8
Joined: Mar 12th, 2022
Re: Why can't I run the project?
Reply #1 - Mar 13th, 2022 at 3:04am
Print Post  
I have commented all the code. There are only 2 lines of code and it can't run. It seems to upload successfully, but the program just doesn't run.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
bbhxwl
Newbies
*
Offline


Posts: 8
Joined: Mar 12th, 2022
Re: Why can't I run the project?
Reply #2 - Mar 13th, 2022 at 3:07am
Print Post  
Can I only use vs2019 to develop code, have intelligent perception, and then copy the code to Arduino ide to run?

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Why can't I run the project?
Reply #3 - Mar 13th, 2022 at 2:48pm
Print Post  
Hi,

I can not see an attachment with the verbose output mentioned in the yellow box above.

However, if you are new to visual micro I suggest you alter the configuration on toolbar from "Debug" to "Release". Then build and upload again.

Then if you have a problem please follow the guide in the yellow box near the top of this page.

We are UK time.
« Last Edit: Mar 13th, 2022 at 2:49pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
bbhxwl
Newbies
*
Offline


Posts: 8
Joined: Mar 12th, 2022
Re: Why can't I run the project?
Reply #4 - Mar 13th, 2022 at 3:49pm
Print Post  
Still not.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
bbhxwl
Newbies
*
Offline


Posts: 8
Joined: Mar 12th, 2022
Re: Why can't I run the project?
Reply #5 - Mar 13th, 2022 at 3:50pm
Print Post  
rt
  

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: Why can't I run the project?
Reply #6 - Mar 13th, 2022 at 6:43pm
Print Post  
Switch serial debug OFF. Change to Release
« Last Edit: Mar 13th, 2022 at 6:43pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
WWW  
IP Logged
 
bbhxwl
Newbies
*
Offline


Posts: 8
Joined: Mar 12th, 2022
Re: Why can't I run the project?
Reply #7 - Mar 14th, 2022 at 12:58am
Print Post  
OK, can you tell me why?

I tried to uninstall vmicro, reinstall it, and need to be reactivated. Does it take up the number of activations I purchased?

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Why can't I run the project?
Reply #8 - Mar 14th, 2022 at 2:08am
Print Post  
It is a bug in the esp32 1.0.6 toolchain you are using. If you update to the latest 2x it works okay

The bug is that Serial.begin() can only be used 1 time. Your code has Serial.begin() and the Visual Micro serial debugg also uses serial.begin(). 1.0.6 had problem.

You can replicate the problem with this code in Arduino IDE.

void setup()
{
Serial.begin(115200);
Serial.begin(115200);
}
  
Back to top
WWW  
IP Logged
 
bbhxwl
Newbies
*
Offline


Posts: 8
Joined: Mar 12th, 2022
Re: Why can't I run the project?
Reply #9 - Mar 14th, 2022 at 7:29am
Print Post  
Where can I set esp32 2 x? I don't know where to watch it?

  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Why can't I run the project?
Reply #10 - Mar 14th, 2022 at 3:46pm
Print Post  
The ESP32 v2.0.0 package can be installed with the Board Manager, in the Visual Micro Explorer:
Documentation: https://www.visualmicro.com/page/User-Guide.aspx?doc=Board-Manager.html
Video Guide: https://www.youtube.com/watch?v=yHBP5TOXr2I
  
Back to top
 
IP Logged
 
bbhxwl
Newbies
*
Offline


Posts: 8
Joined: Mar 12th, 2022
Re: Why can't I run the project?
Reply #11 - Mar 15th, 2022 at 3:03am
Print Post  
Don't see 2.0

  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Why can't I run the project?
Reply #12 - Mar 15th, 2022 at 9:58am
Print Post  
If you use the below JSON URL for your ESP32 boards, the versions above 1.0.6 should be available:
Code
Select All
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json 



This should replace the one you have at present for ESP32 in the IDE Locations > Optional Additional Board manager URLs.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint