<?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>nRF53 firmware update flow</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95489/nrf53-firmware-update-flow</link><description>Hello ! 
 
 Looks like nRF53 firmware update is more complicate due dual core architecture. in SDK docs mentioned about different bootloaders and DFU tools. 
 Could you narrow minimal toolset what I can use for serial firmware update of both cores from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Jan 2023 11:04:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95489/nrf53-firmware-update-flow" /><item><title>RE: nRF53 firmware update flow</title><link>https://devzone.nordicsemi.com/thread/405442?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 11:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2654724-09b2-4c40-a726-979e4a5885f0</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hello Amanda !&lt;/p&gt;
&lt;p&gt;Thank you !&lt;/p&gt;
&lt;p&gt;I will continue discussion about bootloader configuration ( Direct recovery of both cores via serial port) in this thread :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95729/configure-bluetooth-peripheral-uart-application-bootloader-and-etc"&gt;devzone.nordicsemi.com/.../configure-bluetooth-peripheral-uart-application-bootloader-and-etc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 firmware update flow</title><link>https://devzone.nordicsemi.com/thread/404757?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 10:03:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e46b34c0-aed7-4256-bd30-45564ecce1d5</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi !&lt;/p&gt;
&lt;p&gt;Could you clarify update process a bit.&lt;/p&gt;
&lt;p&gt;- one instance of mcumgr is started and when it exit, both flash memories are updated.&lt;/p&gt;
&lt;p&gt;- MCUBoot write application core flash directly e.g no need any extra space reservation&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- MCUBoot load network core image and come configuration to shared SRAM directly&amp;nbsp; and after that reset/reboot network core and wait result of update and return it to mcumgr&lt;/p&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;p&gt;- MCUBoot&amp;nbsp; write network core update to application flash memory ( I need to reserve 256K block) and after that via shared SRAM just pass configuration and reboot network core and wait result of update.&lt;/p&gt;
&lt;p&gt;Looks like all of those details are not so clear in documentation and I have asked it here.&lt;/p&gt;
&lt;p&gt;Peripheral_uart sample is suggested for evaluate all of this workflow&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/bluetooth/peripheral_uart/README.html#mcuboot-with-serial-recovery-of-the-networking-core-image"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/bluetooth/peripheral_uart/README.html#mcuboot-with-serial-recovery-of-the-networking-core-image&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But I haven&amp;#39;t suceed yet with application extensions&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/bluetooth/peripheral_uart/README.html#activating-sample-extensions"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/bluetooth/peripheral_uart/README.html#activating-sample-extensions&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Is this right example what can be used for case when SerialRecovery is expected for both cores and when&lt;/p&gt;
&lt;p&gt;solution includes application and network cores. May be someother samole can be used where IPV6 network stack in used in application core ?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 firmware update flow</title><link>https://devzone.nordicsemi.com/thread/404642?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 17:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6e0f3d8-e953-4e90-bd54-16ba1fc4f4a3</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The shared SRAM in nRF53 is a&amp;nbsp;region of SRAM, accessible by both cores, is used for inter-core communication.&amp;nbsp;In the nRF5340 SoC, the application core cannot access the flash of the network core. However, firmware upgrades for the network core are stored in the application flash. This is because of the limited size of the network core flash. Hence, a mechanism for downloading firmware updates from the application to the network core flash is needed.&amp;nbsp;The PCD library provides functionality for both cores in this situation. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/libraries/dfu/pcd.html#subsys-pcd"&gt;Peripheral CPU DFU (PCD)&lt;/a&gt;&lt;/span&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When MCUboot receives a new network core application image, it writes the configuration for the network core bootloader to the shared SRAM. The configuration includes an update instruction and both the SHA and the data of the image.&amp;nbsp;The network core bootloader performs any pending network core firmware update.&amp;nbsp;It calls the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/libraries/dfu/pcd.html#subsys-pcd"&gt;&lt;span&gt;Peripheral CPU DFU (PCD)&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;library to inspect the SRAM region shared with the application core: If MCUboot has written an update instruction, the network core bootloader copies the specified data range to the application partition on the network core. Once the copy is done, the network core bootloader compares the SHA of the data in the application partition against the SHA specified in the shared SRAM. It then communicates the result of the comparison to MCUboot using the shared SRAM. See&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf5340/netboot/README.html"&gt;nRF5340: Network core bootloader&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 firmware update flow</title><link>https://devzone.nordicsemi.com/thread/404484?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 08:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a87aa2a7-2929-49c1-a456-305e74e448f0</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi Amanda !&lt;/p&gt;
&lt;p&gt;I have found this link as well :&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#mcuboot-s-serial-recovery-of-the-networking-core-image"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#mcuboot-s-serial-recovery-of-the-networking-core-image&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and get impression that it is possible to network core as well.&lt;/p&gt;
&lt;p&gt;In my case firmware sizes for application and network cores can be&amp;nbsp; huge and I doubt If 2 copies of each can reside in flash memory. I would like to use SerialRecovery way to flash both cores. If some obstacles will be detected - external qspi flash memory can be an option to extend storage capacity.&lt;/p&gt;
&lt;p&gt;Could you correct me if I wrong in my assumptions.&lt;/p&gt;
&lt;p&gt;1. I need MCUboot bootloader ( with SMP server ) for application core and b0n for newwork core. They can be flashed by nrfjprog (via SWD interface).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. mcumgr can flash via serial connection application core or network core or both by using&amp;nbsp;&lt;span&gt;dfu_application.zip&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. MCUboot locate network image to shared SRAM only ( App core SRAM 512K, max size of network core image is 256KB).&lt;/p&gt;
&lt;p&gt;Or what is shared SRAM in this context ?&lt;/p&gt;
&lt;p&gt;MCUBoot initiate reboot and b0n bootloader take image from SRAM and update network core flash memory.&lt;/p&gt;
&lt;p&gt;Normal application firmware should release network core from reset and wait ( how long ?) until b0n bootloader report that update of network core flash memory is completed ( or&amp;nbsp; timeout).&lt;/p&gt;
&lt;p&gt;Or MCUboot detect pending update for network core and wait end of it ?&lt;/p&gt;
&lt;p&gt;Or MCUboot provide ( via shared SRAM ) fragments of firmware for network core&amp;nbsp; and b0n bootloader update it ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 firmware update flow</title><link>https://devzone.nordicsemi.com/thread/404331?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 13:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53a4ad6d-42a7-43a6-b2b4-ebea3153da57</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Hiihtaja"]About MCU boot. Does it support only native UART connectivity ( with RTS &amp;amp; CTS signals ) or/and virtual Serial port over USB (usb_cdc_acm) as well ?[/quote]
&lt;p&gt;It supports both. See this&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/device-firmware-update-dfu-with-mcuboot-bootloader"&gt;Device Firmware Update (DFU) with MCUBoot bootloader&lt;/a&gt;&amp;nbsp;and my colleague&amp;#39;s examples:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_serial_recovery_uart"&gt;MCUBoot Serial Recovery over UART Sample&lt;br /&gt;&lt;/a&gt;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_serial_recovery_cdc_acm"&gt;MCUBoot Serial Recovery Sample over USB CDC&lt;/a&gt;&lt;/p&gt;
[quote user="Hiihtaja"]What is suggested way to switch nRF53 to update mode ? Should I have running application and via some command reboot to MCU boot ? Or should I reboot MCY by HW reset and set some GPIO to indicate to stay in Bootloader and wait update ?[/quote]
&lt;p&gt;It could enter&amp;nbsp;serial Recovery on Button or on Wait. See &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery#enter-serial-recovery-mode"&gt;Enter Serial Recovery Mode&lt;/a&gt;. Here is the&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_serial_recovery_cdc_acm_wait"&gt;MCUBoot Serial Recovery Sample over USB CDC with Wait For DFU&lt;/a&gt;&amp;nbsp;sample.&amp;nbsp;&lt;/p&gt;
[quote user="Hiihtaja"] how to update network core in similar way ?[/quote]
&lt;p&gt;See the &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340#simultaneous-update"&gt;Simultaneous update&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 firmware update flow</title><link>https://devzone.nordicsemi.com/thread/404225?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 07:05:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49f1ac23-ea88-4367-9589-7e33e291bae4</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi !&lt;/p&gt;
&lt;p&gt;Yes all questions about nRF5340. Due my previos experience with nRF52 I found that flashing of dongle is good example for comparison how easy it can be done.&lt;/p&gt;
&lt;p&gt;About MCU boot. Does it support only native UART connectivity ( with RTS &amp;amp; CTS signals ) or/and virtual Serial port over USB (usb_cdc_acm) as well ?&lt;/p&gt;
&lt;p&gt;What is suggested way to switch nRF53 to update mode ? Should I have running application and via some command reboot to MCU boot ? Or should I reboot MCY by HW reset and set some GPIO to indicate to stay in Bootloader and wait update ?&lt;/p&gt;
&lt;p&gt;I will flash by SWD 2 bootloaders ( for app and network cores) and after that should be able to update both images in any moment. But it is not so clear how to force MCU to reboot in update mode .&lt;/p&gt;
&lt;p&gt;For example here&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_serial_recovery_cdc_acm#serial-recovery"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_serial_recovery_cdc_acm#serial-recovery&lt;/a&gt;&amp;nbsp;is explained how to force MCU to update mode and update application core directly ( without any double copies of application) But how to update network core in similar way ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 firmware update flow</title><link>https://devzone.nordicsemi.com/thread/404146?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 14:44:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28e653b6-c049-4bb5-870e-12d79ff09456</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]Could you narrow minimal toolset what I can use for serial firmware update of both cores from one *.zip file ?[/quote]
&lt;p&gt;You could use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/device_mgmt/mcumgr.html"&gt;MCUmgr&lt;/a&gt;&amp;nbsp;to update with serial mcuboot and refer to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#id30"&gt;Simultaneous multi-image DFU&lt;/a&gt;&amp;nbsp;to&lt;span&gt;&amp;nbsp;enable the simultaneous update of multiple images in the MCUboot. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]What&amp;nbsp; bootloader can be used ( nonsecure) and support updates of both cores?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;MCUboot. See my colleague&amp;#39;s &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340"&gt;explanation&lt;/a&gt; and the example&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]What utility for firmware update available with source code can be used&amp;nbsp; and support both cores( I need to port it for RPi platform) ?[/quote]
&lt;p&gt;See&amp;nbsp;&lt;a href="https://github.com/apache/mynewt-mcumgr"&gt;https://github.com/apache/mynewt-mcumgr&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Please suggest minimal set for have solution what is close to nrf52 dongle like.[/quote]
&lt;p&gt;It&amp;#39;s nRF52840DK. May I know why you ask about nRF52 Dongle here? since the above questions are related to nRF53. Would you use nRF52840 or nRF5340?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>