VS Arduino
Visual Micro >> Installation & Troubleshooting >> Error Uploading file to ESP via Arduino OTA
https://www.visualmicro.com/forums/YaBB.pl?num=1537382957

Message started by Marco2 on Sep 19th, 2018 at 6:49pm

Title: Error Uploading file to ESP via Arduino OTA
Post by Marco2 on Sep 19th, 2018 at 6:49pm
Hi,
I'm trying to upload to ESP but I get an error:

File not found

Enabling verbose log I got this:
[code]python.exe C:\Users\ADMINI~1\AppData\Local\ARDUIN~1\packages\esp8266\hardware\esp8266\23653B~1.0/tools/espota.py -i "192.168.1.145" -p "8266" "--auth=" -f C:\Users\ADMINI~1\AppData\Local\Temp\VMBuilds\SOULIS~1\ESP826~1\Release/SOULIS~1.BIN[/code]

Looking at the folder where BIN file should be, i get this file bin:

Souliss_ESP8266_CameraDaLetto.ino.bin

instead of:

SOULIS~1.BIN


How can I fix this?

Thanks

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Visual Micro on Sep 30th, 2018 at 9:08pm
What is the error?

Can I see the full verbose uploader output?

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Visual Micro on Oct 1st, 2018 at 11:30am
The next release allows long file names for esp uploads. Historically we drop long names back to windows 8.3 short file name format, windows supports both for each file.

Many older tool chains can't handle spaces so need the short version however it appears the esp can't handle short names.

Alternatively you could have overridden your temp build folder in "tools>options>visual micro" to a simpler folder structure outside of c:\users\[your name]

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Marco2 on Oct 1st, 2018 at 9:33pm
Hi,
this is verbose output:

[code]# Copy build result to 'Project>Property Pages>Intermediate Directory'
# Destination: file:///C:/Users/Administrator/Documents/Privati/Elettronica/Arduino/Souliss_ESP8266_503_SalottoSX/Release/

Uploading 'Souliss_ESP8266_503_SalottoSX' to 'Generic ESP8266 Module' using '192.168.1.141'
Uploader started for board Generic ESP8266 Module
Upload method will be: bootloader
Uploading via Bootloader
Port Properties (network)
     Name=salotto-sx-503
     HostName=salotto-sx-503.local.
     Address=192.168.1.141
     port=8266
     Protocol=Any
     tcp_check=no
     ssh_upload=no
     board=ESP8266_ESP01
     auth_upload=no
python.exe C:\Users\ADMINI~1\AppData\Local\ARDUIN~1\packages\esp8266\hardware\esp8266\23653B~1.0/tools/espota.py -i "192.168.1.141" -p "8266" "--auth=" -f C:\Users\ADMINI~1\AppData\Local\Temp\VMBuilds\SOULIS~2\ESP826~1\Release/SOULIS~1.BIN
Impossibile trovare il file specificato
[/code]

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Marco2 on Oct 1st, 2018 at 9:42pm
Hi,
i setup the "Build Folder" to D:\__User\VisualMicroBuild
"Build Folder Enabled" is true

When I compile i see one folder and files are wrotten inside D:\__User\VisualMicroBuild, and i see from output this:

Code (]Compiling 'Souliss_ESP8266_503_SalottoSX' for 'Generic ESP8266 Module'
Build Folder: "file:///D:/__User/VisualMicroBuild/Souliss_ESP8266_503_SalottoSX/esp8266_generic/Release"
Summary: Header=1 Prototypes=5 Imports=8[/code):


but when uploader start to upload bin to ESP seems use old path:

[code]# Copy build result to 'Project>Property Pages>Intermediate Directory'
# Destination: file:///C:/Users/Administrator/Documents/Privati/Elettronica/Arduino/Souliss_ESP8266_503_SalottoSX/Release/

Uploading 'Souliss_ESP8266_503_SalottoSX' to 'Generic ESP8266 Module' using '192.168.1.141'
Uploader started for board Generic ESP8266 Module
Upload method will be: bootloader
Uploading via Bootloader
Port Properties (network)
     Name=salotto-sx-503
     HostName=salotto-sx-503.local.
     Address=192.168.1.141
     port=8266
     Protocol=Any
     tcp_check=no
     ssh_upload=no
     board=ESP8266_ESP01
     auth_upload=no
python.exe C:\Users\ADMINI~1\AppData\Local\ARDUIN~1\packages\esp8266\hardware\esp8266\23653B~1.0/tools/espota.py -i "192.168.1.141" -p "8266" "--auth=" -f C:\Users\ADMINI~1\AppData\Local\Temp\VMBuilds\SOULIS~2\ESP826~1\Release/SOULIS~1.BIN
Impossibile trovare il file specificato

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Visual Micro on Oct 2nd, 2018 at 12:51pm
I'll try it again over the next couple of days however I used a lot of esp32 with OTA over the past few days without issue.

There is a minor change in the interim release that prevents use of windows short file names for upload to esp boards. Please try it, there is a link in the "Work in progress 1810.1" thread

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Marco2 on Oct 2nd, 2018 at 2:32pm

Tim@Visual Micro wrote on Oct 2nd, 2018 at 12:51pm:
I used a lot of esp32 with OTA


I'm using ESP not ESP32 and my OS is Windows 10.

I'll try the release 1810.1

Marco

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Marco2 on Oct 2nd, 2018 at 6:33pm
Hi,
I installled 1810.1
Something change but it still not work:

[code]Uploading 'Souliss_ESP8266_503_SalottoSX' to 'Generic ESP8266 Module' using '192.168.1.141'
Uploader started for board Generic ESP8266 Module
Upload method will be: bootloader
Uploading via Bootloader
Port Properties (network)
     Name=salotto-sx-503
     HostName=salotto-sx-503.local.
     Address=192.168.1.141
     port=8266
     Protocol=Any
     tcp_check=no
     ssh_upload=no
     board=ESP8266_ESP01
     auth_upload=no
python.exe "C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/espota.py" -i "192.168.1.141" -p "8266" "--auth=" -f "D:\__User\VISUAL~1\SOULIS~1\ESP826~1\Release/Souliss_ESP8266_503_SalottoSX.ino.bin"
Impossibile trovare il file specificato
[/code]

As you can see the BIN file is long version but path still remain short version, but with this version "Build Folder" is used.

Marco

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Marco2 on Dec 4th, 2018 at 9:31am
Hi,
I updated to latest version 1.1811.24 but issue still remain.
From my Laptop with windows 10 I'm not able to flash ESP via OTA, I get always same error.

Any help for this? I'm so bored to use serial cable each time, I have more that 20 node in my house, closed in electrical box inside the walls. Each time is a nightmare.

Thanks

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Visual Micro on Dec 4th, 2018 at 1:54pm
Which esp core have you installed?

Does this file exist?
"D:\__User\VISUAL~1\SOULIS~1\ESP826~1\Release/Souliss_ESP8266_503_SalottoSX.ino.bin"

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Marco2 on Dec 4th, 2018 at 1:57pm
Hi,
core 2.3.0.
Path exist and lot of files and folder are created when I compile.
I also tried to remove the custom path and leave all as default but same error happen.
If i copy this path
"D:\__User\VISUAL~1\SOULIS~1\ESP826~1\Release/Souliss_ESP8266_503_SalottoSX.ino.
bin"

and paste in Start->Run, Windows try to open the file .bin

Regards

Marco

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Visual Micro on Dec 4th, 2018 at 2:03pm
Sorry I missed the end of the file name but you can see it in the output you posted.

Use windows explore to see if "Souliss_ESP8266_503_SalottoSX.ino.bin" exists in "D:\__User\VISUAL~1\SOULIS~1\ESP826~1\Release/Souliss_ESP8266_503_SalottoSX.ino.bin"

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Marco2 on Dec 4th, 2018 at 2:42pm
Hi,
I removed custom directory and did another test:

Here is the log:

Code (]# Copy build result to 'Project>Property Pages>Intermediate Directory'
# Destination: file:///C:/Users/Administrator/Documents/Privati/Elettronica/Arduino/AcquarioWiFi_Resun/Release/

Uploading 'AcquarioWiFi_Resun' to 'Generic ESP8266 Module' using '192.168.1.122'
Uploader started for board Generic ESP8266 Module
Upload method will be: bootloader
Uploading via Bootloader
Port Properties (network)
python.exe "C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/espota.py" -i "192.168.1.122" -p "8266" "--auth=" -f "C:\Users\ADMINI~1\AppData\Local\Temp\VMBuilds\ACQUAR~1\ESP826~1\Release/AcquarioWiFi_Resun.ino.bin"
Impossibile trovare il file specificato
[/code):



If I insert this Path:
[code]C:\Users\ADMINI~1\AppData\Local\Temp\VMBuilds\ACQUAR~1\ESP826~1\Release/

into a Windows Explorer windows, the path will open and file AcquarioWiFi_Resun.ino.bin is inside.
Attached a screenshoot of the folder.

Marco
2018-12-04_15_40_08-Window.png ( 78 KB | 1 Download )

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Marco2 on Dec 4th, 2018 at 2:48pm
Hi Tim,
I have a doubt, bin is in the right place, and if my PC cannot find python.exe?
In wich folder should be placed and in wich folder Visual Micro try to execute it?

Regards
Marco

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Visual Micro on Dec 4th, 2018 at 4:06pm
Does upload work in the arduino ide?

Have you used esp net upload before?

Is python installed? as per esp8266 install instructions for arduino ide?

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Marco2 on Dec 4th, 2018 at 4:33pm
Hi Tim,
It's a new PC, and I have not installed python.
I have installed python 2.7 and now seems to work, I'll do a test at home this night, now I'm still in office.

Marco

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Marco2 on Dec 5th, 2018 at 5:28pm
Hi just tested, and it works.
I'm verry sorry if I made you loosing time on this, I'm feel so stupid  :(

Thanks for help
Kindly Regards
Marco

Title: Re: Error Uploading file to ESP via Arduino OTA
Post by Visual Micro on Dec 5th, 2018 at 5:49pm
No probs, thanks for the update

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.