<?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>BLE Buttonless DFU App Crashes After Setting High on P0.27 and P1.07 – nRF52840 Custom Board (nRF5 SDK v16 &amp;amp; v17)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120427/ble-buttonless-dfu-app-crashes-after-setting-high-on-p0-27-and-p1-07-nrf52840-custom-board-nrf5-sdk-v16-v17</link><description>I&amp;#39;m currently working on a custom board based on the nRF52840 , using SoftDevice S140 v7.0.1 and nRF5 SDK v16.0.1 . I’ve integrated the BLE Buttonless DFU example ( examples/dfu/secure_bootloader/pca10056_ble ) with my custom application code. However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Apr 2025 13:39:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120427/ble-buttonless-dfu-app-crashes-after-setting-high-on-p0-27-and-p1-07-nrf52840-custom-board-nrf5-sdk-v16-v17" /><item><title>RE: BLE Buttonless DFU App Crashes After Setting High on P0.27 and P1.07 – nRF52840 Custom Board (nRF5 SDK v16 &amp; v17)</title><link>https://devzone.nordicsemi.com/thread/532385?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 13:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:095ba6e0-baa3-4d9c-b08b-a5ca9f0a2e27</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi karujoe1406,&lt;/p&gt;
[quote user="karujoe1406"]The application itself (without the DFU parts) runs well without issue and have been tested, the problem only comes after the inclusion of the DFU part and secure bootloader. However, if I use secure bootloader and then load the application without the DFU portion, it works well without the option to re-upload a new version of application.&amp;nbsp;[/quote]
&lt;p&gt;I think this is a great hint at where the problem is. What in details is the &amp;quot;DFU portion&amp;quot; that you are referring to here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Buttonless DFU App Crashes After Setting High on P0.27 and P1.07 – nRF52840 Custom Board (nRF5 SDK v16 &amp; v17)</title><link>https://devzone.nordicsemi.com/thread/532087?ContentTypeID=1</link><pubDate>Thu, 17 Apr 2025 02:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:615571b8-2d20-4e9d-9cbd-09a49e77b415</guid><dc:creator>karujoe1406</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thank you for your reply.&amp;nbsp;&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/120427/ble-buttonless-dfu-app-crashes-after-setting-high-on-p0-27-and-p1-07-nrf52840-custom-board-nrf5-sdk-v16-v17/530675"]Use debug version of the secure bootloader to enable more loggings[/quote]
&lt;p&gt;I have tried with the debug version of the secure bootloader however, the issue was that the debug session crashes right after the application firmware runs. Specifically right when the code executes the (P0.27, P1.07).&amp;nbsp;&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/120427/ble-buttonless-dfu-app-crashes-after-setting-high-on-p0-27-and-p1-07-nrf52840-custom-board-nrf5-sdk-v16-v17/530675"]Test that the application runs alone, without the bootloader[/quote]
&lt;p&gt;The application itself (without the DFU parts) runs well without issue and have been tested, the problem only comes after the inclusion of the DFU part and secure bootloader. However, if I use secure bootloader and then load the application without the DFU portion, it works well without the option to re-upload a new version of application.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/120427/ble-buttonless-dfu-app-crashes-after-setting-high-on-p0-27-and-p1-07-nrf52840-custom-board-nrf5-sdk-v16-v17/530675"]Test that the&amp;nbsp;application + bootloader setup runs on a reference hardware such as the nRF52840 DK[/quote]
&lt;p&gt;I have tested the application with an NRF52840 DK but the issue would be that the peripheral of the custom board would not be connected. But i will run this test again.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/120427/ble-buttonless-dfu-app-crashes-after-setting-high-on-p0-27-and-p1-07-nrf52840-custom-board-nrf5-sdk-v16-v17/530675"]Enable immediate log mode instead of deferred log mode.[/quote]
&lt;p&gt;This is currently enabled.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Buttonless DFU App Crashes After Setting High on P0.27 and P1.07 – nRF52840 Custom Board (nRF5 SDK v16 &amp; v17)</title><link>https://devzone.nordicsemi.com/thread/530675?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2025 19:55:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac112bc1-6c65-4f2a-8a26-ce1e96b88d73</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;karujoe1406,&lt;/p&gt;
[quote user=""]Are &lt;strong&gt;P0.27&lt;/strong&gt; or &lt;strong&gt;P1.07&lt;/strong&gt; used internally or reserved by the &lt;strong&gt;secure bootloader&lt;/strong&gt; or &lt;strong&gt;BLE Buttonless DFU app&lt;/strong&gt; in SDK v16.0.1?[/quote]
&lt;p&gt;No, they are not used or reserved by the secure bootloader or that app.&lt;/p&gt;
[quote user=""]Could setting these pins high during application startup affect SoftDevice operation or bootloader-to-app transition?[/quote]
&lt;p&gt;It is not possible to be sure without considering the circuit. What are they connected to on your board?&lt;/p&gt;
[quote user=""]Any suggestions for how to further debug the application, especially since I get no logs from it?[/quote]
&lt;p&gt;There are a few things you can try:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use debug version of the secure bootloader to enable more loggings&lt;/li&gt;
&lt;li&gt;Test that the application runs alone, without the bootloader&lt;/li&gt;
&lt;li&gt;Test that bootloader runs alone, without the application&lt;/li&gt;
&lt;li&gt;Test that the&amp;nbsp;application + bootloader setup runs on a reference hardware such as the nRF52840 DK&lt;/li&gt;
&lt;li&gt;Enable immediate log mode instead of deferred log mode. This makes loggings printed out as soon as possible, rather than only pushed periodically.&lt;br /&gt;There is a downside that it can significantly change timing of the firmware,&amp;nbsp;making the test application run significantly different from&amp;nbsp;how it normally does.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>