I have my own arduino UNO, esp8266 board and arduino ide with esp libraries installed in it.
While connecting esp8266 to arduino with selecting Board as Generic ESP8266 Module it gives me an error ->
### Debug Messages
Executable segment sizes:
IROM : 227372 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26368 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 1252 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 672 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 24848 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 255664 bytes (26%) of program storage space. Maximum is 958448 bytes.
Global variables use 26772 bytes (32%) of dynamic memory, leaving 55148 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM11
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
File "C:\Users\Rajat Saini\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.6.3/tools/upload.py", line 65, in <module>
esptool.main(cmdline)
File "C:/Users/Rajat Saini/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 2890, in main
esp.connect(args.before)
File "C:/Users/Rajat Saini/Documents/ArduinoData/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 483, in connect
raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0xF0)
esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0xF0)
Please suggest me what to do next as i am stuck with this error from last 3 days.