0

I'm trying to upload my exported HEX file by avrdude using this command /Users/user_acc/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Users/user_acc/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/cu.usbmodem1421 -b57600 -D -Uflash:w:/Users/user_acc/Documents/Arduino/at_command_A6/at_command_A6.ino.with_bootloader.leonardo.hex:i

But instead of loading the file it's stuck on connecting to programmer.

Output: https://scr.hu/rYNzzm https://paste.ubuntu.com/p/74p37fGYPN/

The output from ArduinoIDE is exactly the same and it finds the programmer without the problem and loads the file.

/private/var/folders/5h/7rxp3rmn5351zh6r8cxhz1sr0000gn/T/AppTranslocation/5C2325EE-CF38-4140-8860-717C9DBAF376/d/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/private/var/folders/5h/7rxp3rmn5351zh6r8cxhz1sr0000gn/T/AppTranslocation/5C2325EE-CF38-4140-8860-717C9DBAF376/d/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/cu.usbmodem124 -b57600 -D -Uflash:w:/var/folders/5h/7rxp3rmn5351zh6r8cxhz1sr0000gn/T/arduino_build_78519/at_command_A6.ino.hex:i

Output: https://scr.hu/M72NaV

Can somebody help me? :)

5
  • please update the second picture so that it shows the command line (roll the screen down a bit)
    – jsotola
    Commented Apr 1, 2018 at 18:21
  • @jsotola I added the whole output from Arduino in the paste.ubuntu.com link Commented Apr 1, 2018 at 18:38
  • @jsotola Thats the output from Arduino. What command line do you want to see? Commented Apr 1, 2018 at 18:46
  • go to "preferences" in the Arduino IDE .... check "show verbose output during" upload .... do an upload ..... the actual avrdude command line gets diplayed .... post that command line
    – jsotola
    Commented Apr 1, 2018 at 19:16
  • @jsotola it was all the time in the output that I provided. Its in the question now as well. Dont mind the cu.usbmodem124. I changed the port during my attempts. Commented Apr 1, 2018 at 19:21

1 Answer 1

1

I found a post of somebody with a similar issue. His solution fixed my issue!

https://stackoverflow.com/questions/46813157/avrdude-command-line-cant-connect-to-programmer-for-leonardo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.