bugAVR Downloader/UploaDEr - Bugs: bug #58440, linuxgpio PIN limit too low


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

bug #58440: linuxgpio PIN limit too low

Submitted by:  None
Submitted on:  Mon 25 May 2020 12:04:01 AM UTC  
Votes:  5  
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Confirmed Privacy:  Public
Assigned to:  None Originator Name:  Jookia
Originator Email:  -email is unavailable- Open/Closed:  Open
Release:  SVN snapshot Programmer hardware:  linuxgpio
Device type:  m328p

Mon 22 Jun 2020 08:52:21 PM UTC, comment #3: 

I'm having the same problem with Tinker Board. The biggest bin is 257, which is used as MOSI1 so I had to increase the number of maximum pins

otzy <otzy>
Sun 07 Jun 2020 11:24:40 PM UTC, comment #2: 

Bumping PIN_MAX might be good enough for now. Maybe something like 512?

Jookia <jookia>
Tue 26 May 2020 06:04:07 AM UTC, comment #1: 

Well, PIN_MAX is used to derive PIN_FIELD_SIZE, which is eventually used to determine the size of some arrays.

So, short of bumping PIN_MAX even more, I don't see a quick other remedy.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Mon 25 May 2020 12:04:01 AM UTC, original submission:  

I'm on an ARM board using the Allwinner A20 SoC with 277 GPIOs, and as luck would have it I was using GPIOs 272 through 275 for the linuxgpio driver. It gave me this error:

avrdude: error at /home/user/avrdude_gpio.conf:1269: pin must be in the range 0-255

Upping PIN_MAX to 512 in libavrdude.h fixed this for me, but maybe a better idea is to remove the limit?



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 otzy (Posted a comment)
  • -email is unavailable- added by otzy (Voted in favor of this item)
  • -email is unavailable- added by jookia (Posted a comment)
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

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

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-06-22 otzy Carbon-Copy- => Added otzy
    2020-05-26 joerg_wunsch StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.5