Gemma an Error Occured While Uploading 1.8.5
Kadang saat kita memprogram Arduino akan muncul error di jendela debug di bagian bawah Arduino IDE. Dengan demikian kita jadi tahu apa yang menyebabkan error dan mengambil langkah untuk menanggulangi error tersebut. Berikut ini beberapa error yang sempat saya catat. Ntar saya update terus jika menemui error message yang lain
Beberapa Error Message di Arduino IDE dan Solusinya
Error Message 1 :
Sketch uses 928 bytes (2%) of plan storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is non responding
avrdude: stk500_getsync() attempt ane of ten: not in sync: resp=0x78
avrdude: stk500_getsync() endeavor 2 of 10: non in sync: resp=0x30
avrdude: stk500_getsync() attempt 3 of ten: not in sync: resp=0x20
avrdude: stk500_getsync() endeavor 4 of x: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 5 of ten: not in sync: resp=0x20
avrdude: stk500_getsync() try 6 of ten: not in sync: resp=0x30
avrdude: stk500_getsync() try 7 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt viii of 10: not in sync: resp=0x30
avrdude: stk500_getsync() endeavor 9 of 10: non in sync: resp=0x20
avrdude: stk500_getsync() endeavor 10 of ten: non in sync: resp=0x30
Problem uploading to lath. Run into http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
Solusi : biasanya fault 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 2 :
Arduino: i.6.12 (Windows 7), Board: "Arduino/Genuino Uno"
\arduino 1.0.5\DHT11\DHT11.ino:1:17: fatal error: dht.h: No such file or directory
#include <dht.h>
^
compilation terminated.
leave status i
Fault compiling for lath Arduino/Genuino Uno.
This report would accept more information with
"Show verbose output during compilation"
pick enabled in File -> Preferences.
Solusi : error di atas terjadi karena library dht.h tidak dapat dicari oleh compiler Arduino IDE. Coba download library yang fault tersebut dan copy-kan ke folder C:/Programme Files/Arduino/libraries (berlaku juga untuk library yang lain)
Error Message iii :
Arduino: one.vi.v (Windows seven), Board: "Arduino Mega ADK"
Build options changed, rebuilding allc:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/four.8.1/../../../../avr/lib/avr6\libc.a(isspace.o): In function `isspace':
(.text.avr-libc+0x2): relocation truncated to fit: R_AVR_13_PCREL against symbol `__ctype_isfalse' divers in .text.avr-libc section in c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/avr6\libc.a(cty_isfalse.o)
collect2.exe: error: ld returned ane exit status
Error compiling.
This written report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Solusi : error di atas terjadi saat saya menggunakan perintah String.toFloat() di Arduino Mega. Pusing juga nyari kesalahannya di mana, karena ketika saya compile untuk lath Arduino Uno ngga ada masalah. Pusing karena lama ngga nemu-nemu solusinya, akhirnya saya update aja Arduino IDE saya dari versi 1.6.5 ke 1.half dozen.12 (versi terakhir saat tulisan ini dibuat). Iseng-iseng berhadiah, kata saya dalam hati. Eh, ngga taunya problem solved. Ya udah, Alhamdulillah 🙂
Mistake Bulletin iv :
C:\Program Files\Arduino\libraries\TimeAlarms/TimeAlarms.h:72:31: error: 'timeDayOfWeek_t' does not name a type
AlarmID_t alarmRepeat(const timeDayOfWeek_t DOW, const int H, const int Thou, const int Southward, OnTick_t onTickHandler); // every bit in a higher place, with day of week
^
C:\Program Files\Arduino\libraries\TimeAlarms/TimeAlarms.h:76:29: error: 'timeDayOfWeek_t' does not proper name a type
AlarmID_t alarmOnce(const timeDayOfWeek_t DOW, const int H, const int M, const int S, OnTick_t onTickHandler); // equally above, with day of week
^
exit status i
Error compiling for lath Arduino Mega ADK.
Solusi : Update library TimeAlarms.h yang terbaru
Error Bulletin 5
Sebenarnya ini bukan mistake ya, hanya warning aja, bahwa dynamic memori Anda (SRAM) sudah terpakai lebih dari 75% yang dapat menyebabkan plan berjalan tidak stabil
Sketch uses 12,628 bytes (39%) of plan storage space. Maximum is 32,256 bytes.
Global variables apply ane,573 bytes (76%) of dynamic memory, leaving 475 bytes for local variables. Maximum is ii,048 bytes.
Depression retentivity bachelor, stability problems may occur.
Solusi : kurangi pemakaian script yang menggunakan dynamic retention/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 Message 6
Problem: 'setSyncProvider' was non alleged in this scope
Solusi : Instal library Time.h. Copy ke folder libraries (C:/Program Files/Arduino/Libraries) atau satu binder dengan sketch Arduino Anda
Error Message 7
Trouble : 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 message di Arduino IDE. Kalo nemuin lagi yang lain saya update di artikel ini. Semoga bermanfaat bagi siapa saja yang menemui masalah yang sama.
payneounkentoot1954.blogspot.com
Source: http://saptaji.com/2016/10/11/beberapa-error-message-di-arduino-ide-dan-solusinya/
Post a Comment for "Gemma an Error Occured While Uploading 1.8.5"