<?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>Secure DFU example add interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82875/secure-dfu-example-add-interrupt</link><description>Good morning/afternoon/evening, 
 So I am fairly new to nRF system and wanted to know if there is a way to execute an interrupt when one of the buttons on the board is pressed. Using the secure dfu bootloader example. I am working with nRF SDK 16.0v and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Dec 2021 09:16:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82875/secure-dfu-example-add-interrupt" /><item><title>RE: Secure DFU example add interrupt</title><link>https://devzone.nordicsemi.com/thread/344753?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 09:16:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a95a9751-4153-4041-be0b-cda64af466ab</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jose,&amp;nbsp;&lt;br /&gt;I would suggest to get familiar with the bsp library in a simple application before you move to the bootloader. Please try to add button handling in a small easy application for example : examples\peripheral\blinky .&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU example add interrupt</title><link>https://devzone.nordicsemi.com/thread/344431?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 16:30:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:204447dc-92be-4886-acf9-4ec0776b4803</guid><dc:creator>joseesotolongo</dc:creator><description>&lt;p&gt;I have enabled the button in the sdk_config but now I am getting overlapping sections in the memory. I&amp;#39;m not sure how to fix this issue.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Output " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3362.Capture.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;EDIT: So I have been able to figure out the issue is the bsp_init() function that I call. Since there is already an existing ISR in the program, I am attempting to override the current one with the new one. But now I do not know how to add an interrupt to the existing ISR or how to replace the current ISR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU example add interrupt</title><link>https://devzone.nordicsemi.com/thread/344298?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 10:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0d5a23-23b7-4cae-8043-9bb511f64d84</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jose,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You would need to include app_button.c and enable app_button (BUTTON_ENABLED)in the sdk_config.h&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please refer to other examples in the SDK for example ble_app_hrs .&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU example add interrupt</title><link>https://devzone.nordicsemi.com/thread/344210?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 19:40:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b1aa4d6-39ff-4900-adfb-b49d5a67af19</guid><dc:creator>joseesotolongo</dc:creator><description>&lt;p&gt;I have been able to add the bsp_event_handler but for some reason I get this error.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;1&amp;gt; /usr/share/segger_embedded_studio_for_arm_5.68/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/secure_bootloader_uart_mbr_pca10040/bsp.o: in function `bsp_init&amp;#39;:
1&amp;gt; /home/dex/_ble_central_reference_nrfsdk/nRF5SDK160098a08e2/components/libraries/bsp/bsp.c:504: undefined reference to `app_button_init&amp;#39;
1&amp;gt; /usr/share/segger_embedded_studio_for_arm_5.68/gcc/arm-none-eabi/bin/ld: /home/dex/_ble_central_reference_nrfsdk/nRF5SDK160098a08e2/components/libraries/bsp/bsp.c:511: undefined reference to `app_button_enable&amp;#39;
Build failed&lt;/pre&gt;It keeps giving an error saying it can&amp;#39;t find app_button_enable. I am not quite sure what is wrong. This error is usually given at the linking stage of building.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU example add interrupt</title><link>https://devzone.nordicsemi.com/thread/344163?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 13:25:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb67719d-94c5-47bd-bac4-020f78d34e6c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jose,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to have a look and test the ble_app_hrs example. In that the button press is handled as an interrupt. When a button is pressed you will received a call back to&amp;nbsp;bsp_event_handler().&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want to use the bsp module, you can use the nrf_drv_gpiote module directly. Please have a look at the&amp;nbsp;\examples\peripheral\pin_change_int\ example.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>