<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF Connect SDK and I2C</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85360/nrf-connect-sdk-and-i2c</link><description>Fairly new to nRF Connect SDK &amp;amp; Zephyr although I have worked a lot with NRF5 SDK 
 I&amp;#39;m at a bit of a dead end here. I trying to setup a way to repeatedly read out data from an I2C device. I have a custom driver that I can sucessfully use to read out</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Mar 2022 16:12:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85360/nrf-connect-sdk-and-i2c" /><item><title>RE: nRF Connect SDK and I2C</title><link>https://devzone.nordicsemi.com/thread/356125?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 16:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f575821e-62ef-4f33-bbda-95f0061c24b1</guid><dc:creator>nikolozka</dc:creator><description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tried it out yet but I&amp;#39;m fairly certain this is the correct solution.&lt;/p&gt;
&lt;p&gt;I guess I was looking for the Zephyr equivalent of&amp;nbsp;app_sched_event_put() call from nrf5 sdk&lt;/p&gt;
&lt;p&gt;marking as closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK and I2C</title><link>https://devzone.nordicsemi.com/thread/356098?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 15:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da1f32ec-260e-44dd-828e-8b6d5a9abdeb</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try setting up a work function which calls sensor_sample_fetch() and sensor_channel_get(), and have the timer callback schedule the work instead.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/threads/workqueue.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/threads/workqueue.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I believe the issues you are facing are due to the functions being called in an interrupt, this will solve that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>