<?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>update firmware via uart from android</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98416/update-firmware-via-uart-from-android</link><description>Hi all, 
 
 I use nRF52832 connect a android device with uart, and I want to update firmware via uart. 
 I can update my nrf device success on pc for test with the help of your colleagues and this link . 
 But I have no idea how to do this on android</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 23 Apr 2023 02:21:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98416/update-firmware-via-uart-from-android" /><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/421888?ContentTypeID=1</link><pubDate>Sun, 23 Apr 2023 02:21:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed59bc6a-bdac-4e03-804c-8c6db024ad68</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I can update successfully, I think the problem is due to my device and the connect way.&lt;/p&gt;
&lt;p&gt;thinks for your help&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/421530?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 13:57:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce06fa45-065e-4939-816c-cefc2badca8d</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;At first I use the j-flash to program it, and also I try to use&amp;nbsp; J-Link commander.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;loadbin init_packet.bin 0x9000&lt;/p&gt;
&lt;p&gt;&amp;nbsp;loadbin app_image.bin 0x10000&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/421515?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 13:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc11e22d-97c4-4941-be98-7a8d0ee84c81</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Lurn,&lt;/p&gt;
&lt;p&gt;The log indicates that the init command is invalid. How did you load the .bin to your DFU controller?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/421450?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 10:44:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f49d68e7-2a8c-498b-baac-441051183583</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I used &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader#h108sjziaxo3m81rkgr1has5r1d72qtu"&gt;the DFU master code from here&lt;/a&gt; to test the&amp;nbsp;process .&lt;/p&gt;
&lt;p&gt;I can transfer files but never succeed.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The process is as follows.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;1. I flash the DFU master application on the master board.&lt;/p&gt;
&lt;p&gt;2. make sure my target board in DFU mode.&lt;/p&gt;
&lt;p&gt;3. program the init.bin and app.bin to master board.&lt;/p&gt;
&lt;p&gt;4. connect master board and target board.&lt;/p&gt;
&lt;p&gt;5. run the DFU master.&lt;/p&gt;
&lt;p&gt;In source code the application_image_address = 0x30000;&lt;/p&gt;
&lt;p&gt;and I get error like this&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class="evolution-code-editor theme-clouds"&gt;
&lt;div class=" ace_editor ace-clouds"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_WRITE (data)
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x8
00&amp;gt; &amp;lt;warning&amp;gt; nrf_dfu_serial: DFU request completed with result: 0x8
00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_serial_uart: Allocated buffer 20000554
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_CRC_GET (data)
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Offset:0, CRC:0x00000000
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x1
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_serial: Sending Response: [0x3, 0x1]
00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_serial_uart: Allocated buffer 20000554
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_EXECUTE (data)
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Whole firmware image received. Postvalidating.
00&amp;gt; &amp;lt;error&amp;gt; app: Received a fault! id: 0x00004002, pc: 0x00000000, info: 0x200046F0&lt;/pre&gt;&lt;/div&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7506.0420_5F00_DFU_5F00_test_5F00_1448.log"&gt;devzone.nordicsemi.com/.../7506.0420_5F00_DFU_5F00_test_5F00_1448.log&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class="code-editor"&gt;
&lt;div class="evolution-code-editor theme-clouds"&gt;
&lt;div class=" ace_editor ace-clouds"&gt;
&lt;div class="ace_gutter"&gt;
&lt;div class="ace_layer ace_gutter-layer ace_folding-enabled"&gt;
&lt;div class="ace_gutter-cell "&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;In readme it shows the address.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1681975116717v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;so I change the&amp;nbsp;&lt;span&gt;application_image_address = 0x10000;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the error log is here&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;
00&amp;gt; &amp;lt;error&amp;gt; nrf_dfu_validation: Failed to decode init packet
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x5
00&amp;gt; &amp;lt;warning&amp;gt; nrf_dfu_serial: DFU request completed with result: 0x5
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_serial: Sending Response: [0x4, 0x5]
00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_serial_uart: Allocated buffer 20000554
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Handle NRF_DFU_OP_OBJECT_CREATE (data)
00&amp;gt; &amp;lt;error&amp;gt; nrf_dfu_req_handler: Cannot create data object without valid init command
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_req_handler: Request handling complete. Result: 0x8
00&amp;gt; &amp;lt;warning&amp;gt; nrf_dfu_serial: DFU request completed with result: 0x8
00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_serial: Sending Response: [0x1, 0x8]
00&amp;gt; &amp;lt;error&amp;gt; app: Received an error: 0x00000004!&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8176.0420_5F00_DFU_5F00_test_5F00_1456.log"&gt;devzone.nordicsemi.com/.../8176.0420_5F00_DFU_5F00_test_5F00_1456.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;can you tell me what is wrong?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419548?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 07:40:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:214a99d3-c885-4acf-859f-b72a94fd5de8</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for your help. I will try it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419540?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 07:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d31d086-d47b-4cca-9d77-0660f1fc1f50</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Lurn,&lt;/p&gt;
&lt;p&gt;You can&amp;nbsp;read the version number from the application, but not change it.&lt;/p&gt;
&lt;p&gt;The version number can be specified as an integer or a version string (converted to an integer). From nrfutil&amp;#39;s help menu:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  --application-version INTEGER   The application version.
  --application-version-string TEXT
                                  The application version string, e.g.
                                  &amp;quot;2.7.31&amp;quot;. Will be converted to an integer,
                                  e.g. 20731.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419532?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 07:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3984072-faed-41f2-835e-d352109b25e4</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I want to check and change the version number when updating the device, just a question about modifying it in the code.&lt;/p&gt;
