Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revise MRAA driver's GPIO implementation #966

Merged
merged 1 commit into from
Mar 23, 2024
Merged

revise MRAA driver's GPIO implementation #966

merged 1 commit into from
Mar 23, 2024

Conversation

2bndy5
Copy link
Member

@2bndy5 2bndy5 commented Mar 23, 2024

resolves #965

This comment was marked as off-topic.

@2bndy5 2bndy5 changed the title revise MRAA's GPIO implementation revise MRAA driver's GPIO implementation Mar 23, 2024
Copy link
Member

@TMRh20 TMRh20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on RPI Model B

@2bndy5
Copy link
Member Author

2bndy5 commented Mar 23, 2024

It also still works on my RPi3. My RPi4 is still exiting with:

terminate called after throwing an instance of 'std::invalid_argument'
  what():  Invalid GPIO pin specified
Aborted

@2bndy5
Copy link
Member Author

2bndy5 commented Mar 23, 2024

using sudo journalctl, I see the logs:

Mar 23 10:34:15 rpi4-64bit libmraa[823]: libmraa version v2.2.0-49-g258bfcf initialised by user 'brendan' with EUID 1000
Mar 23 10:34:15 rpi4-64bit libmraa[823]: gpio: platform doesn't support chardev, falling back to sysfs
Mar 23 10:34:15 rpi4-64bit libmraa[823]: libmraa initialised for platform 'Raspberry Pi 4 Model B' of type 5
Mar 23 10:34:15 rpi4-64bit libmraa[823]: gpio22: init: Failed to write to 'export': Invalid argument
Mar 23 10:34:15 rpi4-64bit kernel: export_store: invalid GPIO 22

gpio: platform doesn't support chardev, falling back to sysfs

This seems like a problem mraa needs to fix. I'm confident now that these changes are not breaking it even more on RPi4+.

@2bndy5 2bndy5 merged commit a6eae52 into master Mar 23, 2024
80 checks passed
@2bndy5 2bndy5 deleted the revise-mraa-gpio branch March 23, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

revise MRAA driver's GPIO
2 participants