<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts by nixola</title><link>https://forge.codesys.com/u/nixola/</link><description>Recent posts by nixola</description><language>en</language><lastBuildDate>Tue, 21 Jul 2026 12:32:28 -0000</lastBuildDate><atom:link href="https://forge.codesys.com/u/nixola/profile/feed.rss" rel="self" type="application/rss+xml"></atom:link><item><title>CmpCharDevice blocks gpiochip access on Raspberry Pi 5 since update from SP18 to SP21</title><link>https://forge.codesys.com/forge/talk/Runtime/thread/e7f7cd3ad7/?limit=25#5c6e</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nixola</dc:creator><pubDate>Tue, 21 Jul 2026 12:32:28 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.coma86e0ad4b59e27a73da4a43a8802a6539c1ca2ec</guid></item></channel></rss>