Arduino an Error Occured While Uploading the Sketch
Kadang saat kita memprogram Arduino akan muncul mistake di jendela debug di bagian bawah Arduino IDE. Dengan demikian kita jadi tahu apa yang menyebabkan error dan mengambil langkah untuk menanggulangi fault tersebut. Berikut ini beberapa error yang sempat saya catat. Ntar saya update terus jika menemui error message yang lain
Beberapa Mistake Bulletin di Arduino IDE dan Solusinya
Fault Message 1 :
Sketch uses 928 bytes (two%) of program storage space. Maximum is 32,256 bytes.
Global variables utilize 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x78
avrdude: stk500_getsync() try 2 of x: not in sync: resp=0x30
avrdude: stk500_getsync() endeavour 3 of 10: non in sync: resp=0x20
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() effort 6 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() try 7 of x: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 8 of ten: not in sync: resp=0x30
avrdude: stk500_getsync() endeavor ix of ten: not in sync: resp=0x20
avrdude: stk500_getsync() effort 10 of 10: non in sync: resp=0x30
Trouble uploading to lath. Encounter http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
Solusi : biasanya error di atas muncul karena pin 0 dan one Arduino Uno ada jumperan kabel ke sistem Anda yang lain. Coba copot dulu kabel tersebut
[AdSense-B]
Error message ii :
Arduino: 1.half dozen.12 (Windows 7), Board: "Arduino/Genuino Uno"
\arduino ane.0.5\DHT11\DHT11.ino:1:17: fatal error: dht.h: No such file or directory
#include <dht.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
This study would accept more information with
"Show verbose output during compilation"
choice enabled in File -> Preferences.
Solusi : error di atas terjadi karena library dht.h tidak dapat dicari oleh compiler Arduino IDE. Coba download library yang error tersebut dan copy-kan ke folder C:/Program Files/Arduino/libraries (berlaku juga untuk library yang lain)
Error Bulletin 3 :
Arduino: 1.vi.5 (Windows seven), Board: "Arduino Mega ADK"
Build options inverse, rebuilding allc:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/avr6\libc.a(isspace.o): In office `isspace':
(.text.avr-libc+0x2): relocation truncated to fit: R_AVR_13_PCREL against symbol `__ctype_isfalse' defined in .text.avr-libc department in c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/iv.8.1/../../../../avr/lib/avr6\libc.a(cty_isfalse.o)
collect2.exe: error: ld returned 1 go out status
Error compiling.
This report would take more than data with
"Show verbose output during compilation"
enabled in File > Preferences.
Solusi : fault di atas terjadi saat saya menggunakan perintah String.toFloat() di Arduino Mega. Pusing juga nyari kesalahannya di mana, karena ketika saya compile untuk board Arduino Uno ngga ada masalah. Pusing karena lama ngga nemu-nemu solusinya, akhirnya saya update aja Arduino IDE saya dari versi 1.6.v ke 1.6.12 (versi terakhir saat tulisan ini dibuat). Iseng-iseng berhadiah, kata saya dalam hati. Eh, ngga taunya trouble solved. Ya udah, Alhamdulillah 🙂
Error Message 4 :
C:\Programme Files\Arduino\libraries\TimeAlarms/TimeAlarms.h:72:31: error: 'timeDayOfWeek_t' does non name a type
AlarmID_t alarmRepeat(const timeDayOfWeek_t DOW, const int H, const int Chiliad, const int S, OnTick_t onTickHandler); // as above, with twenty-four hour period of week
^
C:\Program Files\Arduino\libraries\TimeAlarms/TimeAlarms.h:76:29: fault: 'timeDayOfWeek_t' does not name a blazon
AlarmID_t alarmOnce(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler); // as above, with 24-hour interval of calendar week
^
exit status 1
Error compiling for board Arduino Mega ADK.
Solusi : Update library TimeAlarms.h yang terbaru
Error Message v
Sebenarnya ini bukan fault ya, hanya warning aja, bahwa dynamic memori Anda (SRAM) sudah terpakai lebih dari 75% yang dapat menyebabkan program berjalan tidak stabil
Sketch uses 12,628 bytes (39%) of program storage space. Maximum is 32,256 bytes.
Global variables use one,573 bytes (76%) of dynamic memory, leaving 475 bytes for local variables. Maximum is 2,048 bytes.
Depression retentiveness available, stability issues may occur.
Solusi : kurangi pemakaian script yang menggunakan dynamic memory/SRAM seperti penggunaan variabel 'String', kurangi menge-print karakter di Serial Monitor (Serial.println), atau ganti board arduino Anda menjadi Arduino Mega (solusi terakhir). Untuk lebih detail cara menghemat dynamic memory Arduino akan saya tulis dalam tutorial berikutnya.
[AdSense-B]
Error Bulletin 6
Problem: 'setSyncProvider' was not declared in this scope
Solusi : Instal library Time.h. Re-create ke folder libraries (C:/Programme Files/Arduino/Libraries) atau satu folder dengan sketch Arduino Anda
Error Message 7
Problem : SimpleTimer.h:37:22: fatal error: functional: No such file or directory. Biasanya karena Anda habis instal IDE Arduino terbaru
Solusi : buang library SimpleTimer yang lama, ganti dengan yang ini https://github.com/jfturcot/SimpleTimer
Demikian beberapa catatan saya tentang error bulletin di Arduino IDE. Kalo nemuin lagi yang lain saya update di artikel ini. Semoga bermanfaat bagi siapa saja yang menemui masalah yang sama.
defilippoalmou1979.blogspot.com
Source: http://saptaji.com/2016/10/11/beberapa-error-message-di-arduino-ide-dan-solusinya/
Post a Comment for "Arduino an Error Occured While Uploading the Sketch"