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 Compile and Upload will not replace existing code on ESP32 (Read 1337 times)
pic_az
Newbies
*
Offline


Posts: 2
Joined: May 28th, 2023
Compile and Upload will not replace existing code on ESP32
Aug 31st, 2023 at 8:57pm
Print Post  
Just recently I found that after compile and upload the previous code is not being replaced on ESP32. If I replace the code on the board with a program like blink and then upload the new code, the changes are there. I noticed this happening about a month ago. To add new code now takes a long time because of this process. Is it a setting that got changed? I am using VS2022 with the latest VSMicro.
  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: Compile and Upload will not replace existing code on ESP32
Reply #1 - Sep 1st, 2023 at 8:00am
Print Post  
Thanks for the report.

Can you enable the vMicro > Uploader > Verbose setting, and then perform the build and upload, and attach the complete log when the issue occurs?
  
Back to top
IP Logged
 
pic_az
Newbies
*
Offline


Posts: 2
Joined: May 28th, 2023
Re: Compile and Upload will not replace existing code on ESP32
Reply #2 - Sep 1st, 2023 at 11:04pm
Print Post  
Hi Simon,

I figured it out. I was a developer years ago using older versions of VS. When I built, the code was saved before building. I am using 2022 Community version and that functionality is not in that version. So I installed an addin that will save every 5 seconds. I am sorry to bother you with this. Thanks for your response.
Joey
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile and Upload will not replace existing code on ESP32
Reply #3 - Sep 2nd, 2023 at 12:56am
Print Post  
Thanks for the info. You don't need that addin. This is a bug in recent vs versions for some users and easily solved...

Close the solution then delete the ".vs" folder from below the folder where the solution (.sln) exists. After you reopen the solution the save will work.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint