avrdudes / avrdude

AVRDUDE is a utility to program AVR microcontrollers
GNU General Public License v2.0
744 stars 137 forks source link

[bug #24669] Using AVRDude with an Atmel AVRISPmkII (USB) interface #139

Closed avrs-admin closed 2 years ago

avrs-admin commented 2 years ago

Mike Bronosky Mike@Bronosky.com Tue 28 Oct 2008 12:39:17 AM UTC

I think most likely this is not a bug but an operator error. Anyway. . .

Been trying to get: AVRDude v. 5.5 to program a: ATmega8518 on a: Olimex AVR-P40B-8518 PCB using an: Atmel AVRISPmkII

The command and the response: C:\avrdude -p atmega8515 -c AVRISPmkII -U flash:w:Blinky.hex stk500_2_Received Message(): timeout

The command and the response specifying -P USB: C:\avrdude -p atmega8515 -P USB -c AVRISPmkII -U flash:w:Off.hex avrdude: ser_open(): can't open device "USB": The system cannot find the file specified.

Using Studio4 software, STK500.exe, the programming works. C:\STK500.EXE -dATmega8515 -cUSB -e -ifblinky.hex -pf -vf

Any ideas.

I'm wanting to move all my software to Linux. Currently my preferred flavor is Ubuntu.

AVRDude is a nice piece of software, Mike Bronosky Mike@Bronosky.com

This issue was migrated from https://savannah.nongnu.org/bugs/?24669

avrs-admin commented 2 years ago

Joerg Wunsch Tue 28 Oct 2008 06:14:19 AM UTC

You're right that it's a simple operator error: the port name "usb" is a magic string in that it must be written in lower case letters (just like any actual device name would have to match exactly your operating system's device name).

You're right that it might be considered a bug that the AVRISPmkII does not default to USB but to an actual serial port; that's mostly for historical reasons since all the STK500-alike programmers are handled by the very same code.