<?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>Button interrupt in Bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80425/button-interrupt-in-bootloader</link><description>Hi, 
 
 I am trying to edit my bootloader (buttonless USB DFU). 
 I want to add a button to exit the bootloader and return to the app. 
 The problem is that the gpiote interrupt is not firing. 
 The gpiote_event_handler I inserted in the function nrf_drv_gpiote_in_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Oct 2021 12:13:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80425/button-interrupt-in-bootloader" /><item><title>RE: Button interrupt in Bootloader</title><link>https://devzone.nordicsemi.com/thread/334141?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 12:13:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5fc3c6-3a7d-41a3-9a49-6669d6d3f81f</guid><dc:creator>Jacques</dc:creator><description>&lt;p&gt;Adding&amp;nbsp;nrf_drv_clock_lfclk_request(NULL); seems to have solved a lot of my problems&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button interrupt in Bootloader</title><link>https://devzone.nordicsemi.com/thread/334093?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 10:05:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30d804fc-e2af-4f47-b256-2a15b9e95f88</guid><dc:creator>Jacques</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;This test was very helpful.&lt;/p&gt;
&lt;p&gt;It seems my issue lies with the app_timer. The button IRQ is firing, but the debounce timer that app_button uses is not working. I think it has something to do with the fact that the DFU code uses a scheduler&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button interrupt in Bootloader</title><link>https://devzone.nordicsemi.com/thread/333276?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 13:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca4a5b82-77cf-487b-bfe9-86713ecc3789</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This should work. I did a quick example now based on the &amp;lt;SDK17.1.0&amp;gt;\examples\dfu\open_bootloader\pca10056_usb_debug\ses\.&lt;/p&gt;
&lt;p&gt;The changes from the default project is this in main.c:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0513.main.c.diff"&gt;devzone.nordicsemi.com/.../0513.main.c.diff&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and this in sdk_config.h:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0525.sdk_5F00_config.h.diff"&gt;devzone.nordicsemi.com/.../0525.sdk_5F00_config.h.diff&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you test that with a nRF52840 DK and press button 1 (0 in code), you will see a line printed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button interrupt in Bootloader</title><link>https://devzone.nordicsemi.com/thread/333094?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 14:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0d9b3a1-3662-4390-ba69-dcfd52e8b41c</guid><dc:creator>Jacques</dc:creator><description>&lt;p&gt;And yes, I do call&amp;nbsp;&lt;span&gt;nrf_drv_gpiote_in_event_enable&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>