<?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>I2C event handler invoked from inside RTC event handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83521/i2c-event-handler-invoked-from-inside-rtc-event-handler</link><description>Hi, 
 I have developed attached code for I2C communication with temperature sensor. The main function I2C_sample() checks whether sensor is detected by detect() and then performs a temperature measurement. The code is initially written by placing I2C_sample</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jan 2022 17:45:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83521/i2c-event-handler-invoked-from-inside-rtc-event-handler" /><item><title>RE: I2C event handler invoked from inside RTC event handler</title><link>https://devzone.nordicsemi.com/thread/347261?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 17:45:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8467aa77-e03a-40d6-b5b7-2e01c279981d</guid><dc:creator>Kaveh.M</dc:creator><description>&lt;p&gt;Excellent. That worked perfect.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C event handler invoked from inside RTC event handler</title><link>https://devzone.nordicsemi.com/thread/347191?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 14:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6351e94-75a2-4de4-9f03-de69df65148c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are not using the RTC configured interrupt priority defined in your sdk_config.h file, so the priority is likely set to 0 (or whatever else is stored in the area where&amp;nbsp;rtc_config is placed in RAM). You can read out the actual priorities by looking at the NVIC-&amp;gt;IPRx registers:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/NVIC_5F00_priorities.png" /&gt;&lt;/p&gt;
&lt;p&gt;To use the priority from your sdk_config.h file, you can assign the default config to the variable like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_drv_rtc_config_t rtc_config = NRF_DRV_RTC_DEFAULT_CONFIG;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C event handler invoked from inside RTC event handler</title><link>https://devzone.nordicsemi.com/thread/347018?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 19:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79365820-40d9-4af9-9c0d-8951e496b8d6</guid><dc:creator>Kaveh.M</dc:creator><description>&lt;p&gt;&lt;span&gt;RTC interrupt priority is 7 and lower than the TWI interrupt priority that is set to 6. I attached sdk_config.h here to make sure this is done properly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6175.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../6175.sdk_5F00_config.h&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>