[bug #58440] linuxgpio PIN limit too low

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #58440] linuxgpio PIN limit too low

Kevin Cuzner-2
URL:
  <https://savannah.nongnu.org/bugs/?58440>

                 Summary: linuxgpio PIN limit too low
                 Project: AVR Downloader/UploaDEr
            Submitted by: None
            Submitted on: Mon 25 May 2020 12:04:01 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Jookia
        Originator Email: [hidden email]
             Open/Closed: Open
                 Release: SVN snapshot
         Discussion Lock: Any
     Programmer hardware: linuxgpio
             Device type: m328p

    _______________________________________________________

Details:

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?




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?58440>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


Reply | Threaded
Open this post in threaded view
|

[bug #58440] linuxgpio PIN limit too low

Kevin Cuzner-2
Update of bug #58440 (project avrdude):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up 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.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?58440>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


Reply | Threaded
Open this post in threaded view
|

[bug #58440] linuxgpio PIN limit too low

Kevin Cuzner-2
Follow-up Comment #2, bug #58440 (project avrdude):

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

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?58440>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


Reply | Threaded
Open this post in threaded view
|

[bug #58440] linuxgpio PIN limit too low

Kevin Cuzner-2
Follow-up Comment #3, bug #58440 (project avrdude):

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

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?58440>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/