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) Error Uploading file to ESP via Arduino OTA (Read 5594 times)
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Error Uploading file to ESP via Arduino OTA
Sep 19th, 2018 at 6:49pm
Print Post  
Hi,
I'm trying to upload to ESP but I get an error:

File not found

Enabling verbose log I got this:
Code
Select All
python.exe B~1.0/tools/espota.py -i "192.168.1.145" -p "8266" "--auth=" -f .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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Uploading file to ESP via Arduino OTA
Reply #1 - Sep 30th, 2018 at 9:08pm
Print Post  
What is the error?

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Uploading file to ESP via Arduino OTA
Reply #2 - Oct 1st, 2018 at 11:30am
Print Post  
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
Joined: Feb 1st, 2013
Re: Error Uploading file to ESP via Arduino OTA
Reply #3 - Oct 1st, 2018 at 9:33pm
Print Post  
Hi,
this is verbose output:

Code
Select All
# Copy build result to 'Project>Property Pages>Intermediate Directory'
# Destination: 8266_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 B~1.0/tools/espota.py -i "192.168.1.141" -p "8266" "--auth=" -f .BIN
Impossibile trovare il file specificato
 

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


Posts: 48
Joined: Feb 1st, 2013
Re: Error Uploading file to ESP via Arduino OTA
Reply #4 - Oct 1st, 2018 at 9:42pm
Print Post  
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
Select All
Compiling 'Souliss_ESP8266_503_SalottoSX' for 'Generic ESP8266 Module'
Build Folder: c/Release"
Summary: Header=1 Prototypes=5 Imports=8 


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

Code
Select All
# Copy build result to 'Project>Property Pages>Intermediate Directory'
# Destination: 8266_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 B~1.0/tools/espota.py -i "192.168.1.141" -p "8266" "--auth=" -f .BIN
Impossibile trovare il file specificato
 

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Uploading file to ESP via Arduino OTA
Reply #5 - Oct 2nd, 2018 at 12:51pm
Print Post  
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
Joined: Feb 1st, 2013
Re: Error Uploading file to ESP via Arduino OTA
Reply #6 - Oct 2nd, 2018 at 2:32pm
Print Post  
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
  
Back to top
 
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: Error Uploading file to ESP via Arduino OTA
Reply #7 - Oct 2nd, 2018 at 6:33pm
Print Post  
Hi,
I installled 1810.1
Something change but it still not work:

Code
Select All
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 6\2.3.0/tools/espota.py" -i "192.168.1.141" -p "8266" "--auth=" -f 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
Joined: Feb 1st, 2013
Re: Error Uploading file to ESP via Arduino OTA
Reply #8 - Dec 4th, 2018 at 9:31am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Uploading file to ESP via Arduino OTA
Reply #9 - Dec 4th, 2018 at 1:54pm
Print Post  
Which esp core have you installed?

Does this file exist?
bin"
  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: Error Uploading file to ESP via Arduino OTA
Reply #10 - Dec 4th, 2018 at 1:57pm
Print Post  
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 

bin"

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

Regards

Marco
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Uploading file to ESP via Arduino OTA
Reply #11 - Dec 4th, 2018 at 2:03pm
Print Post  
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 bin"
  
Back to top
WWW  
IP Logged
 
Marco2
Junior Member
**
Offline


Posts: 48
Joined: Feb 1st, 2013
Re: Error Uploading file to ESP via Arduino OTA
Reply #12 - Dec 4th, 2018 at 2:42pm
Print Post  
Hi,
I removed custom directory and did another test:

Here is the log:
Code
Select All
# Copy build result to 'Project>Property Pages>Intermediate Directory'
# Destination: i_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 6\2.3.0/tools/espota.py" -i "192.168.1.122" -p "8266" "--auth=" -f oWiFi_Resun.ino.bin"
Impossibile trovare il file specificato
 



If I insert this Path:
Code
Select All
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
« Last Edit: Dec 4th, 2018 at 2:43pm by Marco2 »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Marco2
Junior Member
**
Offline


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


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


Posts: 48
Joined: Feb 1st, 2013
Re: Error Uploading file to ESP via Arduino OTA
Reply #15 - Dec 4th, 2018 at 4:33pm
Print Post  
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
Joined: Feb 1st, 2013
Re: Error Uploading file to ESP via Arduino OTA
Reply #16 - Dec 5th, 2018 at 5:28pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


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