&lt;p&gt;And the format of the version number can only be a number of type uint32_t, right?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419526?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 06:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89750cbb-0366-4855-bb9e-c75a615f2be9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Lurn,&lt;/p&gt;
&lt;p&gt;Can you please explain what you are trying to achieve? I.e. why and when it is you want to change the version number&amp;nbsp; from the application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419524?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 06:57:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc132da8-0837-4bd8-be8c-d3b963138b39</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/98416/update-firmware-via-uart-from-android/419523"]No, because the version number is specified by the signed init command[/quote][quote userid="4240" url="~/f/nordic-q-a/98416/update-firmware-via-uart-from-android/419523"]You can read the app version from the bootloader settings page @ 0x7F000 (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/structnrf__dfu__settings__t.html"&gt;nrf_dfu_settings_t&lt;/a&gt;&lt;span&gt;&amp;nbsp;)&lt;/span&gt;.&amp;nbsp;[/quote]
&lt;p&gt;So, I can get the app version use this code in bootloader, but can not modify it in code?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    nrf_dfu_settings_t my_dfu_settings;
    memcpy(&amp;amp;my_dfu_settings, (uint32_t *)BOOTLOADER_SETTINGS_ADDRESS, sizeof(nrf_dfu_settings_t));
    uint32_t my_app_version = my_dfu_settings.app_version;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419523?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 06:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6720b963-12a2-46bb-839c-0ba790c8c02a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Lurn,&lt;/p&gt;
