bugAVR Downloader/UploaDEr - Bugs: bug #42158, Linux GPIO - Source Typo

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #42158: Linux GPIO - Source Typo

Submitter:  Andy Simpkins <rattusrattus>
Submitted:  Mon 21 Apr 2014 04:50:27 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Ready For Test Privacy:  Public
Assigned to:  rliebscher Originator Name:  Andy Simpkins
Open/Closed:  Open Release:  None
Programmer hardware:  Device type: 

Tue 28 Apr 2015 02:00:03 AM UTC, comment #2: 

I can confirm that this fix works.  It also is important especially for the BeagleBone, because its GPIOs are overloaded with other functions, so not all of them are available, and in fact almost none of the pins below 32 are available.

So please can this be included in a release some time soon?

Thank you very much,
Bas

Bas Wijnen <shevek>
Wed 07 May 2014 08:54:27 PM UTC, comment #1: 

Fixed in revision 1299

Rene Liebscher <rliebscher>
Group Member
Mon 21 Apr 2014 04:50:27 PM UTC, original submission:  

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

Andy Simpkins <rattusrattus>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by shevek (Posted a comment)
  • -email is unavailable- added by rliebscher (Posted a comment)
  • -email is unavailable- added by rattusrattus
  • -email is unavailable- added by rattusrattus (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-07 rliebscher StatusNone Ready For Test
        Assigned toNone rliebscher
    2014-04-21 rattusrattus Carbon-Copy- Added rattusrattus

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code