<?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>Thingy:91 nRF52840 board controller software.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54811/thingy-91-nrf52840-board-controller-software</link><description>Hi, 
 I would like to add some custom sensor for Thingy:91 board. I notice that there are no GPIOs available to connect sensor to nRF9160 SiP? So do I need to connect the custom sensor to nRF52840 ? connector P6? 
 If that is the case, can I find the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Nov 2019 15:38:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54811/thingy-91-nrf52840-board-controller-software" /><item><title>RE: Thingy:91 nRF52840 board controller software.</title><link>https://devzone.nordicsemi.com/thread/222430?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 15:38:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b390506b-0389-4640-960d-4f4adecb5b29</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="niemjuha"]&lt;p&gt;&lt;/p&gt;&lt;p&gt;I have already made a project for nRF9160 DK which I use for demo purpose. It&amp;#39;s working great. I just wanted to use the Thingy:91 because of the board size. Basically it&amp;#39;s enough for me to just initialize the sensor over the I2C. After that I need to have two GPIO lines between nrf52840 and nRF9160, just signal some states detected by the sensor. I have now added my sensor and I2C driver to the project. I&amp;#39;m also trying to trace the nRF52840 but not getting any prints out (USB UART)?&lt;/p&gt;&lt;p&gt;Are there any free GPIO lines between the nRF52840 =&amp;gt; nRF9160 that I could use? If not then I will use the DK board.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can reuse the CTS and RTS lines (IF2+3 and IF6+7), as they&amp;#39;re not used by the nRF52 or the nRF9160, but they are however configured as input and output by the UART driver, so I&amp;#39;d recommend setting the CTS and RTS like this in your overlay file:&lt;/p&gt;
&lt;p&gt;&amp;amp;uartX {&lt;br /&gt; status = &amp;quot;ok&amp;quot;;&lt;br /&gt; rts-pin = &amp;lt;0xFFFFFFFF&amp;gt;;&lt;br /&gt; cts-pin = &amp;lt;0xFFFFFFFF&amp;gt;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Other GPIOs are also discussed in this specific reply:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51355/inputs-via-gpio-on-the-thingy-91/214080#214080"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/51355/inputs-via-gpio-on-the-thingy-91/214080#214080&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy:91 nRF52840 board controller software.</title><link>https://devzone.nordicsemi.com/thread/222385?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 14:00:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:479ae23e-dece-415b-a330-1a8a843c513c</guid><dc:creator>Juha</dc:creator><description>&lt;p&gt;Trace was configured for RTT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy:91 nRF52840 board controller software.</title><link>https://devzone.nordicsemi.com/thread/222302?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 10:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64ee3d38-9eba-4e64-bd91-1bb5985fdc49</guid><dc:creator>Juha</dc:creator><description>&lt;p&gt;I have already made a project for nRF9160 DK which I use for demo purpose. It&amp;#39;s working great. I just wanted to use the Thingy:91 because of the board size. Basically it&amp;#39;s enough for me to just initialize the sensor over the I2C. After that I need to have two GPIO lines between nrf52840 and nRF9160, just signal some states detected by the sensor. I have now added my sensor and I2C driver to the project. I&amp;#39;m also trying to trace the nRF52840 but not getting any prints out (USB UART)?&lt;/p&gt;
&lt;p&gt;Are there any free GPIO lines between the nRF52840 =&amp;gt; nRF9160 that I could use? If not then I will use the DK board.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Juha&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy:91 nRF52840 board controller software.</title><link>https://devzone.nordicsemi.com/thread/222147?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 14:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0535c16c-fd3f-4f1b-88ca-a7ee0974c6e6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;It does sound like you&amp;#39;re going into the wrong direction here.&lt;/p&gt;
&lt;p&gt;In order to connect a peripheral and get the communication to the nRF91 using your proposed method, it&amp;#39;ll have to go through 2 transport layers and adding handling on 2 MCUs (I2C -&amp;gt; NRF52 -&amp;gt; UART -&amp;gt; NRF9160). That is not a recommended approach.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would strongly recommend obtaining&amp;nbsp;a nRF9160-DK, where you can access the nRF9160 GPIOs directly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy:91 nRF52840 board controller software.</title><link>https://devzone.nordicsemi.com/thread/222018?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 09:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:596a5a80-5e54-437e-829e-2c186de22d9a</guid><dc:creator>Juha</dc:creator><description>&lt;p&gt;Building and flashing the &amp;ldquo;Usb Uart Bridge&amp;rdquo; is working. I&amp;#39;m now adding my sensor driver to the project. Driver is using the I2C, how do I add I2C support for the nrf52840_pca20035 board? My driver code is not loaded to the project because it&amp;rsquo;s depending I2C driver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy:91 nRF52840 board controller software.</title><link>https://devzone.nordicsemi.com/thread/221866?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 13:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b482ffc3-2802-4e41-8c02-3210ff6e3b24</guid><dc:creator>Juha</dc:creator><description>&lt;p&gt;Thanks for the fast reply. I have already made some custom project for the nRF9160 for some demo purpose. I wanted to make same kind of project for Thingy:91 because of the board size. I will check the example. Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Juha&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy:91 nRF52840 board controller software.</title><link>https://devzone.nordicsemi.com/thread/221851?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2019 13:01:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72423679-e94f-4b2b-b159-1618b64416d6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I would like to add some custom sensor for Thingy:91 board. I notice that there are no GPIOs available to connect sensor to nRF9160 SiP? So do I need to connect the custom sensor to nRF52840 ? connector P6?[/quote]
&lt;p&gt;Almost all GPIOs are in use, seen from the nRF9160&amp;#39;s view, so if you plan to do specific development and require external GPIOs, I&amp;#39;d recommend that you use the nRF91-DK.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a couple of test points (with unused GPIOs) you can hook onto as described in this thread, but that can be mechanically unstable:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51355/inputs-via-gpio-on-the-thingy-91"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/51355/inputs-via-gpio-on-the-thingy-91&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]If that is the case, can I find the current nRF52840 board controller source code somewhere? Or is there any template code that I could use?[/quote]
&lt;p&gt;The nRF52840 in the thingy:91 (named nrf52840_pca20035) has no direct function as a board controller, but it does this in the nRF91-DK.&lt;/p&gt;
&lt;p&gt;52840&amp;#39;s job in thingy:91 is to be a USB-UART bridge for debugging purposes, and firmware upgrading. This is the project for the firmware that is currently running on the nrf52840_pca20035:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/tree/master/samples/usb/usb_uart_bridge"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/tree/master/samples/usb/usb_uart_bridge&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>