<?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>OTA Update with nrf52840DK rev. 3.0.1 vs. rev. 2.0.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100976/ota-update-with-nrf52840dk-rev-3-0-1-vs-rev-2-0-1</link><description>Hello Forum, 
 I have one working nrf52840DK rev. 2.0.1 
 I can use it to OTA-flash a BM833 (MAC:E419E134561C) in the following way (in Ubuntu Linux command line) with the prepared app_dfu_package.zip: 
 nrfjprog --recover 
 /usr/local/bin/nrfutil dfu</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Jun 2023 13:12:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100976/ota-update-with-nrf52840dk-rev-3-0-1-vs-rev-2-0-1" /><item><title>RE: OTA Update with nrf52840DK rev. 3.0.1 vs. rev. 2.0.1</title><link>https://devzone.nordicsemi.com/thread/432334?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 13:12:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c57c99e1-0d73-4a48-b433-5239276eb542</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Hehe, yeah that was a bit far from my first suggestion when I initially looked through the case (just to clarify I misread &amp;quot;using DKs to update other devices&amp;quot; as &amp;quot;Update DKs&amp;quot;, which is why I touched upon the usb ports)&lt;/p&gt;
&lt;p&gt;Nonetheless, I&amp;#39;m glad to hear that you solved the issue, and we&amp;#39;re very thankful for you posting the solution in this thread!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As always, please feel free to create new tickets if new issues or questions comes up and we&amp;#39;ll assign them to an application engineer and answer them as soon as we can&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA Update with nrf52840DK rev. 3.0.1 vs. rev. 2.0.1</title><link>https://devzone.nordicsemi.com/thread/432318?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 12:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bab2f6f0-6a64-4ae8-9e96-6fcabf5e41d4</guid><dc:creator>RichardHdrd</dc:creator><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;following the given observations, the following workaround script is working for me:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#!/bin/bash

nrfjprog --recover
nrfjprog --family nRF52 --eraseall

cat &amp;lt;&amp;lt; EOF | JLinkExe 
BEGIN;

device NRF52
SelectInterface SWD 
speed 4000
Connect
loadfile /usr/local/lib/python3.8/dist-packages/pc_ble_driver_py/hex/sd_api_v5/connectivity_4.1.4_1m_with_s132_5.1.0.hex
exit

END;
EOF

