Avrdude: Stk500_getsync Attempt 1 Of 10: Not In Sync: Resp=0x00
Hello forum people, I am having trouble getting the Arduino IDE to upload to the Arbotix board. I am getting the following error: Arduino: 1.8.9 (Mac OS X), Board: 'Arbotix-M' avrdude: Version 6.3-20171130. Binary sketch size: 1026 bytes (of a 30720 byte maximum) avrdude: stk500getsync: not in sync: resp=0x00 When I do the verbose upload (Shift+Upload), I get this error/message: avrdude: usbdevopen: did not find any USB device 'usb' Also, I tried adding 1k pull-up resistors at pins 2 and 3 of ATmega, but didn't help.
The ArduinoISP sketch should work just fine.Obviously your target AVR must have a valid clock signal.In my opinion, you never remove the AVR from an Arduino. If you want to use a different bootloader, you install it via the Arduino IDE. This ensures that the fuses and lockbits get set correctly.I can see little point in ever putting a bootloader onto a breadboarded AVR. It is simpler to just use ISP.You should never remove the RESET-EN solder-bridge unless you want to use debugWIRE. (or you never use the bootloader)Everyone has their own opinions.
It is not compulsory to make things difficult!David. C:Program Files (x86)Arduinohardware/tools/avr/bin/avrdude -CC:Program Files (x86)Arduinohardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P.COM4 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xE2:mC:Program Files (x86)Arduinohardware/tools/avr/bin/avrdude -CC:Program Files (x86)Arduinohardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P.COM4 -b19200 -Uflash:w:C:Program Files (x86)ArduinohardwarearduinobootloadersatmegaATmegaBOOT168atmega328pro8MHz.hex:i -Ulock:w:0x0F:mResult. Avrdude -C'C:Program Files (x86)Arduinohardware/tools/avr/etc/avrdude.conf' -v -v -v -v -patmega328p -cstk500v1 -P.COM4 -b19200 -D -Uflash:w:'C:UsersRGAppDataLocalTempbuild247453212.tmpBlink.cpp.hex':iSeemed to work just fine, except for the fact that the chip isn't outputting the desired signal. That might just be the wrong pin though.Also I removed the bootloaded stuff which might have helped (but a rate of 57600 still fails).EDIT: It works! Thanks David!For anyone else with the same problem: You need to clear out your bootloader (if you installed one) by removing the -D flag, and then run the upload commands manually with an overriding baud rate of 19200. What is the problem?You either run 2 regular ArduinosOr one ArduinoISP and the other as a regular ISPed board.No money involved, and no grief!Personally, I have several Arduino boards.I always keep the bootloaders, and use them with:CodeVisionRowleyAtmel StudioBascomAssembler.The program 'upload' involves either a mouseclick or is done automatically as part of the build process.It is far easier to test an idea or prototype a project with a 'standard' Arduino board than to lash up a breadboard.Your 'free samples' are better off living in a drawer.
Avrdude Stk500_getsync() Not In Sync Resp=0x00 Arduino Nano
When you have debugged your project with the Arduino, just re-compile for the wierdo sample and solder it into the finished project.YMMVDavid.