I have tried several tutorials and read threads on forums with similar problems without success.
I am trying to get started with OTA on a ESP8266 Node MCU. Running Arduino IDE 2.3.8.
I manage to upload the ArduinoIDE/file/examples/ArduinoOTA/BasicOTA using serial with my network credentials. I have then disconnected power to the ESP8266 and plugget it into other power supply. I then find it on a network port on my local network at ArduinoIDE/Tools/Network ports like so: 192.168.68.64.
My computer is on the same network. I try to upload same BasicOTA sketch but get a Variables and constants in RAM (global, static), used 28988 / 80192 bytes (36%) β SEGMENT BYTES DESCRIPTION β ββ DATA 1504 initialized variables β ββ RODATA 1356 constants βββ BSS 26128 zeroed variables . Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 60824 / 65536 bytes (92%) β SEGMENT BYTES DESCRIPTION β ββ ICACHE 32768 reserved space for flash instruction cache βββ IRAM 28056 code in IRAM . Code in flash (default, ICACHE_FLASH_ATTR), used 285188 / 1048576 bytes (27%) β SEGMENT BYTES DESCRIPTION βββ IROM 285188 code in flash Authenticating...OK 19:50:54 [ERROR]: No response from device Failed uploading: uploading error: exit status 1
Another error message is saying:
No monitor available for the port protocol network. Could not connect to 192.168.68.64 network port.
I have tried to disable the Windows Defender Firewall with no success.
This specific message is normal and expected. This is coming from the Arduino IDE Serial Monitor. As the name implies, Serial Monitor is a tool for communicating with the board over a serial port. It doesn't have the capability to communicate with the board over the "network" port that is used for the OTA upload. So this error occurs under the following conditions:
You have a "network" protocol port selected from Arduino IDE's Tools > Port menu.
You have Serial Monitor open.
If you find the error to be annoying, just click the X icon on the "Serial Monitor" tab in the panel at the bottom of the Arduino IDE window.
It was my firewall on my windows machine that needed to be temporary switched off for it to work. Also had to hard restart the esp8266, either via the onboard reboot button or opening a terminal window in Putty (so I could also see the ESP8266 debug messages)
But yes the ESP822 needs to not be in flash-mode hardware wise. It can only do OTA update when it has a hard boot without GPIO 0, 1 or 2 pulled down, whereas the sketch will run already after a soft reset.
You can allow an app through the firewall, if you find the esptool in the packages\esp8266\tools\esptool folder.
I donβt understand what you mean. I found a folder β¦/packages/esp8266/tools/β¦ in there there are four subfolders: mklittlefs, mkspiffs, python3 and xtensa-lx106-elf-gcc
I guess that I am looking in the wrong folder?
I'm going to ask you to provide the full verbose output from an upload.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
Uncheck the box next to Show verbose output during: β compile in the "Preferences" dialog.
Check the box next to Show verbose output during: β upload.
Click the "OK" button.
The "Preferences" dialog will close.
Perform an upload, as you did before.
Wait for the upload to finish.
Right click (Control-click for macOS users) on the black "Output" panel at the bottom of the Arduino IDE window.
A context menu will open.
Select Copy All from the menu.
Open a reply here on this forum topic by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Maybe not quite the right folder, but if you start your search in packages and include subfolders you should find esptool.exe . Also if you have the verbose output of an upload, the path to the esptool should be in there somewhere.