Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Error Uploading file to ESP via Arduino OTA (Read 1131 times)
Marco2
Junior Member
**
Offline



Posts: 48
Error Uploading file to ESP via Arduino OTA
Sep 19th, 2018 at 7: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 



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
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10310
United Kingdom
Re: Error Uploading file to ESP via Arduino OTA
Reply #1 - Sep 30th, 2018 at 10:08pm
 
What is the error?

Can I see the full verbose uploader output?
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10310
United Kingdom
Re: Error Uploading file to ESP via Arduino OTA
Reply #2 - Oct 1st, 2018 at 12:30pm
 
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]
Back to top
 
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline



Posts: 48
Re: Error Uploading file to ESP via Arduino OTA
Reply #3 - Oct 1st, 2018 at 10: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
 

Back to top
« Last Edit: Oct 1st, 2018 at 10:34pm by Marco2 »  
 
IP Logged
 
Marco2
Junior Member
**
Offline



Posts: 48
Re: Error Uploading file to ESP via Arduino OTA
Reply #4 - Oct 1st, 2018 at 10: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 


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
 

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



Posts: 10310
United Kingdom
Re: Error Uploading file to ESP via Arduino OTA
Reply #5 - Oct 2nd, 2018 at 1: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
Back to top
 
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline



Posts: 48
Re: Error Uploading file to ESP via Arduino OTA
Reply #6 - Oct 2nd, 2018 at 3:32pm
 
Visual Micro wrote on Oct 2nd, 2018 at 1: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
Back to top
 
 
IP Logged
 
Marco2
Junior Member
**
Offline



Posts: 48
Re: Error Uploading file to ESP via Arduino OTA
Reply #7 - Oct 2nd, 2018 at 7: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
 



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
Back to top
 
 
IP Logged
 
Marco2
Junior Member
**
Offline



Posts: 48
Re: Error Uploading file to ESP via Arduino OTA
Reply #8 - 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
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10310
United Kingdom
Re: Error Uploading file to ESP via Arduino OTA
Reply #9 - 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"
Back to top
 
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline



Posts: 48
Re: Error Uploading file to ESP via Arduino OTA
Reply #10 - 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
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10310
United Kingdom
Re: Error Uploading file to ESP via Arduino OTA
Reply #11 - 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"
Back to top
 
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline



Posts: 48
Re: Error Uploading file to ESP via Arduino OTA
Reply #12 - 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
 



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
Back to top
« Last Edit: Dec 4th, 2018 at 2:43pm by Marco2 »  
 
IP Logged
 
Marco2
Junior Member
**
Offline



Posts: 48
Re: Error Uploading file to ESP via Arduino OTA
Reply #13 - 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
Back to top
« Last Edit: Dec 4th, 2018 at 2:55pm by Marco2 »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10310
United Kingdom
Re: Error Uploading file to ESP via Arduino OTA
Reply #14 - 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?
Back to top
« Last Edit: Dec 4th, 2018 at 4:07pm by Visual Micro »  
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline



Posts: 48
Re: Error Uploading file to ESP via Arduino OTA
Reply #15 - 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
Back to top
 
 
IP Logged
 
Marco2
Junior Member
**
Offline



Posts: 48
Re: Error Uploading file to ESP via Arduino OTA
Reply #16 - 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  Sad

Thanks for help
Kindly Regards
Marco
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10310
United Kingdom
Re: Error Uploading file to ESP via Arduino OTA
Reply #17 - Dec 5th, 2018 at 5:49pm
 
No probs, thanks for the update
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print