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 ESP32 OTA upload stopped working (Read 242 times)
MB
Newbies
*
Offline


Posts: 9
Joined: Oct 16th, 2015
ESP32 OTA upload stopped working
Jan 1st, 2025 at 3:13pm
Print Post  
Something happened with My VisualMicro & MSVisualStudio2022 environment.
When I use password for OTA it fails to Authorize even correct password is entered.
I made some investigation and found the reason, but don't know hove solve this problem. In verbose upload mode it is shown that OTA password is not transferred from Visual Micro to espota.exe invocation, but word Password is used instead:
Upload method will be: bootloader
Uploading via Bootloader 
Port Properties (network)
     Name=ESP32_Net_Services_Basic_Example_2024122
     HostName=ESP32_Net_Services_Basic_Example_2024122
     Address=192.168.1.32
     port=3232
     Protocol=Any
     auth_upload=yes
     ssh_upload=no
     tcp_check=no
     board=esp32
     password=myesp32
\espota.exe -r -i 192.168.1.32 -p 3232 "--auth=Password" -f 32\Release/ESP32_Net_Services_Example.ino.bin"
Sending invitation to 192.168.1.32 ..
Authenticating...FAIL
15:59:54 [ERROR]: Authentication Failed
The uploader process failed

I copy pasted commad to windows cmd terminal, replaced word Password with correct pasword . This way upload soceedeed.
There must be somewhere script which does espota.exe invocation, but I do not have idea where to find it.
I tried to reinstall Visual Micro, but id didn't help.
When I compile and upload projects on traditional the latest version 1... Arduino OTA works without problems.
i tried it with VisualMicro builtin IDE and also with Arduino 1.6 / 1.8 mode with Arduino 1.8 installed.
Please help.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2565
Joined: Feb 13th, 2019
Re: ESP32 OTA upload stopped working
Reply #1 - Jan 2nd, 2025 at 1:34pm
Print Post  
Thanks for the report, we are investigating this issue and will update as soon as there is an update.

For now you can workaround this by adding the below entry to the project's local board.txt, and then restart Visual Studio:
tools.esp_ota.upload.field.password=myesp32
  
Back to top
IP Logged
 
MB
Newbies
*
Offline


Posts: 9
Joined: Oct 16th, 2015
Re: ESP32 OTA upload stopped working
Reply #2 - Jan 3rd, 2025 at 8:57am
Print Post  
Hi. Thank You that You are willing to investigate that and for workaround hint.
I cannot find board.txt file. Please give me path where this file resides.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2565
Joined: Feb 13th, 2019
Re: ESP32 OTA upload stopped working
Reply #3 - Jan 3rd, 2025 at 9:00am
Print Post  
The file can be added to any project by clicking vMicro > Add Code > Add Local Board.txt.

Then the entry can be added in, and then Visual Studio restarted.
  
Back to top
IP Logged
 
MB
Newbies
*
Offline


Posts: 9
Joined: Oct 16th, 2015
Re: ESP32 OTA upload stopped working
Reply #4 - Jan 3rd, 2025 at 9:52am
Print Post  
Workaround works thank You.
Is that mean that for this project OTA password will be what I put into boards.txt regardless o what is defined in project code?
Uploader still asked me for password stored in ESP32, but I don't know if it consider what I put into window, or always takes what is in board.txt.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2565
Joined: Feb 13th, 2019
Re: ESP32 OTA upload stopped working
Reply #5 - Jan 3rd, 2025 at 12:45pm
Print Post  
If you add the below property as well, it should stop prompting for the password and use the one set in the local board.txt.
network.password=myesp32

We will be releasing the fix for this later today so only the network.password property is required (as it is documented), and we will update this thread when it is available.
https://www.visualmicro.com/page/OTA-Uploads-for-ESP32.aspx
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2565
Joined: Feb 13th, 2019
Re: ESP32 OTA upload stopped working
Reply #6 - Jan 3rd, 2025 at 6:42pm
Print Post  
Please install the latest release (24.1211.6) from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

This will now use the password set in network.password or entered via the GUI, without the need for the additional tools.esp_ota.upload.field.password entry.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint