Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

Advanced users • Re: AMA0 RS-485 mode

$
0
0
What value are you using for MOO_GPIO_NO?
gpio_ calls and fixed GPIO numbering has been deprecated in the kernel for a fair few releases, and is now actively logging an error if a GPIO controller tries to force the base GPIO number. For this reason from 6.6 onwards pinctrl-bcm2835 hasn't been setting the base GPIO number.
You should be looking at gpiod_, or using DT to assign the GPIO.
I tried to use 17 but I've observed that 'gpio17' is no longer accessible. I've added my GPIO to the '&uart0' in the device tree, and upon checking, I discovered that the GPIO number is now represented as '529', instead of '17'. When navigating to /sys/class/gpio, I was unable to export '17' but had no issues exporting '529'. This is strange, as the "pinctrl" application continues to operate using '17'

Statistics: Posted by m4xell — Tue Jul 09, 2024 11:59 am



Viewing all articles
Browse latest Browse all 4906

Trending Articles