Comments (3)
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.
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.
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)
- Add support for more AVR-DU parts HOT 2
- Add support for emscripten HOT 6
- Trouble with Raspberry pi 5 HOT 9
- linuxgpio sysfs fallback improvement to deal with shifted GPIO numbering in new kernel version HOT 1
- usbasp_write_byte in TPI mode; all writes have to be done at page level HOT 15
- cmake enabling LINUXGPIO on ubuntu 20.04 fails HOT 4
- arduino uno atmga328p HOT 2
- macOS github action failed. HOT 9
- CMake improvement -- using pkg-find to find the libraries HOT 1
- format mismatch warnings HOT 3
- Misleading error message: cannot find programmer id
- custom programmer broken in v7.3 HOT 4
- ATtiny11 does not have EEPROM
- Misleading error message when specifying wrong AVR-Ex part HOT 11
- Multi-memory files HOT 13
- AVRDUDE fails to return -1 on certain write byte errors
- UPDI with AtmelICE, how to? HOT 6
- Parallel port silently not working HOT 9
- No way to set fuses for ATTiny 1626 / UPDI ? HOT 1
- Bootrow r/w does not work for `-c serialupdi` HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avrdude.