<?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>I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75909/i-want-to-insert-a-dfu-module-through-ble-in-my-old-ble-project-to-upgrade-my-nrf5340-image</link><description>i have look for many DFU examples in NCS1.5.0 , but samples are Abstract ，and can not to start . a ble test app in phone have a menu that can send file to nrf5340 through ble , when ble of nrf5340 receive this file ,file can as a new image.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Jun 2021 13:38:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75909/i-want-to-insert-a-dfu-module-through-ble-in-my-old-ble-project-to-upgrade-my-nrf5340-image" /><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/316094?ContentTypeID=1</link><pubDate>Fri, 18 Jun 2021 13:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cfa8568-8bb7-44a3-9ee4-5656bb5bdbe7</guid><dc:creator>Simon</dc:creator><description>[quote user="zhouhaifang"]send uart data to app .but when app&amp;nbsp; &amp;nbsp;send data to nrf5340 through ble ,nrf5340 reset.[/quote]
&lt;p&gt;I was not able to reproduce this. I did the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Apply &lt;a href="https://github.com/nrfconnect/sdk-nrf/compare/v1.5.1...simon-iversen:peripheral_uart_dfu"&gt;the patch&lt;/a&gt;&amp;nbsp;to NCS v1.5.1&lt;/li&gt;
&lt;li&gt;Build and flash the peripheral_uart project
&lt;ul&gt;
&lt;li&gt;west build -b nrf5340dk_nrf5340_cpuapp &amp;amp;&amp;amp; west flash&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Open a putty terminal window and reset the chip&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2475.pastedimage1624022629868v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Connect to it from the phone and open the RX Characteristic:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8507.pastedimage1624023448539v4.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4705.pastedimage1624023480420v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Then I can see the same message in the terminal, and the chip didn&amp;#39;t reset&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5466.pastedimage1624022865025v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/315721?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 22:56:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2694ab9b-276a-414d-8a10-f3c231b4d76d</guid><dc:creator>Simon</dc:creator><description>[quote user="zhouhaifang"]i place v1.5.1 directly in diak D ,all error like &amp;quot;can not find files&amp;quot;&amp;nbsp; disappear .&amp;nbsp;I have tested your project . i first load&amp;nbsp;D:\v1.5.1\nrf\samples\bluetooth\peripheral_uart\build\hci_rpmsg\zephyr\merged_CPUNET.hex in nrf5340 net core ,then load&amp;nbsp;merged.hex in &lt;span&gt;nrf5340&amp;nbsp;&lt;/span&gt;app core .run the program ,find that nrf5340 can use&amp;nbsp;&lt;span&gt;BLE&amp;nbsp;&lt;/span&gt;&amp;nbsp;send uart data to app .but when app&amp;nbsp; &amp;nbsp;send data to nrf5340 through ble ,nrf5340 reset.[/quote]
&lt;p&gt;I&amp;nbsp;read your reply earlier today, then I got back to this ticket now and answered it right away without reading the reply again (I forgot the question and assumed you still struggled with the DFU). Sorry about that. But it seems like you were asking about something else: nRF5340 Resets when the app sends data to it.&lt;/p&gt;
&lt;p&gt;I will look into this issue tomorrow&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/315720?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 22:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1233281-c85e-423d-98cd-c9cb36cd887f</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Here is the application in zipped format:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_uart_5F00_dfu.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_uart_5F00_dfu.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/315719?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 22:48:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:720596fc-7c76-4a36-9732-d83d61836720</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Apply the patch&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/compare/v1.5.1...simon-iversen:peripheral_uart_dfu.patch"&gt;https://github.com/nrfconnect/sdk-nrf/compare/v1.5.1...simon-iversen:peripheral_uart_dfu.patch&lt;/a&gt;&amp;nbsp;to NCS v1.5.1&lt;/li&gt;
&lt;li&gt;Open cmd or bash like explained in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0#h10skagp8wj210662x01aeknqi116jxom"&gt;https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0#h10skagp8wj210662x01aeknqi116jxom&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;cd into&amp;nbsp;&lt;em&gt;ncs/nrf/samples/bluetooth/peripheral_uart&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Run:&amp;nbsp;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;west build -b nrf5340dk_nrf5340_cpuapp -p&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Connect the nRF53 DK to the computer and open a serial terminal (e.g. Putty)
&lt;ul&gt;
&lt;li&gt;run &lt;code&gt;nrfjprog --com&lt;/code&gt; and open three terminals with these com ports, the log output will show up in one of them&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Run:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;west flash&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You should see the following log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.4.99-ncs2  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0*** Booting Zephyr OS build v2.4.99-ncs2  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
*** Booting Zephyr OS build v2.4.99-ncs2  ***
Application version 1.0.0
Starting Nordic UART service example&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Change &lt;a href="https://github.com/simon-iversen/sdk-nrf/blob/3572fc6ae9eab413f0b2067b8b8931ed446820a7/samples/bluetooth/peripheral_uart/src/main.c#L491"&gt;Application version 1.0.0&lt;/a&gt;&amp;nbsp;to &amp;quot;&lt;em&gt;Application version 2.0.0&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Run:&amp;nbsp;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;west build -b nrf5340dk_nrf5340_cpuapp -d build_2&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;Don&amp;#39;t&lt;/strong&gt;&lt;/span&gt; flash the content in build_2&lt;/li&gt;
&lt;li&gt;Transfer&amp;nbsp;nrf/samples/bluetooth/peripheral_uart/&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;build_2&lt;/strong&gt;&lt;/span&gt;/zephyr/app_update.bin to the phone&lt;/li&gt;
&lt;li&gt;Open the nRF Connect app on the mobile and connect to the &amp;quot;Nordic_UART_Service&amp;quot;&lt;/li&gt;
&lt;li&gt;Click on DFU in the top right corner:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/200x400/__key/communityserver-discussions-components-files/4/7711.smp_5F00_svr_5F00_uart.jpg" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Select the file app_update.bin and click on &amp;quot;Test and confirm&amp;quot;&lt;/li&gt;
&lt;li&gt;Then you should see the following log in the terminal (see that it was v1.0.0 first, then v2.0.0)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.4.99-ncs2  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
*** Booting Zephyr OS build v2.4.99-ncs2  ***
Application version 1.0.0
Starting Nordic UART service example
*** Booting Zephyr OS build v2.4.99-ncs2  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=good, swap_type=0x2, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: test
I: Bootloader chainload address offset: 0xc000
*** Booting Zephyr OS build v2.4.99-ncs2  ***
Application version 2.0.0
Starting Nordic UART service example&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You can try to reset it again, pressing the reset button and you should see &amp;quot;Application version 2.0.0&amp;quot; all the time&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I did all this and it worked perfectly for me.&lt;/p&gt;
&lt;p&gt;Best regads,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/315497?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 02:17:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a5155a-f5eb-43b8-ab61-a3373b7e1728</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;Simon thank you!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i place v1.5.1 directly in diak D ,all error like &amp;quot;can not find files&amp;quot;&amp;nbsp; disappear .&amp;nbsp;I have tested your project . i first load&amp;nbsp;D:\v1.5.1\nrf\samples\bluetooth\peripheral_uart\build\hci_rpmsg\zephyr\merged_CPUNET.hex in nrf5340 net core ,then load&amp;nbsp;merged.hex in &lt;span&gt;nrf5340&amp;nbsp;&lt;/span&gt;app core .run the program ,find that nrf5340 can use&amp;nbsp;&lt;span&gt;BLE&amp;nbsp;&lt;/span&gt;&amp;nbsp;send uart data to app .but when app&amp;nbsp; &amp;nbsp;send data to nrf5340 through ble ,nrf5340 reset.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_36_2900_.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_37_2900_.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7f77b23a7213977a2cb180ba2e9abbf.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/315331?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 09:21:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0fafca6-f38e-4a6d-a312-efc371ac8db9</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;If you are using Windows there are some problems regarding Windows maximum path length.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/known_issues.html#build-system"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/known_issues.html#build-system&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The workaround is to shorten the build folder name, e.g. from “build_nrf5340dk_nrf5340_cpuappns” to “build” or place ncs closer to c://. Use &amp;quot;&lt;em&gt;/&lt;/em&gt;&lt;span&gt;&lt;em&gt;d/v1.5.1/nrf&amp;quot;&lt;/em&gt; instead of &amp;quot;&lt;em&gt;/&lt;/em&gt;&lt;/span&gt;&lt;em&gt;d/work/ncs_v1.5.1/v1.5.1/nrf&amp;quot;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/315291?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 07:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ff9d1d2-67ea-448d-b99b-2c922ede2301</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;Simon thank you very much!!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am testing your suggestion .neither using&amp;nbsp;&amp;nbsp;git-bash.exe nor&amp;nbsp; using SEGGER Embeedded studio in v1.5.1 toolchain folder ,include a header file always is a tough thing to me. results of compile always are&amp;nbsp; like below shortcut:&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_32_2900_.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_33_2900_.png" /&gt;. every time when i encount this situation,i alway add a absolute path . in this&amp;nbsp;compounded&amp;nbsp; peripheral_&amp;nbsp;uart project ,i must add os_mgmt.c&amp;nbsp; smp_bt.c and img-mgmt.c in project ,later found there is&amp;nbsp;many other c files to support this project&amp;nbsp;using&amp;nbsp; this method .&amp;nbsp;is there a few techniques i do not know?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I change project prj.conf same to&amp;nbsp; prj.conf your modified,delete all sources file i added to the project in CMakeLists.txt .only a main.c in project . this main.c file i changed same as you told .i use git-bash.exe in v1.5.1 toolchain folder and west build -b nrf5340dk_nrf5340_cpuapp -d build_nrf5340dk_nrf5340_cpuapp -p ,below is the build result shortcut:&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_34_2900_.png" /&gt;,there is&amp;nbsp; &amp;nbsp;No such file or directory error&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/314948?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 14:32:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed9ba475-2c4b-4b3e-ae79-07c4d25e5876</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Can you test the following patch with NCS v1.5.1:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/compare/v1.5.1...simon-iversen:peripheral_uart_dfu"&gt;https://github.com/nrfconnect/sdk-nrf/compare/v1.5.1...simon-iversen:peripheral_uart_dfu&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/compare/v1.5.1...simon-iversen:peripheral_uart_dfu.patch"&gt;https://github.com/nrfconnect/sdk-nrf/compare/v1.5.1...simon-iversen:peripheral_uart_dfu.patch&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It will make it possible to perform BLE DFU with the peripheral_uart sample. At least it worked for me:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.4.99-ncs2  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
*** Booting Zephyr OS build v2.4.99-ncs2  ***
Application version 1.0.0
Starting Nordic UART service example
*** Booting Zephyr OS build v2.4.99-ncs2  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=good, swap_type=0x2, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: test
I: Bootloader chainload address offset: 0xc000
*** Booting Zephyr OS build v2.4.99-ncs2  ***
Application version 2.0.0
Starting Nordic UART service example&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/314804?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 01:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7f73210-db37-42b1-9b18-c387ff5defd1</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;Simon,thank you very much!&lt;/p&gt;
&lt;p&gt;1. I have tried to merge peripheral_uart example and smp_svr example in one project , a ble service would do some ordinary work ,the other ble service will do DFU work , but failed .&lt;/p&gt;
&lt;p&gt;2. I have saw&amp;nbsp;a DFU method of nrf52832 through ble . when nrf52832 receive a DFU command from a connected app in phone , nrf52832 first write 0x01 in flash (address is&amp;nbsp; 0 ), then reset . in the reset period ,app in phone send a DFU file , nrf52832 automatically DFU.&amp;nbsp;&amp;nbsp;program&amp;nbsp;&amp;nbsp;in nrf52832 have no code about DFU,&amp;nbsp; only only only write 0x01 in address 0 flash ,&amp;nbsp; then reset .i am confusing this for sereral days&amp;nbsp; , and&amp;nbsp;&amp;nbsp;just asked&amp;nbsp;former engineer ,he said a DFU code have loaded&amp;nbsp;in bootloader of nrf52832 . i do not know the process of this DFU and how to operate .DOES NCS1.5.0 have this method DFU nrf5340 like this?&lt;/p&gt;
&lt;p&gt;3.maybe can&amp;nbsp;use a ble device name to register&amp;nbsp;&amp;nbsp;two&amp;nbsp; ble services,&amp;nbsp; each service has it&amp;#39;s own service connect node&amp;nbsp;, it&amp;#39;s own receive event handler, it&amp;#39;s own send data function. but i am not skill to&amp;nbsp;do this . example smp-svr own a ble service ,and example peripheral_uart own a ble service, and merge two example into one project .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/314790?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 17:30:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dc9eb63-50e5-4f07-bcce-f33083c1b882</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;You should try to merge the peripheral_uart sample with the smp_svr sample,&amp;nbsp;and create a sample peripheral_uart_smp_svr. Then&amp;nbsp;you will be able to use both the UART service, as well as the SMP service:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/600x1200/__key/communityserver-discussions-components-files/4/5417.smp_5F00_svr_5F00_uart.jpg" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you can do the following to make sure it&amp;#39;s working&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add printk(&amp;quot;version 1&amp;quot;) in&amp;nbsp;&lt;span&gt;peripheral_uart_smp_svr--&amp;gt;main() and flash it to the device&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Check if you see &amp;quot;Version 1&amp;quot; in the terminal&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Change the above to&amp;nbsp;printk(&amp;quot;version 2&amp;quot;) and build the sample&amp;nbsp;peripheral_uart_smp_svr again, &lt;span style="text-decoration:underline;"&gt;without flashing&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Eventually you can transfer the app_update.bin from step 2 and make sure you see the log &amp;quot;version 2&amp;quot;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I tried to&amp;nbsp;do this (merge peripheral_uart with smp_svr), but I encountered some issues when transferring the file. However, I can set off some time&amp;nbsp;and get this to work,&amp;nbsp;if you want to?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/314313?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 01:53:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbc6323e-5d2b-41f6-aa8d-b155a1149fd4</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;div class="author"&gt;
&lt;div class="avatar"&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/zhouhaifang"&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="content full threaded-reply-content user-defined-markup"&gt;
&lt;div class="content"&gt;
&lt;p&gt;Simon thank for your anser&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; 1.&amp;nbsp; my project is derived from example peripheral_uart in NCS1.5.0&amp;nbsp; and final MCU used in&amp;nbsp; my project&amp;nbsp;will be&amp;nbsp; nrf5340, so I use nrf5340dk and example &lt;span&gt;peripheral_&lt;/span&gt;&lt;span&gt;uart to start my project .&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;2. a ble receive event and a ble send thread are used to communicate with andriod pad or phone in my project ,&amp;nbsp; ble is basic&amp;nbsp;and important function in my project .&amp;nbsp; i&amp;nbsp; nearly use&amp;nbsp;&amp;nbsp;example &lt;span&gt;peripheral_&lt;/span&gt;&lt;span&gt;uart&amp;nbsp;&amp;#39;s ble&lt;/span&gt;&amp;nbsp;function and only a little change.&lt;/p&gt;
&lt;p&gt;3.my project is&amp;nbsp;&lt;span&gt;Gradually improved ，and old image will be repalced by a new better image . so i want to use andriod pad or phone app&amp;nbsp; DFU old image in nrf5340&amp;nbsp; THROUGH BLE .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4.when insert DFU&amp;nbsp; function in my project ,,jlink also can be used to download and&amp;nbsp;debug.&amp;nbsp; that is to say:&amp;nbsp; two ways can update old image , first way is by JLINK ,the other way is by DFU with a app through BLE.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;5. using ble DFU method like smp_svr maybe can DFU a project have no function of ble , if a project like peripheral_uart have ble function , DFU ble and project ble will conflict. last time i have showed you that&amp;nbsp;&amp;nbsp;&lt;span&gt;smp_svr&amp;#39;s&amp;nbsp; net core image merged_CPUNET.hex is different&amp;nbsp; with peripheral_uart&amp;#39;s net core image&amp;nbsp;merged_CPUNET.hex. that is to say ,only one ble can work well. if you work periperal_uart &amp;#39;s ble , smp_svr&amp;#39;s ble can not work .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;6. how to use a old-fashion method to upgrade&amp;nbsp; old image rather than method of smp_svr&amp;nbsp; :&amp;nbsp; ble module&amp;nbsp;in peripheral_uart running in nrf5340&amp;nbsp; &amp;nbsp;receive a file (new image as a file ) from app&amp;nbsp;&amp;nbsp;, then nrf5340 write new image file in it&amp;#39;s own flash area , then nrf5340 reset and load new image in flash area .&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/314209?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 12:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dd3b602-520f-4f02-b57f-acd67e1d8754</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Question 1:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You need to confirm the image (hello world) in the primary slot to prevent it from rolling back. Use the approach described here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/68695/usb-dfu-with-nrf-connect-sdk/281680#281680"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/68695/usb-dfu-with-nrf-connect-sdk/281680#281680&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can also confirm it over SMP BLE. However, the hello world sample doesn&amp;#39;t support BLE, so you have to create the app_update.bin file from the smp_svr instead, then you can run the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#confirm-new-image"&gt;confirm image command&lt;/a&gt; ove BLE. Please tell me if you want me to explain this in more details.&lt;/p&gt;
[quote user="zhouhaifang"]&amp;nbsp;2. I&amp;nbsp;use SEGGER embedded studio build my peripheral_uart project . the first build image in&amp;nbsp; folder \build\hci_rpmsg\zephyr&amp;nbsp; is&amp;nbsp; merged_CPUNET.hex(this image must first load in CPUNET core first, only load a time ) ,second&amp;nbsp; build image in folder \build\zephyr is merged.hex.&amp;nbsp; when&amp;nbsp;Add&amp;nbsp;&lt;code&gt;CONFIG_BOOTLOADER_MCUBOOT= y&amp;nbsp;to&amp;nbsp;prj.conf of project peripheral_uart , build solution produces the third image&amp;nbsp;app_update.bin and&amp;nbsp;dfu_application.zip&amp;nbsp;  in folder&amp;nbsp;\build\zephyr,located same folder with second image .&amp;nbsp;&lt;/code&gt;[/quote]
&lt;p&gt;Your understanding is correct.&lt;/p&gt;
[quote user="zhouhaifang"]&lt;p&gt;&lt;span&gt;3.first step load code of example smp_svr&amp;nbsp; as you advised in nrf5340dk ,&amp;nbsp;second step&amp;nbsp;&amp;nbsp;using&amp;nbsp;nRF Connect Device Manager app,&amp;nbsp;commuicate with nrf5340dk through ble named Zephyr .&amp;nbsp; how can i deal with&amp;nbsp;merged_CPUNET.hex,,ble thread&amp;nbsp; in my project peripheral_uart&amp;nbsp; conflict with ble in&amp;nbsp;&amp;nbsp;smp_svr?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. i have download image of &amp;nbsp;smp_svr and upgrade nrf5340dk image with app_update.bin of hello_word .&amp;nbsp; when i use jlink debug peripheral_uart ,always reset&amp;nbsp;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;In order for the peripheral_uart example to work you need to program the&amp;nbsp;network core with merged.cpunet.hex (BLE Controller) and the application core with zephyr.hex(containing the BLE host + the peripheral uart application (if mcuboot is used, use merged.hex instead, which contains build/zephyr/zephyr.hex +&amp;nbsp;build/mcuboot/zephyr/zephyr.hex).&lt;/p&gt;
&lt;p&gt;If you perform dfu and&amp;nbsp;put the hello world app into the primary slot, the ble host and peripheral uart will no longer be present and you will not be able to debug it more.&lt;/p&gt;
&lt;p&gt;There will be no conflicts between&amp;nbsp;&lt;span&gt;merged.cpunet.hex in the net core and what&amp;#39;s in the app core (smp_svr or peripheral uart) since they are located on different cores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please tell me if I have misunderstood you. Maybe you can tell me about your final goal, then I will be able to help you in a more constructive manner.&lt;/span&gt;&lt;/p&gt;
[quote user="zhouhaifang"]4.below shotcut bmp is building&amp;nbsp; solutions&amp;nbsp; &amp;nbsp;example smp_svr and&amp;nbsp; my project peripheral_uart&amp;nbsp; , produced two cpunet core &amp;#39;s image&amp;nbsp; &amp;nbsp;, left is last part of&amp;nbsp;example smp_svr&amp;#39;s&amp;nbsp;&amp;nbsp;merged_CPUNET.hex ,right is last part of my project peripheral_uart&amp;#39;s&amp;nbsp;&amp;nbsp;merged_CPUNET.hex&amp;nbsp; .&amp;nbsp;there[/quote]
&lt;p&gt;I will look into this and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/314065?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 04:13:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e9e5ae6-69b9-4e38-acca-910498122d2e</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;&lt;span&gt;Simon ,thank you .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1.&amp;nbsp; I have followed your method step by step .and use&amp;nbsp;the nRF Connect Mobile app v4.24.2&amp;nbsp; DFU app_update.bin in&amp;nbsp;example&amp;nbsp; hello_world build folder.the debug information below :&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_28_2900_.png" /&gt;.&amp;nbsp;the string:&amp;quot;Hello World! nrf5340dk_nrf5340_cpuapp &amp;quot; is exact example code&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f4af.svg" title="100"&gt;&amp;#x1f4af;&lt;/span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_29_2900_.png" /&gt;.but you can see the top shotcut image .when nrf5340dk board reset ,the program seem not to run the image app_update.bin of hello_word.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;2. I&amp;nbsp;use SEGGER embedded studio build my peripheral_uart project . the first build image in&amp;nbsp; folder \build\hci_rpmsg\zephyr&amp;nbsp; is&amp;nbsp; merged_CPUNET.hex(this image must first load in CPUNET core first, only load a time ) ,second&amp;nbsp; build image in folder \build\zephyr is merged.hex.&amp;nbsp; when&amp;nbsp;Add&amp;nbsp;&lt;code&gt;CONFIG_BOOTLOADER_MCUBOOT= y&amp;nbsp;to&amp;nbsp;prj.conf of project peripheral_uart , build solution produces the third image&amp;nbsp;app_update.bin and&amp;nbsp;dfu_application.zip&amp;nbsp;  in folder&amp;nbsp;\build\zephyr,located same folder with second image .&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.first step load code of example smp_svr&amp;nbsp; as you advised in nrf5340dk ,&amp;nbsp;second step&amp;nbsp;&amp;nbsp;using&amp;nbsp;nRF Connect Device Manager app,&amp;nbsp;commuicate with nrf5340dk through ble named Zephyr .&amp;nbsp; how can i deal with&amp;nbsp;merged_CPUNET.hex,,ble thread&amp;nbsp; in my project peripheral_uart&amp;nbsp; conflict with ble in&amp;nbsp;&amp;nbsp;smp_svr?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. i have download image of &amp;nbsp;smp_svr and upgrade nrf5340dk image with app_update.bin of hello_word .&amp;nbsp; when i use jlink debug peripheral_uart ,always reset&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_30_2900_.png" /&gt;&amp;nbsp;the nrf5340dk cpu net core have load&amp;nbsp; merged_CPUNET.hex&amp;nbsp; &amp;nbsp;of&amp;nbsp;&amp;nbsp;peripheral_uart&amp;nbsp; a few days ago.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4.below shotcut bmp is building&amp;nbsp; solutions&amp;nbsp; &amp;nbsp;example smp_svr and&amp;nbsp; my project peripheral_uart&amp;nbsp; , produced two cpunet core &amp;#39;s image&amp;nbsp; &amp;nbsp;, left is last part of&amp;nbsp;example smp_svr&amp;#39;s&amp;nbsp;&amp;nbsp;merged_CPUNET.hex ,right is last part of my project peripheral_uart&amp;#39;s&amp;nbsp;&amp;nbsp;merged_CPUNET.hex&amp;nbsp; .&amp;nbsp;there are different !!! ,&amp;nbsp; in this situation , &lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_31_2900_.png" /&gt; if&amp;nbsp; using ble &amp;nbsp;to&amp;nbsp;DFU,&amp;nbsp; can not use&amp;nbsp;ble do other work.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313638?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 11:47:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d88455ca-7c3a-4a2a-a62a-413ad9bbdff6</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I looked into this and found out that the apk files of the nRF Connect For mobile app should be available here:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Connect/releases"&gt;https://github.com/NordicSemiconductor/Android-nRF-Connect/releases&lt;/a&gt;. Use this one:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Connect/releases/tag/v4.24.3"&gt;https://github.com/NordicSemiconductor/Android-nRF-Connect/releases/tag/v4.24.3&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Sorry for not providing you with this earlier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313606?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 10:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44bf219f-5314-4232-86c2-a63d0afcba20</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;Simon:&lt;/p&gt;
&lt;p&gt;thanks for your answer!!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; I can not download&amp;nbsp;nRF Connect Device Manager app from google (i am in china ), not to mention&amp;nbsp;nRF Connect Device Manager&amp;nbsp;v4.24.2 . i&amp;nbsp;have app nRF Coonect mobil and&amp;nbsp; nRF Toolbox , i have tried to use&amp;nbsp;these two app&amp;nbsp; &amp;nbsp;DFU with nrf5340dk&amp;nbsp;,but failed(these two app&amp;nbsp; all have DFU menu ) .&amp;nbsp; my mailbox is &lt;a href="mailto:zhf2004hustpost@163.com"&gt;zhf2004hustpost@163.com&lt;/a&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;can&amp;nbsp; you send &lt;span&gt;nRF Connect Device Managerv4.24.2&amp;nbsp; app&lt;/span&gt;&amp;nbsp;&amp;nbsp;to me using a&amp;nbsp;mail?&lt;/p&gt;
&lt;p&gt;&lt;!--StartFragment --&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313591?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 09:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:190def3e-631a-43d7-acd0-68659722c1fd</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Can you check what version of the nRF Connect Mobile app you have? Try updating to&amp;nbsp;&lt;span&gt;v4.24.2 and see if the DFU button shows up.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Check version&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/number1.jpg" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nmber2.jpg" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/number3.jpg" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/number4.jpg" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/number5.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;DFU button&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/number6.jpg" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/number7.jpg" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313520?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 01:28:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8547095-ffdf-4f4a-8f25-b990293f9ffb</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;I download a app nRF Toolbox , nRF Toolbox maybe only support nrf51 or old device ,not support nrf5340 , i change app_update.bin or app_update.ZIP , all are invalidate.&amp;nbsp;&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-Device-Manager"&gt;nRF Connect Device Manager app&lt;/a&gt;&amp;nbsp;must download from google ,i am in china ,download this app is difficulty.&amp;nbsp; my mailbox is zhf2004hustpost@163.com ,would you send this app to my mailbox?&amp;nbsp;below are nRF Toolbox shotcut images.&amp;nbsp;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4807.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8182.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3250.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313460?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 14:01:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:933affad-f06b-47e9-b959-9766365d22e7</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;i use a app that can send over app_update.bin as a file , but the program not run well .may app is not suitable?&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_26_2900_.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1222.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313434?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 13:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1409685d-6c27-4272-884f-59004b86f270</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;That is not the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-Device-Manager"&gt;nRF Connect Device Manager app&lt;/a&gt;, it is the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-for-mobile"&gt;nRF Connect Mobile app&lt;/a&gt;. Please download the nRF Connect Device Manager app.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;By the way, it should be possible to perform a dfu over the SMP service using the nRF Connect Mobile app as well. In my case (using v4.24.2, a dfu button shows up to the left of &amp;#39;DISCONNECT&amp;#39;). Maybe you need to update the app to a newer version. However, I would recommend you to use the nRF Conenct Device Manager app when performing a dfu over the mcumgr/smp protocol.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313416?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 12:39:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b5c6802-d3e0-4cc0-9990-b3e3c91ab904</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;Simon thank you&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have step by step follow you step .but when&amp;nbsp;&lt;span&gt;open the nRF Connect Device Manager app on the phone , there is no menu of upgrade&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3007.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8306.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3581.jpg" /&gt;is the app on phone error or andriod version not fitable?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313373?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 11:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3d4c7fd-bd8f-4515-a0f1-7726c4682df6</guid><dc:creator>Simon</dc:creator><description>[quote user="zhouhaifang"]&lt;div&gt;Simon ,thank you .&lt;/div&gt;
&lt;div&gt;&amp;nbsp; I&amp;nbsp;have already knew how to flash&amp;nbsp;nrf5340dk ,but how to DFU nrf5340dk is not know .i can not build&amp;nbsp; the example in v1.5.0\zephyr\samples\subsys\mgmt\mcumgr\smp_svr&amp;nbsp; using BLe to upgrade image must enable&amp;nbsp;CONFIG_MCUMGR_SMP_BT and include bluetooth.c in src folder ,but bulid&amp;nbsp; ,these are many errors.&lt;/div&gt;[/quote]
&lt;p&gt;You don&amp;#39;t need to include bluetooth.h or enable&amp;nbsp;&lt;span&gt;CONFIG_MCUMGR_SMP_BT explicitly. Just add the line &amp;#39;- -DOVERLAY_CONFIG=overlay-bt.conf&amp;#39; when building with west, which should include the file&amp;nbsp;overlay-bt.conf and set &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.4.99-ncs2/samples/subsys/mgmt/mcumgr/smp_svr/overlay-bt.conf#L7"&gt;CONFIG_MCUMGR_SMP_BT&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please follow these steps:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/69368/nrf5340-fota-system-reset-after-pairing/286031#286031"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/69368/nrf5340-fota-system-reset-after-pairing/286031#286031&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;cd into&amp;nbsp;&lt;em&gt;C:\Users\&amp;lt;user name&amp;gt;\ncs\v1.5.0\zephyr\samples\subsys\mgmt\mcumgr\smp_svr&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Connect the nRF5340 DK to the computer and turn it on&lt;/li&gt;
&lt;li&gt;Run&amp;nbsp;&lt;code&gt;west build -b nrf5340dk_nrf5340_cpuapp -p -- -DOVERLAY_CONFIG=overlay-bt.conf &amp;amp;&amp;amp; cd build &amp;amp;&amp;amp; west flash&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;&amp;lt;..&amp;gt;/zephyr/samples/hello_world/prj.conf&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;cd into&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;zephyr/samples/hello_world&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;west build -b nrf5340dk_nrf5340_cpuapp -p&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Transfer&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;em&gt;&amp;lt;..&amp;gt;/zephyr/samples/hello_world/build/zephyr/app_update.bin&lt;/em&gt;&amp;nbsp;to the phone&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Install and open the nRF Connect Device Manager app on the phone, then connect to the nRF5340 which should be advertising with the name &amp;quot;Zephyr&amp;quot;&lt;/li&gt;
&lt;li&gt;Perform a Firmware Upgrade using the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;app_update.bin&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313345?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 10:13:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03a76b8d-ef4d-4f35-9397-bde77047899b</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;div class="author"&gt;
&lt;div class="avatar"&gt;Simon ,thank you .&lt;/div&gt;
&lt;div class="avatar"&gt;&amp;nbsp; I&amp;nbsp;have already knew how to flash&amp;nbsp;nrf5340dk ,but how to DFU nrf5340dk is not know .i can not build&amp;nbsp; the example in v1.5.0\zephyr\samples\subsys\mgmt\mcumgr\smp_svr&amp;nbsp; using BLe to upgrade image must enable&amp;nbsp;CONFIG_MCUMGR_SMP_BT and include bluetooth.c in src folder ,but bulid&amp;nbsp; ,these are many errors.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_24_2900_.png" /&gt;.when i input these path with exact path as #include&amp;lt;D:\work\v1.5.0\zephyr\include\bluetooth/bluetooth.h&amp;gt; , the bluetooth.h&amp;nbsp;&amp;#39;s include header file cannot find&lt;/div&gt;
&lt;div class="avatar"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_25_2900_.png" /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313281?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 07:34:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebdf1da9-fccf-4673-ba77-91ad651967c0</guid><dc:creator>Simon</dc:creator><description>[quote user="zhouhaifang"]&amp;nbsp; &amp;nbsp;how&amp;nbsp; to creat a&amp;nbsp;project&amp;nbsp; that &amp;nbsp; not only can update image using a phone app through bluetooth as you have told , but also can update image through debug tools like PCA10095 ?[/quote]
&lt;p&gt;If you&amp;#39;re struggling with programming the chip, you may have to recover it first, check out&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/ug_nrf5340.html#readback-protection"&gt;Readback protection&lt;/a&gt;&amp;nbsp;for instructions how to do it.&lt;/p&gt;
&lt;p&gt;If you are programming a BLE application, you need to program the network core manually first, check out&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0#h8sk87lznq1wt6z0h1vvv324gs3on1"&gt;2.2 nRF5340 DK&lt;/a&gt;--&amp;gt;&lt;span&gt;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0#h67sk646yl2d1o7b0c616t5mlg1flcovq"&gt;2.2.1&amp;nbsp;Build a BLE example&lt;/a&gt;&amp;nbsp;for instructions how to do this&lt;/p&gt;
&lt;p&gt;You can flash the image using the debugger/programmer in many different ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="text-decoration:underline;"&gt;Segger Embedded Studio:&lt;/span&gt; Simply click &amp;#39;Build and run&amp;#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8625.pastedimage1597835179755v11.png" alt=" " /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="text-decoration:underline;"&gt;West&lt;/span&gt;:&amp;nbsp;
&lt;ul&gt;
&lt;li&gt;cd &amp;lt;name of build folder&amp;gt;&lt;/li&gt;
&lt;li&gt;west flash
&lt;ul&gt;
&lt;li&gt;If you&amp;#39;re programming a ble application, the network core will automatically get programmed with the appropriate firmware&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="text-decoration:underline;"&gt;nrfjprog:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;cd &amp;lt;name of build folder&amp;gt;/zephyr&lt;/li&gt;
&lt;li&gt;Single image build: nrfjprog --program zephyr.hex --sectorerase&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Multi image build:&amp;nbsp;nrfjprog --program merged.hex --sectorerase&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313258?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 06:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22a6fa9b-8e1b-4817-8f09-d1757c298c94</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;Simon ,thank you .&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;the way you have tested of DFU maybe only load the image of&amp;nbsp;&lt;em&gt;\ncs\v1.4.0\zephyr\samples\subsys\mgmt\mcumgr\smp_sv to the nrf5340dk board&amp;nbsp;. when you want&amp;nbsp;to run&amp;nbsp; your own project ,you must first download&amp;nbsp; the&amp;nbsp;&amp;nbsp;smp_sv&lt;span&gt;&amp;nbsp; image to nrf5340dk board&amp;nbsp; ,later&amp;nbsp;palce your own project image in a phone using this method to&amp;nbsp; loaddown to nrf5340dk board&amp;nbsp; .&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; but a project&amp;nbsp; &amp;nbsp;always&amp;nbsp;need to revise . improve ,debug , when debugging ,i should directly download&amp;nbsp;new&amp;nbsp;image to nrf5340dk using debug tool ,&amp;nbsp;rather than&amp;nbsp; place new image in a phone&amp;nbsp;.to use the method you have told to load in nrf5340dk board.&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;how&amp;nbsp; to creat a&amp;nbsp;project&amp;nbsp; that &amp;nbsp; not only can update image using a phone app through bluetooth as you have told , but also can update image through debug tools like PCA10095 ?&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340  image</title><link>https://devzone.nordicsemi.com/thread/313115?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 12:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c6cb1d1-adc5-4e41-a60c-cf7ccae1a0fd</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Follow the steps in this answer:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/69368/nrf5340-fota-system-reset-after-pairing/286031#286031"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/69368/nrf5340-fota-system-reset-after-pairing/286031#286031&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I assume you have the nRF5340 DK and not the nRF5340 PDK. In that case use&amp;nbsp;&lt;span&gt;nrf5340dk_nrf5340_cpuapp instead of&amp;nbsp;nrf5340pdk_nrf5340_cpuapp.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>