[quote user="Lurn_Z"]About the version number, can I get/set it in my code instead of nrfutil?[/quote]
&lt;p&gt;No, because the version number is specified by the signed init command (see&amp;nbsp;&lt;a title="Init packet" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_dfu_validation.html?cp=9_1_3_5_1_1_0#lib_bootloader_dfu_init"&gt;Init packet&lt;/a&gt;).&lt;/p&gt;
[quote user="Lurn_Z"]I want to check application version when device is updated, how to do this in code?[/quote]
&lt;p&gt;You can read the app version from the bootloader settings page @ 0x7F000 (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/structnrf__dfu__settings__t.html"&gt;nrf_dfu_settings_t&lt;/a&gt;&lt;span&gt;&amp;nbsp;)&lt;/span&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419473?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2023 03:31:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9dba2fb-7ab5-48d9-a1f9-426b9c013516</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I want to check application version when device is updated, how to do this in code?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419380?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 10:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fc6f00a-5f5e-451c-929b-dc819eead93a</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/98416/update-firmware-via-uart-from-android/419377"]Thanks for confirming. The other common reason for the error is when the target device is not in DFU mode. Do you have a way to confirm&amp;nbsp;if the device is in DFU mode?&amp;nbsp;[/quote]
&lt;p&gt;Sorry for this question.&lt;/p&gt;
&lt;p&gt;When I program mbr and bootloader without application, it upgraded successfully, so maybe my cmd to enter DFU mode not worked, I will check it.&lt;/p&gt;
&lt;p&gt;About the version number, can I get/set it in my code instead of nrfutil?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419379?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 10:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b327deb5-0b50-4b6a-be37-ed1959e30f9f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Lurn,&lt;/p&gt;
[quote userid="123170" url="~/f/nordic-q-a/98416/update-firmware-via-uart-from-android/419378"]Windows, Linux or universal?[/quote]
&lt;p&gt;The script is common to all platforms. Installing it on a Linux system will make it compatible with that system.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419378?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 10:13:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:267160cf-9322-46a8-9d0d-22839b7f6339</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/98416/update-firmware-via-uart-from-android/419377"]Do you have a way to confirm&amp;nbsp;if the device is in DFU mode?&amp;nbsp;[/quote]
&lt;p&gt;I will only program the mbr and bootloader to make sure the device enter DFU mode.&lt;/p&gt;
&lt;p&gt;And&amp;nbsp;May I ask what platform this&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/tree/v6.0.0#running-and-installing-from-source"&gt;nrfutil source code&lt;/a&gt;&amp;nbsp;is based on?&lt;/p&gt;
&lt;p&gt;Windows, Linux or universal?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419377?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 10:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:312f5022-aa16-481f-8414-0875f5d334a1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Lurn,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for confirming. The other common reason for the error is when the target device is not in DFU mode. Do you have a way to confirm&amp;nbsp;if the device is in DFU mode?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for the version numbers, these are specified in the DFU package itself, see&amp;nbsp;&lt;a class="" title="Generating DFU packages" href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_pkg.html?cp=11_8_3"&gt;Generating DFU packages&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419374?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 09:59:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e3d849e-af69-482b-8bc4-476231d8fe9b</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Yes, I&amp;#39;m sure that /dev/ttyUSB0 is the correct port. Because when I connect the USB the list only have one port. and I can use it to send data over uart.&lt;/p&gt;
[quote userid="123170" url="~/f/nordic-q-a/98416/update-firmware-via-uart-from-android/419340"]&lt;p&gt;And how can I get/set the application version?&lt;/p&gt;
&lt;p&gt;Is &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/tree/v6.0.0#running-and-installing-from-source"&gt;this code&lt;/a&gt; based on windows or linux or universal?&lt;/p&gt;
&lt;p&gt;If I need the source on linux, which branch should I choose?&lt;/p&gt;[/quote]
&lt;p&gt;Also,&amp;nbsp;please help me with these problems.&lt;/p&gt;
&lt;p&gt;Best regads,&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419369?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 09:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61b4a3b4-d936-4057-8d4c-2ac36e4d0dfc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Lum,&lt;/p&gt;
&lt;p&gt;The error indicates that there is a communication issue between the board and your PC. Are you sure /dev/ttyUSB0 is the correct port for your serial bridge? If not, can you try to disconnect the USB to see if the port is still listed?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419340?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 03:25:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43cd70d1-affc-4ebc-b9f7-18cb510b52ef</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I used the nrfutil-linux on my linux PC, I got something wrong and the logs is here&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;./nrfutil-linux dfu serial -pkg dfu_image_rx.zip -p /dev/ttyUSB0 -fc 0 -b 115200 -t 5 -cd 0 -prn 0
  [------------------------------------]    0%
  2023-04-06 11:03:58,728 No trigger interface found for device with serial number: A50285BI, Product ID: 0x6001 and Vendor ID: 0x403


Traceback (most recent call last):
  File &amp;quot;nordicsemi/__main__.py&amp;quot;, line 1555, in &amp;lt;module&amp;gt;
  File &amp;quot;click/core.py&amp;quot;, line 1137, in __call__
  File &amp;quot;click/core.py&amp;quot;, line 1062, in main
  File &amp;quot;click/core.py&amp;quot;, line 1668, in invoke
  File &amp;quot;click/core.py&amp;quot;, line 1668, in invoke
  File &amp;quot;click/core.py&amp;quot;, line 1404, in invoke
  File &amp;quot;click/core.py&amp;quot;, line 763, in invoke
  File &amp;quot;nordicsemi/__main__.py&amp;quot;, line 1073, in serial
  File &amp;quot;nordicsemi/__main__.py&amp;quot;, line 988, in do_serial
  File &amp;quot;nordicsemi/dfu/dfu.py&amp;quot;, line 127, in dfu_send_images
  File &amp;quot;nordicsemi/dfu/dfu.py&amp;quot;, line 88, in _dfu_send_image
  File &amp;quot;nordicsemi/dfu/dfu_transport_serial.py&amp;quot;, line 214, in open
pc_ble_driver_py.exceptions.NordicSemiException: No ping response after opening COM port
[64515] Failed to execute script &amp;#39;__main__&amp;#39; due to unhandled exception!&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What is the problem with this error?&lt;/p&gt;
&lt;p&gt;And how can I get/set the application version?&lt;/p&gt;
&lt;p&gt;Is &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/tree/v6.0.0#running-and-installing-from-source"&gt;this code&lt;/a&gt; based on windows or linux or universal?&lt;/p&gt;
&lt;p&gt;If I need the source on linux, which branch should I choose?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419031?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 11:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:828f0cbb-b666-4c90-a54e-d89ae2505213</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Lurn,&lt;/p&gt;
&lt;p&gt;The pre-compiled executables are built to run on x86 on Linux. To get an executable compatible with Android and ARM(?) you&amp;nbsp;will have to try make an executable yourself. But I am not sure if this is something that is possible, unfortunately. The readme explains how the executables can be created for PC/mac here:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/tree/v6.0.0#running-and-installing-from-source"&gt;https://github.com/NordicSemiconductor/pc-nrfutil/tree/v6.0.0#running-and-installing-from-source&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/419004?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 09:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7003d952-b7ce-4347-bfe5-21c7ba700664</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;First of all thanks for your reply.&lt;/p&gt;
&lt;p&gt;I used this cmd in the link you told me, and it does reduce the waiting time.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrfutil dfu usb-serial -pkg pkg.zip -p COM10 -b 115200 -t 5 -cd 0 -prn 0.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The minimum timeout value I can set is 5,&amp;nbsp;Although it can&amp;#39;t be executed immediately but this time is perfectly acceptable for me.&lt;/p&gt;
&lt;p&gt;In this link:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/releases?page=1"&gt;pc-nrfutil releases&lt;/a&gt;. I found three files&amp;nbsp; nrfutil-linux/nrfutil-mac/nrfutil.exe,&amp;nbsp;I think these files&amp;nbsp;should be packaged executable files and it&amp;nbsp;can be run directly in a non-python environment.&lt;/p&gt;
&lt;p&gt;And I test the nrfutil.exe on my windows PC(delete the old nrfutil path), it can be run.&lt;/p&gt;
&lt;p&gt;So did you know how can I use the nrfutil-linux to update?&lt;/p&gt;
&lt;p&gt;if there is no other way, I have to try to implement my own DFU controller.&lt;/p&gt;
&lt;p&gt;By the way, Do you have any examples of implement the own DFU controller?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/418979?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 08:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eb57a6b-78b9-439c-a249-c772eab31416</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Lurn,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not sure if it is possible to run Python scripts on Android?&amp;nbsp;If it is, then you could try run the script directly as explained here:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/tree/v6.0.0#running-from-source"&gt;https://github.com/NordicSemiconductor/pc-nrfutil/tree/v6.0.0#running-from-source&lt;/a&gt;. Another alternative is to implement your own DFU controller following the protocol specification from the SDK documentation here:&amp;nbsp;&lt;a title="DFU protocol" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_dfu_transport.html?cp=9_1_3_5_2"&gt;DFU protocol&lt;/a&gt;&lt;/p&gt;
[quote user="Lurn_Z"]nrfutil dfu serial -pkg XXX.zip -p COM3 -fc 0 -b 115200[/quote]
&lt;p&gt;Maybe you are seeing the issue discussed here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/55803/nrfutil-takes-34-seconds-before-starting-dfu"&gt;nrfutil takes 34 seconds before starting dfu&lt;/a&gt;&amp;nbsp;&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: update firmware via uart from android</title><link>https://devzone.nordicsemi.com/thread/418941?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 07:06:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab3ed74a-80ea-4973-b4f1-57e8e1843f71</guid><dc:creator>Lurn_Z</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can I use the nrfutil-linux in this link&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/releases?page=1"&gt;nrfutil releases&lt;/a&gt;&amp;nbsp;on my andriod device.&lt;/p&gt;
&lt;p&gt;If I can use it how do i use it?&lt;/p&gt;
&lt;p&gt;And when I update on PC, use this cmd to update,&amp;nbsp;it will stay here for almost 30 seconds before upgrading.&amp;nbsp;Is this normal?&lt;/p&gt;
&lt;p&gt;nrfutil dfu serial -pkg XXX.zip -p COM3 -fc 0 -b 115200&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0_2500_.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Lurn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>