In flip2_initialize(), check user is running on an Xmega

device.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1260 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2014-01-16 07:27:41 +00:00
parent e2462d535f
commit b82aca47d5
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-01-16 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
* flip.c (flip2_initialize): Check user is running on an Xmega
device.
2014-01-15 Joerg Wunsch <j.gnu@uriah.heep.sax.de> 2014-01-15 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
* flip.c: Added some verbose-level messages (-vv) * flip.c: Added some verbose-level messages (-vv)

9
flip.c
View File

@ -234,6 +234,15 @@ int flip2_initialize(PROGRAMMER* pgm, AVRPART *part)
vid = (pgm->usbvid != 0) ? pgm->usbvid : USB_VENDOR_ATMEL; vid = (pgm->usbvid != 0) ? pgm->usbvid : USB_VENDOR_ATMEL;
pid = (pgm->usbpid != 0) ? pgm->usbpid : part->usbpid; pid = (pgm->usbpid != 0) ? pgm->usbpid : part->usbpid;
if (!ovsigck && !(part->flags & AVRPART_HAS_PDI)) {
fprintf(stderr,
"%s: \"flip2\" (FLIP protocol version 2) is for Xmega devices.\n"
"%s For AT90USB* or ATmega*U* devices, use \"flip1\".\n"
"%s (Use -F to bypass this check.)\n",
progname, progbuf, progbuf);
return -1;
}
result = dfu_init(FLIP2(pgm)->dfu, vid, pid); result = dfu_init(FLIP2(pgm)->dfu, vid, pid);
if (result != 0) if (result != 0)