Author Topic: Using avrdude to program USB interface on Arduino Uno R3  (Read 326 times)

0 Members and 1 Guest are viewing this topic.

Offline CambridgeMart

  • Contributor
  • Posts: 22
  • Country: gb
Using avrdude to program USB interface on Arduino Uno R3
« on: May 19, 2019, 01:44:46 am »
I'm tring to program the ATMega 16U2 device on an Uno R3 with the MIDI USB firmware; I'm using avrdude to program the 16U2 via the ICSP header using an Arduino Nano configured as an ISP device. Avrdude is throwing errors indicating it can't sync with the target, but I'm not sure where I'm going wrong. The command I'm using is:
avrdude -p at90usb162 -F -P COM7 -c avrisp -U flash:w:dualMoco.hex -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m
COM7 is the virtual port that my arduino ISP appears as; I'm using at90usb162 to identify the 16U2, based on my research this appears to be the correct target.
The error is avrdude: stk500_getsync(): not in sync: resp=0x00

Any suggestions please?
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 7437
  • Country: nz
Re: Using avrdude to program USB interface on Arduino Uno R3
« Reply #1 on: May 19, 2019, 01:52:21 am »
Is the Arduino Nano frequency correct? 8mhz and 16mhz versions exist.

If there's a mismatch you will have these sort of issues.

Also check your nano has correct reset line and ground connections to target 16u2 device.


Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline oPossum

  • Frequent Contributor
  • **
  • Posts: 917
  • Country: us
  • The other white meat
Re: Using avrdude to program USB interface on Arduino Uno R3
« Reply #2 on: May 19, 2019, 06:50:44 am »
You may have to disable reset on the nano to prevent it from entering the booloader when COM7 is opened.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf