Thank you very much Phil!
I tried to disable spi0 by uncomment the dtparam=spi and added instead the dtoverlay=spi1-2cs,
but still the same issue.
It seems they still think they are inputs although i switched the spi0 off and the uart3 & 4 is configured.
This is how it is ectrically done on my mainboard to the CM4.
If i dwitch of my software running as a service it shows the correct pins.
As soon as i enable it again
I definetly not using those pins.
I must check whether it has something to do with the pi4j2 library, which is doing something like PI4J.newAutoContext()
I tried to disable spi0 by uncomment the dtparam=spi and added instead the dtoverlay=spi1-2cs,
but still the same issue.
Code:
#dtparam=spi=offdtoverlay=spi1-2cs
Code:
4: ip p1u | hi // GPIO_GCLK/GPIO4 = input 5: a4 pu | hi // GPIO5 = RXD3 8: ip pu | hi // SPI_CE0_N/GPIO8 = input 9: a4 pu | hi // SPI_MISO/GPIO9 = RXD4
Code:
$ grep GPIO_GCLK /sys/kernel/debug/gpio[b] gpio-4 (GPIO_GCLK )[/b]$ sudo grep -w gpio4 /sys/kernel/debug/pinctrl/*/*pinsThis is in pinctrl-mapsdevice fe201600.serialstate defaulttype CONFIGS_PIN (3)controlling device fe200000.gpiopin gpio4config 00000080/sys/kernel/debug/pinctrl/fe200000.gpio-pinctrl-bcm2711 $ sudo nano pinsregistered pins: 58pin 0 (gpio0) 0:pinctrl-bcm2711 function gpio_in in hi; irq 0 (none)pin 1 (gpio1) 1:pinctrl-bcm2711 function gpio_out in lo; irq 0 (none)pin 2 (gpio2) 2:pinctrl-bcm2711 function gpio_in in hi; irq 0 (none)pin 3 (gpio3) 3:pinctrl-bcm2711 function alt0 in hi; irq 0 (none)pin 4 (gpio4) 4:pinctrl-bcm2711 function gpio_in in hi; irq 0 (none)pin 5 (gpio5) 5:pinctrl-bcm2711 function alt4 in hi; irq 0 (none)pin 6 (gpio6) 6:pinctrl-bcm2711 function gpio_in in hi; irq 0 (none)pin 7 (gpio7) 7:pinctrl-bcm2711 function gpio_in in hi; irq 0 (none)pin 8 (gpio8) 8:pinctrl-bcm2711 function gpio_in in hi; irq 0 (none)pin 9 (gpio9) 9:pinctrl-bcm2711 function alt4 in hi; irq 0 (none)pin 10 (gpio10) 10:pinctrl-bcm2711 function gpio_in in lo; irq 0 (none)pin 11 (gpio11) 11:pinctrl-bcm2711 function gpio_in in lo; irq 0 (none)pin 12 (gpio12) 12:pinctrl-bcm2711 function alt4 in hi; irq 0 (none)pin 13 (gpio13) 13:pinctrl-bcm2711 function alt4 in hi; irq 0 (none)pin 14 (gpio14) 14:pinctrl-bcm2711 function alt5 in hi; irq 0 (none)pin 15 (gpio15) 15:pinctrl-bcm2711 function alt5 in hi; irq 0 (none)pin 16 (gpio16) 16:pinctrl-bcm2711 function gpio_out in lo; irq 0 (none)pin 17 (gpio17) 17:pinctrl-bcm2711 function gpio_out in hi; irq 0 (none)pin 18 (gpio18) 18:pinctrl-bcm2711 function gpio_out in hi; irq 0 (none)
This is how it is ectrically done on my mainboard to the CM4.
If i dwitch of my software running as a service it shows the correct pins.
Code:
4: a4 pn | hi // GPIO_GCLK/GPIO4 = TXD3 5: a4 pu | hi // GPIO5 = RXD3 8: a4 pn | hi // SPI_CE0_N/GPIO8 = TXD4 9: a4 pu | hi // SPI_MISO/GPIO9 = RXD4
Code:
$ sudo systemctl enable selma.service$ sudo reboot$ pinctrl get 4,5,8,9 4: ip pu | hi // GPIO_GCLK/GPIO4 = input 5: a4 pu | hi // GPIO5 = RXD3 8: ip pu | hi // SPI_CE0_N/GPIO8 = input 9: a4 pu | hi // SPI_MISO/GPIO9 = RXD4
I must check whether it has something to do with the pi4j2 library, which is doing something like PI4J.newAutoContext()
Statistics: Posted by mistermaek — Mon Feb 19, 2024 4:49 pm