ยังคอมไพล์ไม่ผ่านครับ
เช็คโคด เช็คเลือกบอร์ด เช็คเลือก programmer อีกที ผ่านแน่นอนครับ
รบกวนดูให้ทีคับ ว่าผมผิดขั้นตอนไหนรึเปล่า
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7
ยังเซตบอร์ดไม่ถูก เลยไม่รู้จัก BIN7 หรือยังไม่ได้แปลง arduino ให้เป็น arduino as isp เลยใช้โปรแกรมไม่ได้ เช็คอีกรอบครับ
ขอโทษด้วยนะคับ รบกวนบ่อยหน่อย ผมจะทบทวนตั้งแต่การติดตั้งให้ฟัง เผื่อผมพลาดขั้นตอนไหน
ผมลองเริ่มนับหนึ่งใหม่ โดยการลบโปรแกรม แล้วไดร์เวอร์ทั้งหมด รีสตาร์ทเครื่องแล้วลงใหม่ดังนี้
1.โหลดโปรแกรม arduino-nightly-windows จากเวป arduino.cc
2.ลงไดร์เวอร์ USB Serial CH340
3.สามารถทดสอบบอร์ด โดยไฟกระพริบที่บอร์ด ขา 13 สามารถทำงานได้ปกติ ควบคุมเวลาได้ปกติ
4.โหลดโปรแกรม Attiny ide 1.6.x แล้วแตกไฟล์ไปไว้ที่ C:\Users\Tester\Documents\Arduino\hardware
5.ทดสอบโปรแกรม โดยเลือก บอร์ด ATtiny85 1Mhz และเลือก โปรแกรมเมอร์เป็น Aruino As ISP แล้วเบิร์น ผลที่ได้คือ เป็นเหมือนเดิม เลยไม่รู้แก้ปัญหาจากตรงไหนคับ
Arduino: 1.6.7 Hourly Build 2015/12/04 02:17 (Windows 7), Board: "ATtiny, ATtiny85, 1 MHz (internal)"
In file included from C:\arduino-nightly\hardware\arduino\avr\cores\arduino/Stream.h:26:0,
from C:\arduino-nightly\hardware\arduino\avr\cores\arduino/HardwareSerial.h:29,
from C:\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:224,
from sketch\Blink.ino.cpp:1:
C:\arduino-nightly\hardware\arduino\avr\cores\arduino/Print.h:32:0: warning: "BIN" redefined [enabled by default]
#define BIN 2
^
In file included from c:\arduino-nightly\hardware\tools\avr\avr\include\avr\iotn85.h:38:0,
from c:\arduino-nightly\hardware\tools\avr\avr\include\avr\io.h:428,
from c:\arduino-nightly\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:28,
from sketch\Blink.ino.cpp:1:
c:\arduino-nightly\hardware\tools\avr\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition
#define BIN 7
^
Sketch uses 784 bytes (9%) of program storage space. Maximum is 8,192 bytes.
Global variables use 9 bytes of dynamic memory.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x03
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
รบกวนด้วยนะคับ
ผมแก้ปัญหาได้แล้วคับ ผมข้ามขั้นตอน Examples => ArduinoISP การเบิร์นเปล่าๆไป เลยทำให้ไม่สามารถเบิร์น Attiny 85 ได้คับ