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) VM always trying OTA upload (Read 2066 times)
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
VM always trying OTA upload
Mar 6th, 2023 at 2:52pm
Print Post  
VS2022, Arduino 2, ESP32
Partition scheme set to No OTA(Large App)
But VM always switched to OTA in 2-3 seconds after I choose COM port and I have to compete at speed with it.
« Last Edit: Mar 6th, 2023 at 2:55pm by Kabron »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2377
Joined: Feb 13th, 2019
Re: VM always trying OTA upload
Reply #1 - Mar 6th, 2023 at 3:06pm
Print Post  
Thanks for the report.

The partition scheme change should have no effect on selecting the COM port to upload with.

There can be a delay reordering the COM port list if devices are quickly changing. Do you find when you select the COM Port it is in one order in the list (e.g. esp32 - 1.2.3.4 followed by e.g. COM11), so you pick the second entry... and it ends up showing the OTA upload?

Once the COM port is selected I assume this works OK?

Tip: If you want to upload via OTA but use the COM port to receive Serial Data, you can leave the COM port set to the OTA port, and use the vMicro > General > Monitor Alternative to load the Serial Monitor, without having to constantly re-select the Upload port.
  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: VM always trying OTA upload
Reply #2 - Mar 6th, 2023 at 3:55pm
Print Post  
I choose, say, COM26. It displayed for 1-3 seconds, then returns to IP address. 
If I have time to click upload button, then I got serial upload, otherwise it tried OTA. 
All possible manipulation were tested with no luck. 
Also intellisence not working at all.   
Even types do not recognized. 
But compilation ends successfully.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2377
Joined: Feb 13th, 2019
Re: VM always trying OTA upload
Reply #3 - Mar 6th, 2023 at 3:58pm
Print Post  
Thanks for the update.

Can you attach a screenshot of the IDE with the COM Port list expanded before you click it, and open it again after it has uploaded (and gone to OTA) and attach that too?

Please also enable the options shown at the top of the page, and attach the build output so we can understand the intellisense issue further.
  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: VM always trying OTA upload
Reply #4 - Mar 6th, 2023 at 4:12pm
Print Post  
I could made only one screen shot because there are no alternatives.
Better to see video.
« Last Edit: Mar 6th, 2023 at 4:13pm by Kabron »  

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


Posts: 2377
Joined: Feb 13th, 2019
Re: VM always trying OTA upload
Reply #5 - Mar 6th, 2023 at 4:32pm
Print Post  
Thanks for the video with the COM Port Issue, we will attempt to replicate this locally for investigation.

The intellisense should be improved in the latest version of Visual Micro, which can be downloaded from the below page:
https://www.visualmicro.com/page/Arduino-Visual-Studio-Downloads.aspx

To harness the new intellisense engine, you will need to:
  • Install the "Linux and Embedded Development with C++" workload (from Tools > Get Tools and Features)
  • Backup your entire solution to a ZIP File
  • Delete the SLN, VXPROJ, VCXPROJ.FILTERS and VCXPROJ.USER files where they exist
  • Open the project from File > Open > Arduino Project, and locate the ProjectName.ino file


This should re-add all files in your project to a newer (Linux) project, which has greatly improved intellisense.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2377
Joined: Feb 13th, 2019
Re: VM always trying OTA upload
Reply #6 - Mar 6th, 2023 at 5:42pm
Print Post  
Regarding the selection of the COM port, if you un-check the vMicro > General > Auto Select Board/Port When a Device Connects, it should stop this from happening.
  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: VM always trying OTA upload
Reply #7 - Mar 7th, 2023 at 5:49am
Print Post  
Port - solved
Intellisence errors - gone
But Linking now failed.
  

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


Posts: 2377
Joined: Feb 13th, 2019
Re: VM always trying OTA upload
Reply #8 - Mar 7th, 2023 at 10:39am
Print Post  
Have you updated Visual Micro to the latest version? (the log shows 1.2022.0905-4)

Is this the same after running a Build > Clean Solution and recompiling?

Please also enable the vMicro > Compiler > Show Build Properties option when attaching log files so we can see all settings.
« Last Edit: Mar 7th, 2023 at 11:37am by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Kabron
Full Member
***
Offline


Posts: 170
Joined: Nov 1st, 2015
Re: VM always trying OTA upload
Reply #9 - Mar 7th, 2023 at 3:34pm
Print Post  
Something went wrong during update and I had to reinstall VS. 
After following all yours recommendations everything works fine.

Thanks a lot.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint