Skip to content Skip to sidebar Skip to footer

Arduino No Such File or Directory Problem Uploading to Board

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 fault message yang lain

beberapa-error-message-di-arduino-ide-dan-solusinya

Beberapa Mistake Bulletin di Arduino IDE dan Solusinya

Error Message 1 :

Sketch uses 928 bytes (ii%) of programme 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(): developer is not responding

avrdude: stk500_getsync() endeavor 1 of x: not in sync: resp=0x78

avrdude: stk500_getsync() endeavor 2 of 10: not in sync: resp=0x30

avrdude: stk500_getsync() attempt 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() attempt 6 of 10: not in sync: resp=0x30

avrdude: stk500_getsync() endeavour 7 of 10: non in sync: resp=0x20

avrdude: stk500_getsync() endeavor 8 of 10: not in sync: resp=0x30

avrdude: stk500_getsync() attempt nine of ten: non in sync: resp=0x20

avrdude: stk500_getsync() endeavour ten of x: non in sync: resp=0x30

Problem uploading to board.  Come across http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Solusi : biasanya error di atas muncul karena pin 0 dan 1 Arduino Uno ada jumperan kabel ke sistem Anda yang lain. Coba copot dulu kabel tersebut

[AdSense-B]

Error message two :

Arduino: 1.six.12 (Windows seven), 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.

exit condition ane

Error compiling for board Arduino/Genuino Uno.

This report would take more than information with

"Testify 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)

Fault Message three :

Arduino: ane.6.5 (Windows 7), Board: "Arduino Mega ADK"

Build options changed, rebuilding allc:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.i/../../../../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' defined in .text.avr-libc section in c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.one/../../../../avr/lib/avr6\libc.a(cty_isfalse.o)

collect2.exe: error: ld returned 1 get out status

Error compiling.

  This report would accept more data with

  "Prove verbose output during compilation"

  enabled in File > Preferences.

Solusi : mistake 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 ane.6.5 ke 1.6.12 (versi terakhir saat tulisan ini dibuat). Iseng-iseng berhadiah, kata saya dalam hati. Eh, ngga taunya problem solved. Ya udah, Alhamdulillah 🙂

Error Message 4 :

C:\Plan 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 K,  const int S, OnTick_t onTickHandler); // every bit higher up, with day of week

                               ^

C:\Program Files\Arduino\libraries\TimeAlarms/TimeAlarms.h:76:29: mistake: '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); // as above, with day of calendar week

                            ^

go out status 1

Mistake compiling for lath Arduino Mega ADK.

Solusi : Update library TimeAlarms.h yang terbaru

Mistake Message 5

Sebenarnya ini bukan error ya, hanya alert 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 program storage infinite. Maximum is 32,256 bytes.
Global variables use 1,573 bytes (76%) of dynamic retention, leaving 475 bytes for local variables. Maximum is 2,048 bytes.
Depression memory available, stability problems may occur.

Solusi : kurangi pemakaian script yang menggunakan dynamic retentivity/SRAM seperti penggunaan variabel 'Cord', kurangi menge-print karakter di Series 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 not declared 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 seven

Problem : SimpleTimer.h:37:22: fatal fault: 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.

cookladjecamis.blogspot.com

Source: http://saptaji.com/2016/10/11/beberapa-error-message-di-arduino-ide-dan-solusinya/

Post a Comment for "Arduino No Such File or Directory Problem Uploading to Board"