itead / ITEADLIB_Arduino_WeeESP8266

An easy-to-use Arduino ESP8266 library besed on AT firmware.
MIT License
527 stars 284 forks source link

Arduino Mega with ESP8266 #70

Open carlosrodriguesIT opened 8 years ago

carlosrodriguesIT commented 8 years ago

After I modified the header file mention that work with MEGA2560, i still cannot upload my sketch to ESP8266, look the error:

trying to connect flush start setting serial port timeouts to 1 ms setting serial port timeouts to 1000 ms flush complete espcomm_send_command: sending command header espcomm_send_command: sending command payload read 0, requested 1 warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed

Who can I fix this error?

MohamedA95 commented 6 years ago

hi, here are some point to consider maybe it might help 1-check the baud rate , the library is made to use 9600 your module might use different one, mine uses 155200 2-if you are using tx0 and rx0 disconnect the cable while uploading the code. 3-connect the esp8266 ground to the arduino board ground ' i do not know why this works ' :) 4-is CH-PD pin of esp set to high 3.3v ??