[MacPorts] #41654: cross/avrdude: update to 6.0.1 broken with AVR ISP MK2
MacPorts
noreply at macports.org
Mon Jun 2 04:28:05 PDT 2014
#41654: cross/avrdude: update to 6.0.1 broken with AVR ISP MK2
-----------------------+-------------------
Reporter: abusse@… | Owner: bsd@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.1
Resolution: | Keywords:
Port: avrdude |
-----------------------+-------------------
Comment (by abusse@…):
Thanks for the upgrade! Unfortunately this does not fix the problem. Like
I said before applying the patch from 5.11.1 of the `stk500v2.c` file made
6.0.1 working again. But looking at the vanilla code of 6.1 the part of
the code in question looks like this:
{{{#!c
DEBUG("STK500V2: stk500v2_getsync()\n");
if (PDATA(pgm)->pgmtype == PGMTYPE_JTAGICE_MKII ||
PDATA(pgm)->pgmtype == PGMTYPE_JTAGICE3)
return 0;
retry:
}}}
To make it work, I would expect something like this:
{{{#!c
DEBUG("STK500V2: stk500v2_getsync()\n");
if (PDATA(pgm)->pgmtype == PGMTYPE_JTAGICE_MKII ||
PDATA(pgm)->pgmtype == PGMTYPE_JTAGICE3 ||
PDATA(pgm)->pgmtype == PGMTYPE_AVRISP_MKII)
return 0;
retry:
}}}
I am currently using an Arduino Mega to test it and since the Arduino does
only an emulation of the original programmer it might be a flaw on the
Arduino side. I do not have an original AVR programmer at my disposal
right now, so I cannot test this hypothesis. But since I assume that some
people are trying to use the Arduino with a Mac it might be worth fixing
this flaw in avrdude, so they can simply get everything running without a
problem. If you don't want to have this patch in the code, maybe we can at
least create a variant with this patch to make life of some people easier.
--
Ticket URL: <https://trac.macports.org/ticket/41654#comment:9>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list