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

 
 

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

bug #42158: Linux GPIO - Source Typo

Submitted by:  Andy Simpkins <rattusrattus>
Submitted on:  Mon 21 Apr 2014 04:50:27 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Ready For TestPrivacy: Public
Assigned to: Rene Liebscher <rliebscher>Originator Name: Andy Simpkins
Open/Closed: Open

Wed 07 May 2014 08:54:27 PM UTC, comment #1:

Fixed in revision 1299

Rene Liebscher <rliebscher>
Project MemberIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 07 May 2014 08:54:27 PM UTCrliebscherStatusNone=>Ready For Test
      Assigned toNone=>rliebscher
    Mon 21 Apr 2014 04:50:28 PM UTCrattusrattusCarbon-Copy-=>Added rattusrattus

    Back to the top


    Powered by Savane 3.1-cleanup