<?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>Re-flash Interface ICU Code on nRF52840 DevKit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88208/re-flash-interface-icu-code-on-nrf52840-devkit</link><description>I have been developing for several years with the nRF52832 and 52840 devkits. I have several of each available. One specific 52840 dk seems to have crashed code in the interface MCU. I found a thread several years old discussing how to re-flash the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 May 2022 12:18:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88208/re-flash-interface-icu-code-on-nrf52840-devkit" /><item><title>RE: Re-flash Interface ICU Code on nRF52840 DevKit</title><link>https://devzone.nordicsemi.com/thread/369977?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 12:18:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d02ba6ea-b184-413f-ae99-06d26a4e37c8</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;It looks like that did the trick (new version of nrfjprog), so we can close this thread now. Thank you for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-flash Interface ICU Code on nRF52840 DevKit</title><link>https://devzone.nordicsemi.com/thread/369945?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 10:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf4828ea-7408-43f3-9565-4be74db93e0d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I was out of office last week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What version of nrfjprog do you have? Can you please try to update to the latest version? (I see that you have a DK with the new serial numbers (starting with 10...). Perhaps nrfjprog doesn&amp;#39;t recognize that serial number.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using nRF Command Line Tools version 10.15.4, so try using that (I believe this is currently the latest version).&lt;/p&gt;
&lt;p&gt;Can you please show me how you created the project that you are trying to flash? Either the initial build command or the project setup in VS Code.&amp;nbsp; And are you trying to flash this using the nRF Connect for VS Code, or through the command line?&lt;/p&gt;
&lt;p&gt;Also, is it possible to upload the .hex file that you are trying to flash here, so that I can have a look at what it is trying to flash. What area that it claims is outside the flash? It may be a bug where it doesn&amp;#39;t recognize the UICR area, but that should succeed despite the programmer some times say that it is outside the flash. But I am not sure what area it refers to just by looking at the log.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-flash Interface ICU Code on nRF52840 DevKit</title><link>https://devzone.nordicsemi.com/thread/369313?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 13:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6bc6383-0e80-411f-aeff-10e2bbacb0da</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;It is indeed the Nordic devkit board, same one in your picture. I thought that reset button was just the nRF52840 reset. I used to laugh at folk who complained about the itty-bitty text I would squeeze into tight places like that - not so much any more, with my bifocals.&lt;/p&gt;
&lt;p&gt;LED5 flickered briefly and then appeared to be on steady. Below is the journal from nRF Connect VS Code. After the first attempt I tried using west, but it&amp;#39;s not in the system path so I used nrfjprog --recover instead, which appeared to work. Then I made two more attempts, performing the suggested corrections. Still no joy. What am I missing?&lt;/p&gt;
&lt;p&gt;-- west flash: using runner nrfjprog&lt;br /&gt;-- runners.nrfjprog: Flashing file: d:\304\FW\Hook\examples\ble_central\multi-NUS-master\build\zephyr\zephyr.hex&lt;br /&gt;ERROR: The operation attempted is unavailable due to readback protection in&lt;br /&gt;ERROR: your device. Please use --recover to unlock the device.&lt;br /&gt;ERROR: runners.nrfjprog: Flashing failed because the target must be recovered.&lt;br /&gt;&amp;nbsp; To fix, run &amp;quot;west flash --recover&amp;quot; instead.&lt;br /&gt;&amp;nbsp; Note: this will recover and erase all flash memory prior to reflashing.&lt;br /&gt;FATAL ERROR: command exited with status 16: nrfjprog --program &amp;#39;d:\304\FW\Hook\examples\ble_central\multi-NUS-master\build\zephyr\zephyr.hex&amp;#39; --sectoranduicrerase -f NRF52 --snr 1050267783&lt;br /&gt;The terminal process terminated with exit code: 16.&lt;br /&gt;&lt;br /&gt;Terminal will be reused by tasks, press any key to close it.&lt;br /&gt;&lt;br /&gt;&amp;gt; Executing task: nRF Connect: Build: multi-NUS-master/build (active) &amp;lt;&lt;br /&gt;&lt;br /&gt;Building multi-NUS-master&lt;br /&gt;west build --build-dir d:\304\FW\Hook\examples\ble_central\multi-NUS-master\build d:\304\FW\Hook\examples\ble_central\multi-NUS-master&lt;br /&gt;&lt;br /&gt;ninja: no work to do.&lt;br /&gt;&lt;br /&gt;Terminal will be reused by tasks, press any key to close it.&lt;br /&gt;&lt;br /&gt;&amp;gt; Executing task: nRF Connect: Flash: multi-NUS-master/build (active) &amp;lt;&lt;br /&gt;&lt;br /&gt;Flashing build to undefined&lt;br /&gt;west flash -d d:\304\FW\Hook\examples\ble_central\multi-NUS-master\build --skip-rebuild -r nrfjprog --dev-id 1050267783&lt;br /&gt;&lt;br /&gt;-- west flash: using runner nrfjprog&lt;br /&gt;-- runners.nrfjprog: Flashing file: d:\304\FW\Hook\examples\ble_central\multi-NUS-master\build\zephyr\zephyr.hex&lt;br /&gt;Parsing image file.&lt;br /&gt;ERROR: The file specified is not a valid hex file, has data outside valid areas&lt;br /&gt;ERROR: or does not have data in valid areas.&lt;br /&gt;FATAL ERROR: command exited with status 52: nrfjprog --program &amp;#39;d:\304\FW\Hook\examples\ble_central\multi-NUS-master\build\zephyr\zephyr.hex&amp;#39; --sectoranduicrerase -f NRF52 --snr 1050267783&lt;br /&gt;The terminal process terminated with exit code: 52.&lt;br /&gt;&lt;br /&gt;Terminal will be reused by tasks, press any key to close it.&lt;br /&gt;&lt;br /&gt;&amp;gt; Executing task: nRF Connect: Flash: multi-NUS-master/build (active) &amp;lt;&lt;br /&gt;&lt;br /&gt;Flashing build to undefined&lt;br /&gt;west flash -d d:\304\FW\Hook\examples\ble_central\multi-NUS-master\build --skip-rebuild -r nrfjprog --dev-id 1050267783 --recover&lt;br /&gt;&lt;br /&gt;-- west flash: using runner nrfjprog&lt;br /&gt;-- runners.nrfjprog: Recovering and erasing all flash memory.&lt;br /&gt;Recovering device. This operation might take 30s.&lt;br /&gt;Writing image to disable ap protect.&lt;br /&gt;Erasing user code and UICR flash areas.&lt;br /&gt;-- runners.nrfjprog: Flashing file: d:\304\FW\Hook\examples\ble_central\multi-NUS-master\build\zephyr\zephyr.hex&lt;br /&gt;Parsing image file.&lt;br /&gt;ERROR: The file specified is not a valid hex file, has data outside valid areas&lt;br /&gt;ERROR: or does not have data in valid areas.&lt;br /&gt;FATAL ERROR: command exited with status 52: nrfjprog --program &amp;#39;d:\304\FW\Hook\examples\ble_central\multi-NUS-master\build\zephyr\zephyr.hex&amp;#39; --sectoranduicrerase -f NRF52 --snr 1050267783&lt;br /&gt;The terminal process terminated with exit code: 52.&lt;br /&gt;&lt;br /&gt;Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-flash Interface ICU Code on nRF52840 DevKit</title><link>https://devzone.nordicsemi.com/thread/369203?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 08:21:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a16d9169-44eb-496b-a65d-9defa1330f8d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you sure you don&amp;#39;t have an IF BOOT/RESET button on your nRF52840 DK? Is it a devkit from Nordic Semiconductor, or a 3rd party DK? If it is a Nordic DK it should be here:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1653379652264v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I guess a lot of these links are broken after we migrated to the new layout for nordicsemi.com.&lt;/p&gt;
&lt;p&gt;However, if it is in fact the Nordic DK, you can find the IF MCU FW under the download section on the DK page on nordicsemi.com:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52840-DK/Download?lang=en#infotabs"&gt;https://www.nordicsemi.com/Products/Development-hardware/nRF52840-DK/Download?lang=en#infotabs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So to repeat the guide:&lt;/p&gt;
&lt;p&gt;1. power off the DK&lt;/p&gt;
&lt;p&gt;2. hold IF BOOT/RESET while you power on the DK and note LED5 (next to the IF MCU) blinking.&lt;/p&gt;
&lt;p&gt;3. Drag and drop the FW from the link above into the &amp;quot;BOOTLOADER&amp;quot; device that pops up.&lt;/p&gt;
&lt;p&gt;4: wait for the copy to finish, and note the LED5 blinking faster&lt;/p&gt;
&lt;p&gt;5. Power off the DK and power it back on (without holding IF BOOT/RESET this time).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>