<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts by nixola</title><link href="https://forge.codesys.com/u/nixola/" rel="alternate"></link><link href="https://forge.codesys.com/u/nixola/profile/feed.atom" rel="self"></link><id>https://forge.codesys.com/u/nixola/</id><updated>2026-07-21T12:32:28Z</updated><subtitle>Recent posts by nixola</subtitle><entry><title>CmpCharDevice blocks gpiochip access on Raspberry Pi 5 since update from SP18 to SP21</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e7f7cd3ad7/?limit=25#5c6e" rel="alternate"></link><published>2026-07-21T12:32:28Z</published><updated>2026-07-21T12:32:28Z</updated><author><name>nixola</name><uri>https://forge.codesys.com/u/nixola/</uri></author><id>https://forge.codesys.coma86e0ad4b59e27a73da4a43a8802a6539c1ca2ec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I added the following lines to &lt;code&gt;/etc/codesyscontrol/CODESYSControl_User.cfg&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;[CmpCharDevice]
PermittedPath.0=/dev/i2c*
PermittedPath.1=/dev/spidev*
PermittedPath.2=/sys/class/gpio/*
PermittedPath.3=/dev/gpiochip*&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;However, I'm still unable to read or control GPIO pins from any CODESYS application. Specifically, setting the pin direction (and, thus, the IoDrvGpioSysfs driver configuration) fails, with a rather non-descript error in the logs:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Setting direction failed for GPIO pin 586&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;IEC&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Update configuration failed from driver IoDrvGPIOSysfs&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CmpIoMgr&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;I'm running CODESYS Control for Linux ARM64 SL version 4.21.0.0; it's running in rootless mode, as the &lt;code&gt;codesyscontrol&lt;/code&gt; user, but said user is in the &lt;code&gt;gpio&lt;/code&gt; group and can otherwise normally interact with GPIO, both via &lt;code&gt;gpioset&lt;/code&gt;/&lt;code&gt;gpioget&lt;/code&gt; and via the sysfs driver in &lt;code&gt;/sys/class/gpio/&lt;/code&gt;.&lt;br/&gt;
The system is a custom 64-bit Raspberry OS based distro, running on a Raspberry Pi CM5 on kernel 6.18.34 with PREEMPT_RT scheduling.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>