<?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>Clock source and GPIO26</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14946/clock-source-and-gpio26</link><description>Hi, 
 Im using a custom board running a program based on &amp;#39;ble_app_hids_mouse (pca10028)&amp;#39; project, softdevice S130. 
 Since there is no 32.768 kHz crystal on my board, the sofdevice clock source is set to 
 
 NRF_CLOCK_LF_SRC_RC 
 
 with: 
 
 rc_ctiv</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jul 2016 09:17:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14946/clock-source-and-gpio26" /><item><title>RE: Clock source and GPIO26</title><link>https://devzone.nordicsemi.com/thread/57009?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 09:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7e983fc-6892-4340-bb8b-003b087853c8</guid><dc:creator>assafi</dc:creator><description>&lt;p&gt;What I find more interesting is why other TWI slaves works ok while only this one (connected to GPIO26) cause reset.
currently I cant debug the board (only program it and debug using scope), so the breakpoint testing will have to wait...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock source and GPIO26</title><link>https://devzone.nordicsemi.com/thread/57008?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 06:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11c0db2f-a63a-4aa5-804b-1fb42a33f01d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That&amp;#39;s ok - if you don&amp;#39;t have a crystal mounted those pads are totally available. You&amp;#39;ve changed the clock source (if you hadn&amp;#39;t then the LF clock wouldn&amp;#39;t start and the softdevice enable would fail).&lt;/p&gt;
&lt;p&gt;Test without the softdevice, but start the RC LF clock at the start of the code and wait for it to start, see what happens then. Because that&amp;#39;s what the softdevice is doing.&lt;/p&gt;
&lt;p&gt;The chip only resets if you pull the reset line or you get to a piece of code which is resetting it, so again check the error handlers for something returning an error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock source and GPIO26</title><link>https://devzone.nordicsemi.com/thread/57007?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 06:03:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb14aaea-552b-4443-932e-cefc5e00588a</guid><dc:creator>assafi</dc:creator><description>&lt;p&gt;My evidence are these posts which seems to have exactly the same problem:
&lt;a href="https://devzone.nordicsemi.com/question/32023/nrf51822-gpio-pin-p026-and-p027-unavailable-with-softdevice/"&gt;Pin P0.26 and P0.27 Unavailable with SoftDevice&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/37212/spi-slave-not-working-on-pins-2627/"&gt;SPI slave not working on pins 26,27&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another evidence is that the program running fine without the softdevice.&lt;/p&gt;
&lt;p&gt;As i was saying, the error is not when the sofdevice is enabled. The MCU reset itself after 2 writes to the TWI bus.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock source and GPIO26</title><link>https://devzone.nordicsemi.com/thread/57006?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 00:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99af5e8a-b297-46a3-ac68-e8d6afdb140d</guid><dc:creator>RK</dc:creator><description>&lt;pre&gt;&lt;code&gt;&amp;quot;I understand that this problem is related to the softdevice clock.&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What evidence do you have that it has anything to do with the softdevice clock? I can&amp;#39;t see any reason it would have anything to do with the softdevice clock. SPI and TWI don&amp;#39;t even use the LF clock. More likely you have a call which is returning an error when the softdevice is enabled and APP_ERROR_CHECK() is sending you to the error handler and resetting the device.&lt;/p&gt;
&lt;p&gt;Put breakpoints in all the error handlers, look at the reset reason register when you start up, look for a simple answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>