<?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>long button press / auto reset back to app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20393/long-button-press-auto-reset-back-to-app</link><description>I need some help with something very basic...
I need a way to upgrade my DFU BLE bootloader to either reset back to the app if no update has been sent after some timeout, OR to add a long button press that would reset back to the app.
Can someone give</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Mar 2017 10:17:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20393/long-button-press-auto-reset-back-to-app" /><item><title>RE: long button press / auto reset back to app</title><link>https://devzone.nordicsemi.com/thread/79512?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2017 10:17:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e992061-b5ca-4c3b-9cf1-d909d33f00b6</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Shay,&lt;/p&gt;
&lt;p&gt;I suggest that you use the Watchdog Timer to implement a timeout if there is no DFU activity as explained in &lt;a href="https://devzone.nordicsemi.com/question/103394/s130-dfu-ble-bootloader-no-timeout/"&gt;this&lt;/a&gt; answer.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: long button press / auto reset back to app</title><link>https://devzone.nordicsemi.com/thread/79511?ContentTypeID=1</link><pubDate>Sat, 11 Mar 2017 22:34:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8289be42-0c3a-4403-a560-c5a44aecd13f</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I&amp;#39;m afraid this is too simple code. For long press you should probably listen for any GPIOTE change on the PIN, start timer when it gets pressed (= check GPIO state and start timer could be done in interrupt handler) and then check its counter when another interrupt happens and the GPIO state is the opposite. Look to these two SDK libraries and combine them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: long button press / auto reset back to app</title><link>https://devzone.nordicsemi.com/thread/79506?ContentTypeID=1</link><pubDate>Sat, 11 Mar 2017 21:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7dbf274-92db-419c-a13b-5945e856a440</guid><dc:creator>Shay Ohayon</dc:creator><description>&lt;p&gt;i&amp;#39;m looking at this example: &lt;a href="https://github.com/NordicSemiconductor/nrf51-app-button-example/blob/master/main.c"&gt;github.com/.../main.c&lt;/a&gt;
How would you detect a button de-press with this library?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: long button press / auto reset back to app</title><link>https://devzone.nordicsemi.com/thread/79510?ContentTypeID=1</link><pubDate>Sat, 11 Mar 2017 16:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:263017ab-f3b1-4126-926b-a95774225428</guid><dc:creator>Shay Ohayon</dc:creator><description>&lt;p&gt;This is why I posted the question here. I can&amp;#39;t implement bootloader with mbed. it must be low level....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: long button press / auto reset back to app</title><link>https://devzone.nordicsemi.com/thread/79509?ContentTypeID=1</link><pubDate>Sat, 11 Mar 2017 16:25:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef9e52ec-59ae-4984-9a45-a3d7edf0ed80</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Most of people here use nRF5 SDK directly. If you want to keep using mbed then I believe their SDK have similar basic modules, their forum seems to be active as well...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: long button press / auto reset back to app</title><link>https://devzone.nordicsemi.com/thread/79508?ContentTypeID=1</link><pubDate>Sat, 11 Mar 2017 16:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a098af56-fff5-40c9-9d18-8c49f10b147e</guid><dc:creator>Shay Ohayon</dc:creator><description>&lt;p&gt;I&amp;#39;ll look into those. Thanks. I haven&amp;#39;t had a chance to read the full SDK documentation. I&amp;#39;m mostly using mbed for high level stuff.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: long button press / auto reset back to app</title><link>https://devzone.nordicsemi.com/thread/79507?ContentTypeID=1</link><pubDate>Sat, 11 Mar 2017 16:15:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d01ded74-03db-4e18-bad8-6014214b3f6e</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;What do you mean by pointers? You need to write the code yourself. Do you need to help &amp;quot;app_button&amp;quot; and &amp;quot;app_timer&amp;quot; libraries from nRF5 SDK (\components\libraries)? These are pretty easy to use...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>