Code Monkey home page Code Monkey logo

Comments (3)

mcuee avatar mcuee commented on August 14, 2024

Not so sure what is the issue.

But I just tested linuxgpio and linuxspi under my Raspberry Pi 400 and both are okay.

from avrdude.

mcuee avatar mcuee commented on August 14, 2024

@JanLuudi

Hmm, you seem to still use the older sysfs API, please install libgpiod-dev and the rebuild avrdue to use libgpiod instead.

mcuee@raspberrypi400arm64:~/build/avrdude_pr1725 $ sudo apt search libgpiod
Sorting... Done
Full Text Search... Done
gpiod/stable,now 1.6.3-1+b3 arm64 [installed]
  Tools for interacting with Linux GPIO character device - binary

libgpiod-dev/stable,now 1.6.3-1+b3 arm64 [installed]
  C library for interacting with Linux GPIO device - static libraries and headers

libgpiod-doc/stable,stable 1.6.3-1 all
  C library for interacting with Linux GPIO device - library documentation

libgpiod2/stable,now 1.6.3-1+b3 arm64 [installed,automatic]
  C library for interacting with Linux GPIO device - shared libraries

python3-libgpiod/stable,now 1.6.3-1+b3 arm64 [installed]
  Python bindings for libgpiod (Python 3)

mcuee@raspberrypi400arm64:~/build $ pkg-config --version libgpiod
1.8.1
mcuee@raspberrypi400arm64:~/build $ pkg-config --cflags libgpiod

mcuee@raspberrypi400arm64:~/build $ pkg-config --libs libgpiod
-lgpiod 

from avrdude.

mcuee avatar mcuee commented on August 14, 2024

My config.

# #------------------------------------------------------------
# # linuxgpio
# #------------------------------------------------------------
#
programmer
    id                   = "linuxgpio";
    desc                 = "Use the Linux sysfs interface to bitbang GPIO lines";
    type                 = "linuxgpio";
    prog_modes           = PM_ISP;
    connection_type      = linuxgpio;
    reset                = 25;
    sck                  = 11;
    sdo                  = 10;
    sdi                  = 9;

I am testing PR #1714 and it works. It is very much like git main.

mcuee@raspberrypi400arm64:~/build/avrdude_jw/build_linux/src $ ./avrdude -c linuxgpio -P gpiochip0 -p m328p
using libgpiod for linuxgpio
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e950f (probably m328p)

avrdude done.  Thank you.

mcuee@raspberrypi400arm64:~/build/avrdude_jw/build_linux/src $ ./avrdude -c linuxgpio -P gpiochip0 -p m328p -v

avrdude: Version 7.3-20240405 (69672a84)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is /home/mcuee/build/avrdude_jw/build_linux/src/avrdude.conf
         User configuration file is /home/mcuee/.avrduderc
         User configuration file does not exist or is not a regular file, skipping

using libgpiod for linuxgpio
         Using port            : gpiochip0
         Using programmer      : linuxgpio
         AVR Part              : ATmega328P
         Programming modes     : ISP, HVPP, debugWIRE, SPM
         Programmer Type       : linuxgpio
         Description           : Use the Linux sysfs interface to bitbang GPIO lines
         Pin assignment        : libgpiod
           RESET   =  25
           SCK     =  11
           SDO     =  10
           SDI     =  9
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e950f (probably m328p)

avrdude done.  Thank you.

from avrdude.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.