<?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>thingy53 using twic qwiic boards.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110665/thingy53-using-twic-qwiic-boards</link><description>I am using a thingy53 and trying to get i2c devices to work via the qwiic/twic interface. 
 I bought: SparkFun Qwiic Buzzer - BOB-24474 - SparkFun Electronics and https://www.sparkfun.com/products/14558 
 I know that they are connected correctly using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Apr 2024 05:05:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110665/thingy53-using-twic-qwiic-boards" /><item><title>RE: thingy53 using twic qwiic boards.</title><link>https://devzone.nordicsemi.com/thread/481192?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 05:05:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:710e87e4-159c-4389-a604-a63236101c0a</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;I found that the super cap on the board had no charge.&amp;nbsp; I found the documentation to turn the trickle charger on and now the reads work fine!&amp;nbsp; Thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy53 using twic qwiic boards.</title><link>https://devzone.nordicsemi.com/thread/481190?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 03:32:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11e94a56-8c29-45fb-bf70-a73c5736efda</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;I found that&amp;nbsp;CONFIG_RTC_INIT_PRIORITY was 50 the same as&amp;nbsp;CONFIG_I2C_INIT_PRIORITY.&amp;nbsp; To get the init running I changed the priority to 90 using &lt;span&gt;CONFIG_SENSOR_INIT_PRIORITY&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;DEVICE_DT_INST_DEFINE(inst, &amp;amp;am1805_init, NULL, &amp;amp;am1805_data_##inst, \&lt;br /&gt; &amp;amp;am1805_config_##inst, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY, \&lt;br /&gt; &amp;amp;am1805_driver_api);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;When I flash reset the board the following code works and err is 0:&lt;br /&gt; err = i2c_reg_read_byte_dt(&amp;amp;config-&amp;gt;int_i2c, REG_STATUS_ADDR, &amp;amp;reg);&lt;br /&gt; if (err != 0) {&lt;br /&gt; printk(&amp;quot;failed to read the status register %d&amp;quot;, err);&lt;br /&gt; return -ENODEV;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;when I reset switch the i2c_reg_read_byte_dt returns -5.&lt;br /&gt;am1805_init&lt;br /&gt;failed to read the status register -5&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy53 using twic qwiic boards.</title><link>https://devzone.nordicsemi.com/thread/481159?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 16:17:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75d0bd77-f838-4d07-a1b5-71033ff8d974</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;When I flash and the board resets, the RTC device shows as enabled and set and get are working.&amp;nbsp; When I turn off the board and turn it back on via switch, the device shows as DISABLED.&amp;nbsp; Any ideas on that strangeness?&lt;/p&gt;
