ลองเช็ค เลือกบอร์ดและ port ให้ถูกครับ
http://forum.arduino.cc/index.php?topic=157972.0
SAM-BA operation failed -> you've connected to the native usb port,
เบื้องต้นลองเช็คว่าต่อตรงกับขา rx,tx ปรับบอร์ดเรดตรงกันและการต่อขา esp8266 มีตัวอย่างตามนี้ครับ
http://arduino-er.blogspot.com/2015/04/connect-esp8266-wifi-module-to-arduino.html
เซต AT-Command ของ ESP8622 ครับ
AT+CIOBAUD | set module baud rate | basic | AT+CIOBAUD= | AT+CIOBAUD? | - | Baud rate. Factory value is 9600. Set to 57600 for Uzebox. | AT+CIOBAUD=57600 | BAUD->57600 OK, then garbage since the module has switched to the new baud rate. |
http://uzebox.org/wiki/index.php?title=ESP8266_AT_Commands