<?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>Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118657/automating-fota-flashing-for-20-boards-of-nrf52840-dk-using-ble</link><description>I am working on automating the FOTA flashing process for 50 PCA10056 (nRF52840 DK) boards using a Python script. The goal is to efficiently flash firmware onto multiple boards simultaneously while ensuring reliability. 
 I have already tried using nrfutil</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Mar 2025 15:23:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118657/automating-fota-flashing-for-20-boards-of-nrf52840-dk-using-ble" /><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/527008?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 15:23:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f719c4df-9389-40ac-bf07-232eac82b464</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. I am not sure what caues that. Generally, failures and disconnect can happen, but then you should be able to start again right after. If you want to know more aboute what is happening, it could be wrorth &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.4.2/page/zephyr/services/device_mgmt/mcumgr.html#general_options"&gt;enabling more logging in mcumgr &lt;/a&gt;and/or sniffing to see if there is an issue on air.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/527000?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 14:49:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9fa081c-a313-4a51-8f6c-e7bd421286cf</guid><dc:creator>PGenius</dc:creator><description>&lt;p&gt;Yes it works as expected now. another issue&amp;nbsp; I sometimes observe that mcumgr command image upload stops inbetween and uploading will be unsuccessful.&lt;span&gt;&amp;nbsp;192.43 KiB / 201.76 KiB [=============================&lt;/span&gt;&lt;span&gt;==&amp;gt;-] &amp;nbsp;95.38% 11.15 KiB/sError: ImageUpload unexpected error after 197051/206599 bytes&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/526204?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 14:29:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2df21223-cc03-4e24-8a10-3235b6e401d4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This looks good to me. Now the slot 0 is active and confirmed. Slot 1 does not have flags, and this is also expected as the flags in the trailer should be cleared when it was swapped out from slot 0 to slot 1. Does it not work as epxected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/526176?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 13:00:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b6d4daf-3055-45e5-a682-e4a7e01ee0d7</guid><dc:creator>PGenius</dc:creator><description>&lt;p&gt;Just to clarify if i need to confirm with hash from&amp;nbsp; image 0 slot 0&amp;nbsp; after reset? The flags changed from active to active confirmed for image 0 slot 0 . Anything to be done for image 0 slot 1 flags?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;user@raspberrypi:~ $ sudo mcumgr --conntype ble --connstring &amp;#39;peer_name=oldSW&amp;#39; reset&lt;/p&gt;
