<?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>DFU Secure Bootloader and Custom Board application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62126/dfu-secure-bootloader-and-custom-board-application</link><description>Hi, 
 I&amp;#39;m working on the custom board using nrf52832 chip and have performed the secure bootloader using ble on the custom board. 
 I have made these changes so far on the secure bootloader example, 
 changed the NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jun 2020 15:48:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62126/dfu-secure-bootloader-and-custom-board-application" /><item><title>RE: DFU Secure Bootloader and Custom Board application</title><link>https://devzone.nordicsemi.com/thread/253361?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 15:48:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fae09b73-9374-4cdc-9de6-612567178817</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;The issue if I can think of is that UART has been initialized in the bootloader but not re-initialized properly in the application. Make sure the pins are not configured to something else in the bootloader. I assume you don&amp;#39;t enable UART logging in the bootloader ?&amp;nbsp;&lt;br /&gt;Please try testing with the stock bootloader and the stock ble_app_uart example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Secure Bootloader and Custom Board application</title><link>https://devzone.nordicsemi.com/thread/253355?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 15:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f243090-1795-49ed-904f-92c64d0c45f7</guid><dc:creator>Muhammad</dc:creator><description>&lt;div class="content full threaded-reply-content user-defined-markup"&gt;
&lt;div class="content"&gt;
&lt;p&gt;But why the UART works&amp;nbsp;fine when we burn only the application to the nrf?&lt;/p&gt;
&lt;p&gt;Also, I have debugged the application after adding bootloader, it seems that the UART does not respond when we push some data to it.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;it seems that the UART initializes but the responses I get are&amp;nbsp;&lt;/p&gt;
&lt;p&gt;00&amp;gt; app_uart_put Response: NRF_SUCCESS&lt;br /&gt;00&amp;gt; app_uart_put Error code : 0&lt;/p&gt;
&lt;p&gt;in the UART event handler, I get the event APP_UART_TX_EMPTY.&lt;/p&gt;
&lt;p&gt;But there is no error event in the event handler and nothing response from the UART.&lt;/p&gt;
&lt;div class="content full threaded-reply-content user-defined-markup"&gt;
&lt;div class="content"&gt;
&lt;p&gt;In the event handler, the event APP_UART_DATA is not happening, it seems UART is not responding&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;I have debugged the UART again using the Logic Analyser, it shows that when I try to push some data to UART it does not show on the logic analyzer and similar in case of receiving.&lt;/p&gt;
&lt;p&gt;But when I run the same application without bootloader it shows data communication through the logic analyzer.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a bit confused about tracking the main issue. My finding says maybe there is something on a bootloader that is affecting the UART in the new application, please guide me on this what could be the possible issue with the bootloader + application combined with the UART?&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Secure Bootloader and Custom Board application</title><link>https://devzone.nordicsemi.com/thread/253354?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 15:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25238cf2-6d39-46b8-9ec2-4ec51921ca67</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please try to debug the application, and see if there is any error. Make sure you have configured the UART pins and the peripheral properly.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Secure Bootloader and Custom Board application</title><link>https://devzone.nordicsemi.com/thread/253340?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 14:37:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e121821-c725-4aa6-9f72-2012aa9a728f</guid><dc:creator>Muhammad</dc:creator><description>&lt;p&gt;I&amp;#39;m using the following pins,&lt;/p&gt;
&lt;p&gt;#define UART_TX_PIN 9&lt;br /&gt;#define UART_RX_PIN 8&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the secure bootloader via BLE and&amp;nbsp;&lt;span&gt;talking about the NRF5 SDK bootloader.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have done some debugging using a logic analyzer on the&amp;nbsp;UART_TX_PIN&amp;nbsp;and&amp;nbsp;UART_RX_PIN and I found that there was no data coming or going through it. Also, the application works fine when I remove the bootloader and runs the only application. So, it seems that the bootloader is interrupting or changing the UART pins that I defined. I&amp;#39;m confused at this moment.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU Secure Bootloader and Custom Board application</title><link>https://devzone.nordicsemi.com/thread/253337?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 14:30:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56b4dec7-f35a-4c0a-950e-c8f4572e8611</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Muhammad,&amp;nbsp;&lt;br /&gt;Which pin did you use for UART ? Could be that it conflict with one of the LED pins used in the bootloader firmware ? How do you do DFU ? via UART or BLE ?&lt;/p&gt;
&lt;p&gt;Could you try to do DFU update our UART example just to see if it works ? It&amp;#39;s easier to debug a simple application using UART.&lt;/p&gt;
&lt;p&gt;I assume you are talking about the NRF5 SDK bootloader, not the mesh bootloader ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>