&lt;p&gt;If I set the time and do&amp;nbsp;multiple flashes, the time stays.&amp;nbsp; Turning off and on via switch and the device is disabled.&amp;nbsp; The rtc reports uninitialized time on subsequent flashes.&amp;nbsp;I changed to using I2C_BITRATE_STANDARD as set was not working always using FAST.&lt;/p&gt;
&lt;p&gt;Even when the device is showing as DISABLED.&lt;/p&gt;
&lt;p&gt;i2c scan i2c@b000&lt;br /&gt; 0 1 2 3 4 5 6 7 8 9 a b c d e f&lt;br /&gt;00: -- -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;30: -- -- -- -- 34 -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;60: -- -- -- -- -- -- -- -- -- 69 -- -- -- -- -- -- &lt;br /&gt;70: -- -- -- -- -- -- -- --&lt;/p&gt;
&lt;p&gt;I see the device in a scan.&lt;br /&gt;&lt;br /&gt;here is the rtc device using the driver.&lt;br /&gt;rv18055: rv18055@69 { &lt;br /&gt;&amp;nbsp; reg = &amp;lt;0x69&amp;gt;;&lt;br /&gt;&amp;nbsp; label = &amp;quot;RV18055&amp;quot;;&lt;br /&gt;&amp;nbsp; compatible= &amp;quot;ambiq,am1805&amp;quot;;&lt;br /&gt;&amp;nbsp; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; };&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy53 using twic qwiic boards.</title><link>https://devzone.nordicsemi.com/thread/481156?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 16:07:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f104ac23-ea17-4c44-80e4-d52ce57f7b06</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;If you see something wrong, lmk.&amp;nbsp; Here is the overlay for the next guy.&lt;/p&gt;
&lt;p&gt;&amp;amp;pinctrl {&lt;/p&gt;
&lt;p&gt;i2c2_default: i2c2_default {&lt;br /&gt; group1 {&lt;br /&gt; psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 5)&amp;gt;,&lt;br /&gt; &amp;lt;NRF_PSEL(TWIM_SCL, 0, 4)&amp;gt;;&lt;br /&gt; };&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; i2c2_sleep: i2c2_sleep {&lt;br /&gt; group1 {&lt;br /&gt; psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 5)&amp;gt;,&lt;br /&gt; &amp;lt;NRF_PSEL(TWIM_SCL, 0, 4)&amp;gt;;&lt;br /&gt; low-power-enable;&lt;br /&gt; };&lt;br /&gt; };&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&amp;amp;i2c2 {&lt;br /&gt; compatible = &amp;quot;nordic,nrf-twim&amp;quot;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; clock-frequency = &amp;lt;I2C_BITRATE_FAST&amp;gt;;&lt;br /&gt; pinctrl-0 = &amp;lt;&amp;amp;i2c2_default&amp;gt;;&lt;br /&gt; pinctrl-1 = &amp;lt;&amp;amp;i2c2_sleep&amp;gt;;&lt;br /&gt; pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;&lt;/p&gt;
&lt;p&gt;rv18055: rv18055@69 { &lt;br /&gt; compatible= &amp;quot;i2c-device&amp;quot;;&lt;br /&gt; reg = &amp;lt;0x69&amp;gt;;&lt;br /&gt; label = &amp;quot;RV18055&amp;quot;;&lt;br /&gt;};&lt;br /&gt; buzz344: buzz344@34 { &lt;br /&gt; compatible= &amp;quot;i2c-device&amp;quot;;&lt;br /&gt; reg = &amp;lt;0x34&amp;gt;;&lt;br /&gt; label = &amp;quot;BUZZ344&amp;quot;;&lt;br /&gt; };&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;i2c scan i2c@b000&lt;br /&gt; 0 1 2 3 4 5 6 7 8 9 a b c d e f&lt;br /&gt;00: -- -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;30: -- -- -- -- 34 -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &lt;br /&gt;60: -- -- -- -- -- -- -- -- -- 69 -- -- -- -- -- -- &lt;br /&gt;70: -- -- -- -- -- -- -- --&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t have to change the prj.config I2C=y is enough.&amp;nbsp; Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy53 using twic qwiic boards.</title><link>https://devzone.nordicsemi.com/thread/481140?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 14:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfb4fdab-dc80-4f9d-8833-05285f608e2b</guid><dc:creator>tldr</dc:creator><description>&lt;p&gt;Thank you very much for the additional information.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;added the following to the prj.conf&lt;br /&gt;CONFIG_I2C_2=y&lt;br /&gt;CONFIG_I2C_2_NRF_TWIM=y&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;added the following to the overlay&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;i2c2&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;compatible&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;nordic,nrf-twim&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;status&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;clock-frequency&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;I2C_BITRATE_FAST&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;pinctrl-0&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;pinctrl-1&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;sda-pin&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt; &lt;/span&gt;&lt;span&gt;5&lt;/span&gt;&lt;span&gt; &amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;scl-pin&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt; &lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;span&gt; &amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;rv18055:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;rv18055&lt;/span&gt;&lt;span&gt;@&lt;/span&gt;&lt;span&gt;69&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;compatible&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;i2c-device&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;reg&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;0x69&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;RV18055&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;buzz344:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;buzz344&lt;/span&gt;&lt;span&gt;@&lt;/span&gt;&lt;span&gt;34&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;compatible&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;i2c-device&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;reg&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;0x34&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;BUZZ344&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;First I tried using sda and scl pin, which was not ok&lt;br /&gt;devicetree.dtlib.DTError: expected property &amp;#39;pinctrl-0&amp;#39; on /soc/peripheral@50000000/i2c@b000 in empty_file.c to be assigned with &amp;#39;pinctrl-0 = &amp;lt; &amp;amp;foo &amp;amp;bar ... &amp;gt;;&amp;#39;, not &amp;#39;pinctrl-0 = &amp;lt; 0x5 &amp;gt;;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I&amp;#39;ve not spent much time with the pinctrl.&amp;nbsp; Can you help me with the device device tree config required?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy53 using twic qwiic boards.</title><link>https://devzone.nordicsemi.com/thread/481135?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 14:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:330861f2-facb-4ea0-905a-a8f97ed9de9e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;According to the &lt;a href="https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/dev-kits/thingy-53/hardware-files/thingy53---hardware-files-0_8_0.zip"&gt;Thingy53 HW files&lt;/a&gt;, the expansion board header is connected to GPIOs P0.04 and P0.05:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1714400579987v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1714400715448v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The other I2C sensor on the board are connected to P1.02/P1.03 (default pins for I2C1 node). To interface the sensors connected to the expansion board connector, you should use a separate i2c instance configured to use these GPIOs.&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></channel></rss>