<?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>buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72849/buttenlesss-dfu-interactive-command-and-secure-dfu-uart</link><description>after accomplish merging buttonless dfu and interactive command --&amp;gt;the application 
 https://devzone.nordicsemi.com/f/nordic-q-a/72701/merging-interactive-command-and-buttonless-dfu-base-on-sdk-_17-0-2 
 doing lots of testing on my application show the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Mar 2021 11:16:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72849/buttenlesss-dfu-interactive-command-and-secure-dfu-uart" /><item><title>RE: buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/thread/300893?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 11:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fc28856-22c7-4a1a-bfec-ffffeeb985ce</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So no BLE in the bootloader at all, then?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In that case, you need to remove the&amp;nbsp;ret_val = nrf_dfu_set_adv_name_init(); in&amp;nbsp;ble_dfu_buttonless_async_svci_init() in ble_dfu_unbonded.c.&lt;/p&gt;
&lt;p&gt;But really, it doesn&amp;#39;t make much sense to use a buttonless dfu service if you are only using a bootloader that only supports UART. If you intend to have a bootloader that supports &lt;strong&gt;both&amp;nbsp;&lt;/strong&gt;uart and BLE, then you can put the nrf_dfu_set_adv_name_init() when you have included the BLE transport in the bootloader.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/thread/300799?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 01:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9ba23b2-125f-4f05-8ec0-54eb64b25149</guid><dc:creator>yu1998</dc:creator><description>&lt;p&gt;&lt;span&gt;i use the sdk 17.0.2 dfu_uart_bootloader&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/thread/300632?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 10:27:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8703df0-8b1a-4310-9e85-f9601c5ef362</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, I think the CLI is interacting with the RTT log in some way. I am not sure why I can&amp;#39;t see any log on the RTT, but the error log appears on the CLI window.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Either way.&lt;/p&gt;
&lt;p&gt;Your application requires a bootloader, so I flashed a bootloader and some bootloader settings.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But if I understand you correctly, the issues appear when you try to&amp;nbsp;add UART to the bootloader? If so, I think I would need your bootloader as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is your application main reached at all? Please note that to debug while a bootloader is present, you need to &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html"&gt;generate &lt;/a&gt;and program bootloader settings, and in SES, you need to program the application using nrfjprog, and then in segger embedded studio, use the Target -&amp;gt; Attach debugger:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616063142835v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Additionally, your application&amp;#39;s main.c file has:&lt;/p&gt;
&lt;p&gt;ret_code_t err_code;&lt;/p&gt;
&lt;p&gt;APP_ERROR_CHECK(err_code) // two times, actually.&lt;/p&gt;
&lt;p&gt;So you check the err_code that is not set to a value. Ideally, it will be 0 by default, but if the RAM has been used for something else, then it may contain some random value. Either remove the APP_ERROR_CHECK() or set the err_code = NRF_SUCCESS in main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/thread/300548?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 01:19:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16735fcf-5c65-41ef-9cb8-17b8b20bddd9</guid><dc:creator>yu1998</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;s140_nrf52_7.2.0_softdevice&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sdk 17.0.2&lt;/p&gt;
&lt;p&gt;nrf52840&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;using segger embedded studio&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/thread/300371?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 11:49:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4ed65e1-1c1b-45a9-a580-d7028a8103db</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can I replicate this on a DK? If so, can you upload the project that I need to do so?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/thread/300307?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 08:26:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ffdecbb-834f-481b-b6e3-9dbf5d078b59</guid><dc:creator>yu1998</dc:creator><description>&lt;p&gt;the entire application stops and also&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1615971266082v1.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nothing shows&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/thread/300299?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 08:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb83e911-3c96-4ab8-af1f-30710bad110f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Try setting&amp;nbsp;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED to 0 in your sdk_config.h if you want to see the log output in the debug session in Segger Embedded Studio.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="yu1998"]i found out the code stuck in&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;By stuck, do you mean that one of the function calls doesn&amp;#39;t return, or is it one of the function calls that returns something other than 0 (NRF_SUCCESS)? which then is picked up by the VERIFY_SUCCESS and passed onto an APP_ERROR_CHECK()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/thread/300267?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 02:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34d0ce37-b0dd-43f5-808b-af886361df1a</guid><dc:creator>yu1998</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6445.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../6445.sdk_5F00_config.h&lt;/a&gt;sdk_config&lt;/p&gt;
&lt;p&gt;i found out the code stuck in&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;uint32_t ble_dfu_buttonless_async_svci_init(void)
{
    uint32_t ret_val;

    ret_val = nrf_dfu_svci_vector_table_set();
    VERIFY_SUCCESS(ret_val);

    ret_val = nrf_dfu_set_adv_name_init();
    VERIFY_SUCCESS(ret_val);

    ret_val = nrf_dfu_svci_vector_table_unset();

    return ret_val;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;which is in ble_dfu_unbonded.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/thread/300266?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 02:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92a669f2-c86b-4d4d-a194-b7e665375934</guid><dc:creator>yu1998</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;&amp;nbsp;I use rtt client to see if there is any error but it did not show anything&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;main.c :&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/050217.main.c"&gt;devzone.nordicsemi.com/.../050217.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/thread/300263?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 01:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26460aaf-8972-4e9d-a99e-c5c216ab27c0</guid><dc:creator>yu1998</dc:creator><description>&lt;p&gt;im using segger embedded studio&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: buttenlesss dfu interactive command and secure dfu uart</title><link>https://devzone.nordicsemi.com/thread/300151?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 13:27:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cf9492a-5982-4a08-94ac-e227cb8c4300</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;now im trying dfu uart upload but strange thing happened using same application to upload with dfu_uart&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but the application caanot work does anyone know why(no error showing)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;knowing error because the interactive command does not wort&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;Have you tried debugging? It is not clear to me whether your application is starting or not. Try logging something in the start of your application and see if it shows. Try using another log backend than the uart, if your application is using UART for CLI or something. Use the RTT log backend, and disable deferred logging (set it to 0 in sdk_config.h).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that if you have programmed a bootloader, you can&amp;#39;t program the application directly with a programmer without also programming the bootloader settings. And if you want to run a debug session, make sure that the IDE is not programming the application, as this will probably not match the bootloader settings. Test this with an application that you know is working before you try it on the application you are not sure of. If you are not sure how to do this, please let me know what IDE you are using.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>