AVRDude + Dragon doesn't work

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi

I try to use AVRDude to program mega48 in debugWire mode on Windows machine. It does not work.

The command line looks like

avrdude -pm48 -cdragon_dw -Uflash:w:GPI.hex:a 

The error is:

avrdude: ser_open(): can't open device "lpt1": The system cannot find the file specified.

avrdude from winavr 2100110. I do not understand why avrdude is trying to open lpt1? What port have to be specified to get it working?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I do not use a Dragon. But since it is a USB device, I should add '-P usb'

You normally use separate arguments:

avrdude -p m48 -c dragon_dw -U flash:w:GPI.hex:a

Otherwise you may end up with a msdos argument abortion.

Edit. I have just tried the 'no space' method. It parses fine. It just looks wrong to me.

This is what I use in the CodeVision Tools Menu:

avdrude.exe -c jtag2dw -P usb -p t2313 -U flash:w:"#h":i -v

N.b. # should be a %

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I did try with many -P USB variations and I end up with "it can't open device "USB".
I'm not sure usb must be specified, for example usbtiny uasbasp programmers works fine without any port specified.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, the JTAGICEmkII works fine with avrdude. Remember that a special feature of avrdude is that it uses a different USB driver to Atmel.

So jtagicemkii.exe works out of the box with Atmel's Jungo driver.
avrdude -c jtag2 -P usb only works when you have installed libusb.dll

I do not know what avrdude -c usbtiny uses. I would assume libusb.dll but it may bit-bash things since it is only USBv1.0

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Use the COM port after -P