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 Problem with ESP32 OTA (Read 3669 times)
Thomas D. Kryger
Newbies
*
Offline


Posts: 3
Joined: Mar 19th, 2013
Problem with ESP32 OTA
Jan 25th, 2018 at 9:43am
Print Post  
Hi
After upgrading to the latest Visual Micro, i start to get an annoing error when trying to use OTA to update the firmware.

The error is:
Code
Select All
espota.exe: error: option -p: invalid integer value: '{network.port}' 



And the command that is called looks like this:
Code
Select All
espressif\esp32\tools\espota.exe -i "192.168.1.38" -p "{network.port}" "--auth=" -f  "firmware.ino.bin" 



Updating through the serial port works fine.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with ESP32 OTA
Reply #1 - Jan 25th, 2018 at 4:04pm
Print Post  
Hi,

I don't think this is related to update but lets explore.

The {network.port} has not been resolved.

It can be resolved one of two ways

1) You have apple bonjour for windows installed and the IP address automatically appeared in the serial/ip ports list. You selected the IP address from that list. You DID NOT enter the IP address manually at anytime.

2) You have a board.txt file in the local project folder that specifies the network.port= property. The network.port= property usually defaults to 8266 but is set in your code.

Which method are you using to resolve IP and port?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with ESP32 OTA
Reply #2 - May 10th, 2018 at 11:20pm
Print Post  
To confirm that you either need a board.txt in the project to specify the mDNS port or have apple bonjour installed so the IP address and board name appear in the ports list.

Seeing the following means the port is not set. Normally 3232 for esp32 but check your code.
{network.port}
  
Back to top
IP Logged
 
Thomas D. Kryger
Newbies
*
Offline


Posts: 3
Joined: Mar 19th, 2013
Re: Problem with ESP32 OTA
Reply #3 - May 12th, 2018 at 8:14am
Print Post  
Hi

Sorry for the delay. I destoyed the voltage regulator on ESP32 board, and I have not had the time to repair it..

Anyways, I'm selecting the IP in the dropdown box, and I have ESPmDNS.h in my code. 
At the moment I can't remember if I had bonjour installed at the time.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with ESP32 OTA
Reply #4 - May 12th, 2018 at 11:17am
Print Post  
If you Ip you select from the list is just an IP without board name or chip id next to it then you are not using bonjour

Make sure you have set the network.port=8266 in board.txt

This is unrelated to the upgrade

Thanks



  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint