avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [patch #7165] Add support for bitbanging GPIO lines using


From: Richard Nauber
Subject: [avrdude-dev] [patch #7165] Add support for bitbanging GPIO lines using the Linux sysf GPIO interface
Date: Tue, 01 Jan 2013 13:15:58 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0

Follow-up Comment #2, patch #7165 (project avrdude):

Hi,
a lot of embedded devices offer GPIO lines that can conveniently be used as an
interface to a uC. This allows to build cheap, Ethernet-capable programmers
from routers and such (for instance the Fonera or the Raspberry Pi). I
refreshed the patches of Radoslav Kolev to compile with the latest SVN (1126).
The patched version was tested on a Fonera device running OpenWrt, but it
should work with every recent Linux flavor:


#free the GPIO lines!
address@hidden:~# echo "leds-gpio" >
/sys/devices/platform/leds-gpio/leds/gpio1/device/driver/unbind
[...]

address@hidden:~# avrdude -E noreset -p m1284p -c gpio -U
flash:w:/tmp/tmp.hex:i
avrdude: WARNING: -E option not supported by this programmer type

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.03s

avrdude: Device signature = 0x1e9705
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be
performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "/tmp/tmp.hex"
avrdude: writing flash (125620 bytes):

Writing | ################################################## | 100% 5.85s

avrdude: 125620 bytes of flash written
avrdude: verifying flash memory against /tmp/tmp.hex:
avrdude: load data flash data from input file /tmp/tmp.hex:
avrdude: input file /tmp/tmp.hex contains 125620 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 5.78s

avrdude: verifying ...
avrdude: 125620 bytes of flash verified

avrdude done.  Thank you.



So please merge this patch.

Thanks,
Richard


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7165>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]