Arduino DUE : Cara Untuk upload program
Arduino DUE adalah salah satu board version Arduino. Ramai yg alami masalah untuk upload program ketika mengunakan Arduino DUE ini. Contoh Error semasa compiling/upload:
1)Uploading yg lama kemudian dapat error :
2)Error semasa compiling:
arm-none-eabi-gcc: error: C:\Users\Alips19\AppData\Local\Temp\build7645664085989007275.tmp/core/syscalls_sam3.c.o: No such file or directory
arm-none-eabi-gcc: error: C:\Users\name\AppData\Local\Temp\build7645664085989007275.tmp/core.a: No such file or directory
Error compiling.
Meh sini abg pro ajar camne nk fix, sila baca di bawah:
1)Utk masalah pertama: Sebab korang tak install Board yg betul(capable) untuk Arduino DUE nih.
Jadi apa yg patut korang buat adalah install arduino DUE ni dalam IDE korang. Open IDE dan pergi ke "Tools>Board>Boards Manager", kemudian install arduino DUE seperti di gambar bawah:
Arduino SAM Boards (32-bits ARM Cortex-M3)
2)Untuk masalah kedua: Masa Compile, IDE arduino korang cuba nak create file Core tapi tak berjaya(jgn tanya kenapa). Apa perlu korang buat ialah halang arduino dari create file nih.
Pergi ke folder "C:\Users\..\AppData\Roaming\Arduino15\packages\arduino\hardware\sam\1.6.6", kemudian open file "platform.txt".
Tekan CTRL+F (atau Edit>Find) dan cari "core/syscalls_sam3.c.o". Kalau xleh search, cuba korang select all semua tulisan tuh.
Kemudian korang delete pekataan "core" tuh. tulisan dia akan jadi lebih kurang camni "--start-group "{build.path}/syscalls_sam3.c.o""
Klik gambar untuk besarkan
1)Uploading yg lama kemudian dapat error :
Sketch uses 1,030 bytes (3%) of program storage space. Maximum is 30,720 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 not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x8a
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x8a
2)Error semasa compiling:
arm-none-eabi-gcc: error: C:\Users\Alips19\AppData\Local\Temp\build7645664085989007275.tmp/core/syscalls_sam3.c.o: No such file or directory
arm-none-eabi-gcc: error: C:\Users\name\AppData\Local\Temp\build7645664085989007275.tmp/core.a: No such file or directory
Error compiling.
Meh sini abg pro ajar camne nk fix, sila baca di bawah:
1)Utk masalah pertama: Sebab korang tak install Board yg betul(capable) untuk Arduino DUE nih.
Jadi apa yg patut korang buat adalah install arduino DUE ni dalam IDE korang. Open IDE dan pergi ke "Tools>Board>Boards Manager", kemudian install arduino DUE seperti di gambar bawah:
Arduino SAM Boards (32-bits ARM Cortex-M3)
Klik gambar untuk besarkan
2)Untuk masalah kedua: Masa Compile, IDE arduino korang cuba nak create file Core tapi tak berjaya(jgn tanya kenapa). Apa perlu korang buat ialah halang arduino dari create file nih.
Pergi ke folder "C:\Users\..\AppData\Roaming\Arduino15\packages\arduino\hardware\sam\1.6.6", kemudian open file "platform.txt".
Tekan CTRL+F (atau Edit>Find) dan cari "core/syscalls_sam3.c.o". Kalau xleh search, cuba korang select all semua tulisan tuh.
Kemudian korang delete pekataan "core" tuh. tulisan dia akan jadi lebih kurang camni "--start-group "{build.path}/syscalls_sam3.c.o""
Klik gambar untuk besarkan
Save Txt file tuh. Restart IDE korang dan cuba upload program ke Arduino DUE.
Kalau tak berjaya jugak cara nih(ada yg boleh ada yg x berjaya), korang boleh tukar version ke 1.6.4.
Klik gambar untuk besarkan
Orait geng, semoga berjaya. :)