URL:
  <http://savannah.nongnu.org/bugs/?42158>

                 Summary: Linux GPIO - Source Typo
                 Project: AVR Downloader/UploaDEr
            Submitted by: rattusrattus
            Submitted on: Mon 21 Apr 2014 04:50:27 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Andy Simpkins
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hi there,

This is causing me problems with implementing bit
bashed sysfs gpio on armhf (in this case a beagle bone black and
derivative) i.e. type = "linuxgpio"
attempting to configure GPIO line 45 failed with the error message:
"pin must be in the range 0-31"


Many thanks for all your hard work.

/Andy


THE FIX:
The definition HAVE_LINUX_GPIO is used to set PIN_MAX between either 31
(default) or 255, however it is called HAVE_LINUXGPIO in the rest of the
codebase.

pindefs.h:62
  #ifdef HAVE_LINUX_GPIO
becomes
  #ifdef HAVE_LINUXGPIO



TO REPRODUCE:
I use a custom config file: lwb-avrdude.conf
  programmer
    id    = "keyboard";
    desc  = "Toby Churchill Ltd.  LWB platform, keyboard";
    type  = "linuxgpio";
    reset = ~45;
    sck   = 2;
    mosi  = 3;
    miso  = 5;
    ;


call avrdude thus:
  avrdude -v -p m32 -C ./lwb-avrdude.conf -c keyboard -e

returns:
 avrdude: Version 6.1, compiled on Apr 16 2014 at 17:41:25
          Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
          Copyright (c) 2007-2014 Joerg Wunsch
          System wide configuration file is "./lwb-avrdude.conf"
 avrdude: error at line 5 of ./lwb-avrdude.conf: pin must be in the range
0-31





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?42158>

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


_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to