<?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>unable to flash the code in BT 40</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119991/unable-to-flash-the-code-in-bt-40</link><description>C:\Users\lnaik\Desktop\New_develop&amp;gt;nrfjprog --recover --coprocessor CP_NETWORK Recovering device. This operation might take 30s. [error] [ Client] - Encountered error -21: Command recover executed for 14 milliseconds with result -21 [error] [ Worker]</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Mar 2025 11:18:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119991/unable-to-flash-the-code-in-bt-40" /><item><title>RE: unable to flash the code in BT 40</title><link>https://devzone.nordicsemi.com/thread/528384?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 11:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:551821f9-96e0-4918-898d-3af83d06d86a</guid><dc:creator>lalith88</dc:creator><description>&lt;p&gt;yes, with same firmware. Not even single line of code change.&lt;br /&gt; I have tried with other module it was show first same errors&lt;br /&gt;&lt;span&gt;C:\Users\lnaik\Desktop\New_develop&amp;gt;nrfjprog --recover --coprocessor CP_NETWORK&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Recovering device. This operation might take 30s.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[error] [ Client] - Encountered error -21: Command recover executed for 14 milliseconds with result -21&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[error] [ Worker] - Eraseprotect is enabled and readback protection setting is ALL, can&amp;#39;t recover device.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;ERROR: Recover failed. Please make sure that the correct device family is given&lt;/span&gt;&lt;br /&gt;&lt;span&gt;ERROR: and try again.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;/span&gt;&lt;br /&gt;&lt;span&gt;NOTE: Any generated log error messages will be displayed.&amp;nbsp;&lt;/span&gt;&lt;br /&gt; and now its working fine.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to flash the code in BT 40</title><link>https://devzone.nordicsemi.com/thread/528382?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 11:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:958d053f-ed49-4c07-a3e4-a196cde26ae4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I have a first hand experience with this error -102 when the supply voltage was not enough to the chip. If that is not the case, then your module might be broken. Have you tried it with another module? Are you sure your input power supply is giving enough power?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to flash the code in BT 40</title><link>https://devzone.nordicsemi.com/thread/528315?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 06:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9966381f-6c3c-4663-860c-a275254c2222</guid><dc:creator>lalith88</dc:creator><description>&lt;p&gt;nrfjprog version 10.24.2 external&lt;br /&gt;now i am getting this kind of error can you check this&amp;nbsp;&lt;br /&gt;[0/16] Performing build step for &amp;#39;tfm&amp;#39;&lt;br /&gt;ninja: no work to do.&lt;br /&gt;-- west flash: using runner nrfjprog&lt;br /&gt;-- runners.nrfjprog: reset after flashing requested&lt;br /&gt;-- runners.nrfjprog: Flashing file: c:\Users\lnaik\Desktop\New_develop\build_1\zephyr\merged.hex&lt;br /&gt;[error] [ Client] - Encountered error -102: Command select_coprocessor executed for 140 milliseconds with result -102&lt;br /&gt;ERROR: Failed when selecting coprocessor APPLICATION&lt;br /&gt;[error] [ Worker] - An unknown error.&lt;br /&gt;ERROR: JLinkARM DLL reported an error. Try again. If error condition&lt;br /&gt;ERROR: persists, run the same command again with argument --log, contact Nordic&lt;br /&gt;ERROR: Semiconductor and provide the generated log.log file to them.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&lt;br /&gt;FATAL ERROR: command exited with status 33: nrfjprog --program &amp;#39;c:\Users\lnaik\Desktop\New_develop\build_1\zephyr\merged.hex&amp;#39; --sectorerase --verify -f NRF53 --coprocessor CP_APPLICATION --snr 600105674&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to flash the code in BT 40</title><link>https://devzone.nordicsemi.com/thread/528235?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 13:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a4e3ce7-3841-4a1f-8b48-92be72060493</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Are you sure that there is enough power supplied to the chip? Did you try it on any other chip apart from this one? If not can you please try this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It has to be either not enough power or some error/damage with the chip. Which version of nrfjprog are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to flash the code in BT 40</title><link>https://devzone.nordicsemi.com/thread/528179?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 10:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a90a059-a31a-468d-bd20-3b55a72bd5f9</guid><dc:creator>lalith88</dc:creator><description>&lt;p&gt;C:\Users\lnaik\Desktop\New_develop&amp;gt;nrfjprog --eraseall --coprocessor CP_NETWORK&lt;br /&gt;[error] [ nRFXX] - Device does not have an ARM debug port.&lt;br /&gt;[error] [ Client] - Encountered error -3: Command enable_coprocessor executed for 0 milliseconds with result -3&lt;br /&gt;ERROR: NETWORK coprocessor is invalid on UNKNOWN family devices[error] [ nRFXX] - Device does not have an ARM debug port.&lt;/p&gt;
&lt;p&gt;[error] [ Worker] - NETWORK is not a valid coprocessor for the device&lt;br /&gt;ERROR: An invalid argument was provided. Use --help for a list of valid&lt;br /&gt;ERROR: arguments.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&lt;/p&gt;
&lt;p&gt;C:\Users\lnaik\Desktop\New_develop&amp;gt;nrfjprog --recover --coprocessor CP_NETWORK&lt;br /&gt;[error] [ nRFXX] - Device does not have an ARM debug port.&lt;br /&gt;[error] [ nRFXX] - Device does not have an ARM debug port.&lt;br /&gt;[error] [ Client] - Encountered error -3: Command enable_coprocessor executed for 15 milliseconds with result -3&lt;br /&gt;ERROR: NETWORK coprocessor is invalid on UNKNOWN family devices[error] [ Worker] - NETWORK is not a valid coprocessor for the device&lt;/p&gt;
&lt;p&gt;ERROR: An invalid argument was provided. Use --help for a list of valid&lt;br /&gt;ERROR: arguments.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed. can you check these out please&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to flash the code in BT 40</title><link>https://devzone.nordicsemi.com/thread/528177?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 10:31:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:525acbba-c1f7-4bcd-b677-8f7e446743f4</guid><dc:creator>lalith88</dc:creator><description>&lt;p&gt;-- west flash: using runner nrfjprog&lt;br /&gt;-- runners.nrfjprog: Flashing file: c:\Users\lnaik\Desktop\New_develop\build_1\zephyr\merged.hex&lt;br /&gt;[error] [ Worker] - Encountered unexpected debug port ID 4, expected 6&lt;br /&gt;[error] [ Client] - Encountered error -5: Command select_coprocessor executed for 22 milliseconds with result -5&lt;br /&gt;ERROR: Failed when selecting coprocessor APPLICATION&lt;br /&gt;ERROR: The --family option given with the command (or the default from&lt;br /&gt;ERROR: nrfjprog.ini) does not match the device connected.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&lt;br /&gt;FATAL ERROR: command exited with status 18: nrfjprog --program &amp;#39;c:\Users\lnaik\Desktop\New_develop\build_1\zephyr\merged.hex&amp;#39; --sectorerase --verify -f NRF53 --coprocessor CP_APPLICATION --snr 1050060012 can you check this error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to flash the code in BT 40</title><link>https://devzone.nordicsemi.com/thread/528176?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 10:30:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9c2c9a1-4d1d-44fd-af9d-63cbbfe4f6bf</guid><dc:creator>lalith88</dc:creator><description>&lt;p&gt;-- west flash: using runner nrfjprog&lt;br /&gt;-- runners.nrfjprog: Flashing file: c:\Users\lnaik\Desktop\New_develop\build_1\zephyr\merged.hex&lt;br /&gt;[error] [ Worker] - Encountered unexpected debug port ID 4, expected 6&lt;br /&gt;[error] [ Client] - Encountered error -5: Command select_coprocessor executed for 22 milliseconds with result -5&lt;br /&gt;ERROR: Failed when selecting coprocessor APPLICATION&lt;br /&gt;ERROR: The --family option given with the command (or the default from&lt;br /&gt;ERROR: nrfjprog.ini) does not match the device connected.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&lt;br /&gt;FATAL ERROR: command exited with status 18: nrfjprog --program &amp;#39;c:\Users\lnaik\Desktop\New_develop\build_1\zephyr\merged.hex&amp;#39; --sectorerase --verify -f NRF53 --coprocessor CP_APPLICATION --snr 1050060012&lt;br /&gt;now i am getting this error&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to flash the code in BT 40</title><link>https://devzone.nordicsemi.com/thread/528131?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 06:44:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac641c69-2706-4037-9bd9-b0ac48b5eb39</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hmm, recover should have worked even if erase protection is enabled.&lt;/p&gt;
&lt;p&gt;Can you try erase all and then try recover?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;nbsp;nrfjprog --eraseall --coprocessor CP_NETWORK&lt;/p&gt;
&lt;p&gt;&amp;gt; nrfjprog --recover --coprocessor CP_NETWORK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>