I'm trying to upload .hex
file to Arduino. I don't have any problems with uploading code through an IDE (like blink example or any other). The port and board are correct.
So, the problem appears when I try to upload
avrdude -pm328p -carduino -P/dev/tty.usbmodemfd121 -b57600 -D -Uflash:w:grbl_v0_8c_atmega328p_16mhz_9600.hex -v -v -v -v
avrdude: Version 6.1, compiled on Mar 23 2014 at 04:42:55
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/usr/local/Cellar/avrdude/6.1/etc/avrdude.conf"
User configuration file is "/Users/Mikhail/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/tty.usbmodemfd121
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
What I tried:
brew install avrdude
One more reason to fail : wrong bootloader
Recently purchased an Arduino nano and when tried to upload Blink for testing purposes it failed. Because the board was manufactured previously to Jan 2018 just selecting Processor > "ATmega328P (Old Bootloader)" solved the problem (https://www.arduino.cc/en/Guide/ArduinoNano#toc4)
What fixed it for me was:
Note: Shortly before I installed the drivers mentioned by Mikhail.
Setup: Mac OS 10.9.5, Arduino.app 1.0.6, Arduino Duemilanove
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With