RPI4 gpio driver bug eventually

More
29 Sep 2020 04:41 - 29 Sep 2020 05:11 #184238 by partec
eventually found bug in the gpio driver for use with Raspberry PI4 in linuxcnc 2.8

File Attachment:

File Name: RPI4_GPIO_testp.hal
File Size:4 KB
Attachments:
Last edit: 29 Sep 2020 05:11 by partec.

Please Log in or Create an account to join the conversation.

More
29 Sep 2020 05:31 #184240 by BeagleBrainz
Best course of action is raise an issue on the Linuxcnc github.
The devs will take it from there.
The following user(s) said Thank You: partec

Please Log in or Create an account to join the conversation.

More
29 Sep 2020 08:04 #184250 by partec
thanks for the encouragement, I want to try it

Please Log in or Create an account to join the conversation.

More
10 Mar 2022 22:15 #236899 by Guglielmi
Hello,
I faced the same issue with pin 40, I opened another thread, unfortunately without open the attached hal was impossible to get the issue reported here. However.. now I will link my thread to this.
In two years the bug is not solved?
Thanks in advance
Andrea 

Please Log in or Create an account to join the conversation.

More
15 Mar 2022 18:16 - 16 Mar 2022 07:04 #237353 by elovalvo

Hello,
I faced the same issue with pin 40, I opened another thread, unfortunately without open the attached hal was impossible to get the issue reported here. However.. now I will link my thread to this.
In two years the bug is not solved?
Thanks in advance
Andrea 



I don't know which version of LinuxCNC you are using.
In any case the problem (already known for some time) has already been corrected as you can see from lines 56 and 57 of the file
github.com/LinuxCNC/linuxcnc/blob/master...rivers/hal_pi_gpio.c.

It is probably wrong to calculate the dir and exclude parameters to be inserted in the loadrt command hal_pi_gpio

For this I recommend you to use a utility in the forum
forum.linuxcnc.org/18-computer/43353-rpi...tion?start=10#226664

This is an example with screenshots of utility

$ halrun -I
halcmd: loadrt hal_pi_gpio dir=45319 exclude=28265720
Note: Using POSIX realtime
halcmd: show pin
Component Pins:
Owner Type Dir Value Name
4 bit IN FALSE hal_pi_gpio.pin-03-out
4 bit IN FALSE hal_pi_gpio.pin-05-out
4 bit IN FALSE hal_pi_gpio.pin-07-out
4 bit IN FALSE hal_pi_gpio.pin-08-out
4 bit IN FALSE hal_pi_gpio.pin-10-out
4 bit IN FALSE hal_pi_gpio.pin-11-out
4 bit OUT FALSE hal_pi_gpio.pin-13-in
4 bit OUT FALSE hal_pi_gpio.pin-15-in
4 bit OUT FALSE hal_pi_gpio.pin-18-in
4 bit IN FALSE hal_pi_gpio.pin-19-out
4 bit OUT FALSE hal_pi_gpio.pin-23-in
4 s32 OUT 0 hal_pi_gpio.read.time
4 s32 OUT 0 hal_pi_gpio.write.time

halcmd: loadrt hal_pi_gpio dir=45319 exclude=26627832
Note: Using POSIX realtime
halcmd: show pin
Component Pins:
Owner Type Dir Value Name
4 bit IN FALSE hal_pi_gpio.pin-03-out
4 bit IN FALSE hal_pi_gpio.pin-05-out
4 bit IN FALSE hal_pi_gpio.pin-07-out
4 bit IN FALSE hal_pi_gpio.pin-08-out
4 bit IN FALSE hal_pi_gpio.pin-10-out
4 bit IN FALSE hal_pi_gpio.pin-11-out
4 bit OUT FALSE hal_pi_gpio.pin-12-in
4 bit OUT FALSE hal_pi_gpio.pin-13-in
4 bit OUT FALSE hal_pi_gpio.pin-16-in
4 bit OUT FALSE hal_pi_gpio.pin-18-in
4 bit IN FALSE hal_pi_gpio.pin-19-out
4 bit OUT FALSE hal_pi_gpio.pin-40-in
4 s32 OUT 0 hal_pi_gpio.read.time
4 s32 OUT 0 hal_pi_gpio.write.time

halcmd:
Attachments:
Last edit: 16 Mar 2022 07:04 by elovalvo.

Please Log in or Create an account to join the conversation.

Time to create page: 0.200 seconds
Powered by Kunena Forum