&lt;p&gt;Done&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;user@raspberrypi:~ $ sudo mcumgr --conntype ble --connstring &amp;#39;peer_name=newSW&amp;#39; image list&lt;/p&gt;
&lt;p&gt;Images:&lt;br /&gt; image=0 slot=0&lt;br /&gt; version: 2.6.0&lt;br /&gt; bootable: true&lt;br /&gt; flags: active&lt;br /&gt; hash: 45e6a61863cc78237c8467359fed716e611a346cede52c0df087ec67718472c7&lt;br /&gt; image=0 slot=1&lt;br /&gt; version: 2.6.0&lt;br /&gt; bootable: true&lt;br /&gt; flags: confirmed&lt;br /&gt; hash: 8e30aa3cffb62bcf8a05cfb199505bb97843ccab8a5bc99abd97f0c132d2a052&lt;br /&gt;Split status: N/A (0)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;user@raspberrypi:~ $ sudo mcumgr --conntype ble --connstring &amp;#39;peer_name=newSW&amp;#39; image confirm 45e6a61863cc78237c8467359fed716e611a346cede52c0df087ec67718472c7&lt;br /&gt;Images:&lt;br /&gt; image=0 slot=0&lt;br /&gt; version: 2.6.0&lt;br /&gt; bootable: true&lt;br /&gt; flags: active confirmed&lt;br /&gt; hash: 45e6a61863cc78237c8467359fed716e611a346cede52c0df087ec67718472c7&lt;br /&gt; image=0 slot=1&lt;br /&gt; version: 2.6.0&lt;br /&gt; bootable: true&lt;br /&gt; flags: &lt;br /&gt; hash: 8e30aa3cffb62bcf8a05cfb199505bb97843ccab8a5bc99abd97f0c132d2a052&lt;br /&gt;Split status: N/A (0)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/526097?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 07:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63f15c6f-3393-45db-9f75-f759b31a601d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am glad to see most things are wokring. Regardign confirming the image, you need to provide the hash at the enf of you rcommand (so &lt;code&gt;...image confirm &amp;lt;HASH&amp;gt;&lt;/code&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/526051?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 17:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd83da4d-f9d6-40bd-b7c5-fc7a0d6ed4e3</guid><dc:creator>PGenius</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I have installed Linux on my raspberry pi and also mcumgr command installation successfully . I see that all the steps works fine until I confirm the image . I get error 3 for &amp;quot;image confirm&amp;quot; cmd. Due to this my flashed SW is not permanent. I have changed the device name as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I use&amp;nbsp;&lt;span&gt;nRF Connect SDK Toolchain v2.7.0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;1) I have added these below changes in proj_conf;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;2)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;new image is now swapped from slot 1 to slot 0, user@raspberrypi:~ $ sudo mcumgr --conntype ble --connstring &amp;#39;peer_name=Zephyrtest&amp;#39; image list&lt;/p&gt;
&lt;p&gt;Images:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;image=0 slot=0&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; version: 2.6.0&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; bootable: true&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; flags: active&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; hash: 45e6a61863cc78237c8467359fed716e611a346cede52c0df087ec67718472c7&lt;/p&gt;
&lt;p&gt;&amp;nbsp;image=0 slot=1&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; version: 2.6.0&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; bootable: true&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; flags: confirmed&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; hash: 8e30aa3cffb62bcf8a05cfb199505bb97843ccab8a5bc99abd97f0c132d2a052&lt;/p&gt;
&lt;p&gt;Split status: N/A (0)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;user@raspberrypi:~ $&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sudo mcumgr --conntype ble --connstring &amp;#39;peer_name=hoetest&amp;#39; image confirm&lt;/p&gt;
&lt;p&gt;Error: 3&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;sudo mcumgr --conntype ble --connstring &amp;#39;peer_name=hoetest&amp;#39; image confirm&lt;br /&gt;Error: 3&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/522368?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 08:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0f70082-6b93-4907-996c-bb548ad8fdaf</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Priyanka Govardhan"]To be precise, I am using windows platform, NCS&amp;nbsp; and want to perform FOTA with BLE, Is MCUmgr only the possibility?&amp;nbsp;[/quote]
&lt;p&gt;For PC side, mcumgr is the only possibility (in the sense that we are not developing an alternative, but it is possible to develop this yourself if needed). mcumgr does not work with Bluetooth on Windows, so we do not currently provide any solution for that from the command line.&lt;/p&gt;
[quote user="Priyanka Govardhan"]I am right now blocked if i am on a right track or should I use MCUmgr library or does Nordic support any other libraries ? I am still unclear with&amp;nbsp; this SMP sample&amp;nbsp;[/quote]
&lt;p&gt;You are not on the right track, as you cannot perform DFU for nRF Connect (MCUboot) via nrfutil.&lt;/p&gt;
&lt;p&gt;One suggestion is to use a Linux computer for your automated testing, and use mcumgr via the command lien there. Another is to do manual testinf of DFU. The third is to develop your own solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/522282?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 16:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d6e79e8-96b9-4b13-80b0-5b6b30604e2e</guid><dc:creator>PGenius</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;This is my understanding.&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Non-Zephyr Project (nrf5 SDK maintenance mode )&lt;/strong&gt;: Uses Nordic Secure Bootloader and works with &lt;code&gt;nrfUtil&lt;/code&gt; for firmware updates.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Zephyr Project (nrf Connect SDK - NCS)&lt;/strong&gt;: Uses MCUBoot (if configured) and works with &lt;code&gt;MCUmgr&lt;/code&gt; for firmware updates&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To be precise, I am using windows platform, NCS&amp;nbsp; and want to perform FOTA with BLE, Is MCUmgr only the possibility?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I was unsuccessful with FOTA Flashing&amp;nbsp; with configuration in NCS,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_BT_PERIPHERAL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;when i tested with&amp;nbsp;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;cmd = f&amp;quot;nrfutil dfu ble --conn-ic NRF52 -pkg {firmware_file} --timeout 3000&amp;quot;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I am right now blocked if i am on a right track or should I use MCUmgr library or does Nordic support any other libraries ? I am still unclear with&amp;nbsp; this SMP sample&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/521866?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 08:33:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d5274b3-4618-4117-8104-8703e60fe225</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Priyanka Govardhan"]Can you please help me to flash with nrfutil?[/quote]
&lt;p&gt;You can use nrfutil to flash via a debugger (the DK has an onboard debugger so if it is connected to the computer that will work out of the box with &amp;quot;nrfutil device&amp;quot;, see &amp;quot;nrfutil device --help&amp;quot;), but as it seems you are using nRF Connect SDK (please confirm), that cannot be used to perform DFU over Bluetooth.&lt;/p&gt;
[quote user="Priyanka Govardhan"]Is there any prerequisite like going into DFU mode with button press? [/quote]
&lt;p&gt;Normally not. Assuming you are using the nRF Connect SDK and do DFU over BLE, the transport happens in the application, and if you use for instance the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#smp-svr"&gt;SMP server sample,&lt;/a&gt; this should work out of the box (but not with nrfutil).&lt;/p&gt;
&lt;p&gt;I am a bit confused about this thread, so if you can back-track a bit and describe in more detail both which SDK you are using, and other details about your firmware that would help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/521786?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 16:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f353c537-abff-461c-90a8-6dbd14356752</guid><dc:creator>PGenius</dc:creator><description>&lt;p&gt;I need a command line solution for my python scripts as I work with many nodes. nRF Connect SDK is a GUI/App. which doesn&amp;#39;t match my requirement.&amp;nbsp;&lt;span&gt;Can you please help me to flash with nrfutil? I am using the evaluation kit&amp;nbsp; nRF52840 DK. Is there any prerequisite like going into DFU mode with button press? I&amp;nbsp; understood that command &amp;quot; nrfutil dfu ble...&amp;quot; is a SW way to put into the DFU mode. Manual&amp;nbsp; button press didn&amp;#39;t work.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/521781?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 15:35:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a02c7519-c276-425a-900f-6f6f6b4cc1b6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. But if you are using the nRF Connect SDK (as it seems), nrfutil is the only solution I am aware of, and that only works with Bluetooth on Linux.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/521779?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 15:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d7959de-14f1-4bd8-9828-280003ac4a99</guid><dc:creator>PGenius</dc:creator><description>&lt;p&gt;Actually I need to work on windows computer and found that nrfutil was the alternative way to use . Yes its a v2.7.0&amp;nbsp; nRF5 SDK. Is there a trusted library for mcumgr for windows something&amp;nbsp; like this page&amp;nbsp;www.nordicsemi.com/.../&amp;#160;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/521775?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 15:26:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d114f95-3acd-4ae7-b3bb-e009e59b74e2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am a bit confused here. Y ou write nRF52 SDK, which I would assume point to the nRF5 SDK. But you write&amp;nbsp;src\build\zephyr. If that is the case, you can use &lt;a href="https://docs.zephyrproject.org/latest/services/device_mgmt/mcumgr.html"&gt;mcumgr&lt;/a&gt; on a Linux computer do perform DFU over the air. (The nrfutil dfu command is only relevant for the old nRF5 SDK bootloaer)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/521740?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 13:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eb0b503-9f04-4cf8-9880-6c9fea38741a</guid><dc:creator>PGenius</dc:creator><description>&lt;p&gt;ok I installed nrfutil.&amp;nbsp; My code snip,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;cmd = f&amp;quot;nrfutil dfu ble -ic NRF52 -f {firmware_file} -a {mac_address} --timeout 600&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;result&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;subprocess&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;run&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;cmd&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;shell&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;capture_output&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;text&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;True&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;result&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;returncode&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;&amp;quot;[SUCCESS] FOTA update sent to &lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;mac_address&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;output prints as SUCCESS but the device is not actually flashed.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;since I am using the nrf52 SDK , I zipped all the bin and hex files from path&amp;nbsp; src\build\zephyr&amp;nbsp; and used a firmware_file here.&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;Please let me know why the flashing didnt take place.&amp;nbsp;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automating FOTA Flashing for 20 boards of nRF52840 DK using BLE</title><link>https://devzone.nordicsemi.com/thread/521588?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 14:53:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0263c605-d18c-47fb-8b31-bd961a5fa0da</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I assume you are using the nRF5 SDK as you are using nrfutil for this?&lt;/p&gt;
&lt;p&gt;Are you using nrfutil from here? That is the only currently supported version. And to update it you use &amp;quot;nrfutil self-upgrade&amp;quot; and subsequently &amp;quot;nrfutil pgrade&amp;quot; to install various commands. Note that you must install&amp;nbsp;nrf5sdk-tools in order to perform nRF5 SDK DFU. If this still fails, can you show the the command you use and the log with the error?&lt;/p&gt;
&lt;p&gt;Regarding the specific questions, we do not have any guidance on automated FOTA testing. nrfutil is the only command line tool we provide for nRF5 SDK secure DFU, so it makes sense to call that from your python test scripts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>