<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to No Driver Found I2C Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c84d3305ea/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c84d3305ea/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/c84d3305ea/</id><updated>2020-02-27T15:47:41.775000Z</updated><subtitle>Recent posts to No Driver Found I2C Device</subtitle><entry><title>No Driver Found I2C Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c84d3305ea/?limit=25#e003" rel="alternate"/><published>2020-02-27T15:47:41.775000Z</published><updated>2020-02-27T15:47:41.775000Z</updated><author><name>fcos</name><uri>https://forge.codesys.com/u/fcos/</uri></author><id>https://forge.codesys.com3f5cc55550f4370758bdb4b021253e0878e59c08</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I had the same problem, I think this is because I commented out the line with the &lt;strong&gt;Initialize&lt;/strong&gt; method call in the devdesc.xml.&lt;br/&gt;
Uncommenting the line solved the problem for me. So I think &lt;strong&gt;Initialize&lt;/strong&gt; method call should be present even if your FB that extends Raspberry Pi i2c does not implement it.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;FBInstance&lt;/span&gt; &lt;span class="k"&gt;basename&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;$(DeviceName)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;fbname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;I2CHAT_DI6acDQ6rly&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
   &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;Initialize&lt;/span&gt; &lt;span class="nv"&gt;methodName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Initialize&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
   &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;CyclicCall&lt;/span&gt; &lt;span class="nv"&gt;methodname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;AfterReadInputs&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;task&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;#buscycletask&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;whentocall&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;afterReadInputs&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
   &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;CyclicCall&lt;/span&gt; &lt;span class="nv"&gt;methodname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;BeforeWriteOutputs&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;task&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;#buscycletask&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;whentocall&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;beforeWriteOutputs&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;FBInstance&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;BR&lt;br/&gt;
Florin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>No Driver Found I2C Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c84d3305ea/?limit=25#89fd" rel="alternate"/><published>2020-02-27T15:47:40.945000Z</published><updated>2020-02-27T15:47:40.945000Z</updated><author><name>raymondclark0</name><uri>https://forge.codesys.com/u/raymondclark0/</uri></author><id>https://forge.codesys.com8103f9ad7ca333eed286cecbc1a99c787d638613</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;Manged to get it to work,  not sure what the problem was, I ended up deleted the device description and stating again.&lt;/p&gt;
&lt;p&gt;Submitted the working library to here:&lt;/p&gt;
&lt;p&gt;l &lt;a class="" href="http://forum.codesys.com/viewforum.php?f=23" rel="nofollow"&gt;viewforum.php?f=23&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;Thanks,&lt;br/&gt;
Raymond.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>No Driver Found I2C Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c84d3305ea/?limit=25#df72" rel="alternate"/><published>2020-02-27T15:47:40.124000Z</published><updated>2020-02-27T15:47:40.124000Z</updated><author><name>raymondclark0</name><uri>https://forge.codesys.com/u/raymondclark0/</uri></author><id>https://forge.codesys.coma8b3a8835a2b92c8a79ff4846ea809ec52814553</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm trying to create a library to interface the raspberry pi with the Adafruit LSM303 accelerometer and magnetometer board.  I can see the device and read the registers using the i2cget command via SSH,  I've tried to follow the instructions to create a new device description and library but when I try to add it to a project it shows the red triangle and says "No Driver Found" in the status tab when going online with the PLC.  What driver is this referring to? Is this an error in the device description file?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br/&gt;
Raymond.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: codesys.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2711"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2713" rel="nofollow"&gt;I2C_LSM303.library &lt;span&gt;&lt;span&gt;[301.13 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=2712" rel="nofollow"&gt;LSM303_Accel.devdesc.xml &lt;span&gt;&lt;span&gt;[2.38 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>