/usr/bin/sudo /usr/local/bin/nrfutil dfu ble -f -ic NRF52 -pkg /tmp/app_dfu_package.zip -p /dev/ttyACM1 -a F584C02766DD&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This clears the DK, then uses JLinkExe to flash on the required hex image.&lt;/p&gt;
&lt;p&gt;And, as detected before, the nrfutil then detects:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;Board already flashed with connectivity firmware.&lt;/p&gt;
&lt;p&gt;And after that continues flashing the firmware via DFU.&lt;/p&gt;
&lt;p&gt;Thank you, Andreas, for trying to assist.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA Update with nrf52840DK rev. 3.0.1 vs. rev. 2.0.1</title><link>https://devzone.nordicsemi.com/thread/432284?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 11:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea6f903a-b85f-4775-a57d-c67fb174582d</guid><dc:creator>RichardHdrd</dc:creator><description>&lt;p&gt;Hello Andreas,&lt;/p&gt;
&lt;p&gt;I went further into investigation.&lt;/p&gt;
&lt;p&gt;The relevant failure was:&lt;br /&gt;RuntimeError: Command &amp;#39;nrfjprog --snr 1050239327 --program /usr/local/lib/python3.8/dist-packages/pc_ble_driver_py/hex/sd_api_v5/connectivity_4.1.4_1m_with_s132_5.1.0.hex --family NRF52&amp;#39; returned non-zero exit status 52.&lt;br /&gt;b&amp;#39;Parsing image file.\nERROR: The file specified is not a valid hex file, has data outside valid areas\nERROR: or does not have data in valid areas.\n&amp;#39;&lt;/p&gt;
&lt;p&gt;Now I tried the following:&lt;/p&gt;
&lt;p&gt;1) Execute the line manually:&lt;/p&gt;
&lt;p&gt;nrfjprog --recover&lt;/p&gt;
&lt;p&gt;nrfjprog --snr 1050239327 --program /usr/local/lib/python3.8/dist-packages/pc_ble_driver_py/hex/sd_api_v5/connectivity_4.1.4_1m_with_s132_5.1.0.hex --family NRF52&lt;/p&gt;
&lt;p&gt;This rendered the same error from command line.&lt;/p&gt;
&lt;p&gt;2) Perform the upload via nrfConnect (v. 4.1.1) --&amp;gt; Programmer (v. 3.0.8)&lt;/p&gt;
&lt;p&gt;-&amp;gt; Select file: /usr/local/lib/python3.8/dist-packages/pc_ble_driver_py/hex/sd_api_v5/connectivity_4.1.4_1m_with_s132_5.1.0.hex&lt;/p&gt;
&lt;p&gt;Erase&amp;amp;Write&lt;/p&gt;
&lt;p&gt;To my surprise, that upload to the new (3.0.1) nrf52840DK worked without complaints.&lt;/p&gt;
&lt;p&gt;When issuing the original command, the nrfutil reported back:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;Board already flashed with connectivity firmware.&lt;/p&gt;
&lt;p&gt;And the DFU proceeded with success.&lt;/p&gt;
&lt;p&gt;Now, I wouldn&amp;#39;t care to add an extra scripted step, but of course, I cannot use the GUI from nrfConnect (v. 4.1.1) --&amp;gt; Programmer (v. 3.0.8)&lt;/p&gt;
&lt;p&gt;So, the remaining question is: How can the upload-steps performed by nrfConnect (v. 4.1.1) --&amp;gt; Programmer (v. 3.0.8) be emulated in Ubuntu command line? Or how can nrfjprog be parametrised not-to-parse the image file?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Richard&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: OTA Update with nrf52840DK rev. 3.0.1 vs. rev. 2.0.1</title><link>https://devzone.nordicsemi.com/thread/432063?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 14:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48dd550a-6957-48b7-bfa4-996f76cc4ef9</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Noted&lt;/p&gt;
&lt;p&gt;I also see that I might have misunderstood your inquiry after rereading it. I will revisit the case in some more depth and come back with a reply as soon as possible. No later than the end of this working week&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA Update with nrf52840DK rev. 3.0.1 vs. rev. 2.0.1</title><link>https://devzone.nordicsemi.com/thread/431751?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 11:50:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:424b0e47-5be5-4317-bfd6-42c3da370052</guid><dc:creator>RichardHdrd</dc:creator><description>&lt;p&gt;Hello Andreas,&lt;/p&gt;
&lt;p&gt;Thank you for responding. The available ttys from DK are /dev/ttyACM1 and /dev/ttyACM2.&lt;/p&gt;
&lt;p&gt;I tried with /dev/ttyACM2, but the result remains the same.&lt;/p&gt;
&lt;p&gt;Also, I&amp;#39;m quite sure that I use the correct ttyACM1, because flashing the bootloader via nrfjprog and using /dev/ttyACM1 works.&lt;/p&gt;
&lt;p&gt;By the time, I also downloaded and installed the latest version of nrfutil and&amp;nbsp;&lt;span style="color:#474747;"&gt;&lt;code&gt;nrf5sdk-tools&lt;/code&gt;&lt;/span&gt; here:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://www.nordicsemi.com/Products/Development-tools/nrf-util"&gt;https://www.nordicsemi.com/Products/Development-tools/nrf-util&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But also this version renders the same problem (here the output with /dev/ttyACM2):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Flashing connectivity firmware...
Traceback (most recent call last):
  File &amp;quot;pc_ble_driver_py/ble_driver.py&amp;quot;, line 3207, in call_cmd
  File &amp;quot;subprocess.py&amp;quot;, line 420, in check_output
  File &amp;quot;subprocess.py&amp;quot;, line 524, in run
subprocess.CalledProcessError: Command &amp;#39;nrfjprog --snr 1050239327 --program /tmp/_MEIwNqyRX/pc_ble_driver_py/hex/sd_api_v5/connectivity_4.1.4_1m_with_s132_5.1.0.hex --family NRF52&amp;#39; returned non-zero exit status 52.

During handling of the above exception, another exception occurred:

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 1182, in ble
  File &amp;quot;pc_ble_driver_py/ble_driver.py&amp;quot;, line 3172, in fw_flash
  File &amp;quot;pc_ble_driver_py/ble_driver.py&amp;quot;, line 3200, in program
  File &amp;quot;wrapt/decorators.py&amp;quot;, line 470, in _synchronized
  File &amp;quot;pc_ble_driver_py/ble_driver.py&amp;quot;, line 3212, in call_cmd
RuntimeError: Command &amp;#39;nrfjprog --snr 1050239327 --program /tmp/_MEIwNqyRX/pc_ble_driver_py/hex/sd_api_v5/connectivity_4.1.4_1m_with_s132_5.1.0.hex --family NRF52&amp;#39; returned non-zero exit status 52.
b&amp;#39;Parsing image file.\nERROR: The file specified is not a valid hex file, has data outside valid areas\nERROR: or does not have data in valid areas.\n&amp;#39;
[35374] Failed to execute script &amp;#39;__main__&amp;#39; due to unhandled exception!&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA Update with nrf52840DK rev. 3.0.1 vs. rev. 2.0.1</title><link>https://devzone.nordicsemi.com/thread/431744?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 11:42:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2315273e-b155-4393-8267-ad9d24298e3c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Rev 3.0.x of the nRF52840DK has 2 comports, but only one of them is &amp;#39;available to the user&amp;#39;. Could you try to list the available ports with nrfjprog --com and try with the other one? It should be TTYACM0 or TTYACM2 instead of TTYACM1 which you&amp;#39;ve tried.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how it looks on windows: The one on top is a rev. 3.0.0 version of the nRF52840DK, the bottom one is in this case a rev 1.0.0, but it should showcase the same as a rev. 2.0.0&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0456.pastedimage1687174904032v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>