<?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>Flashing code on I/O shield using nRF5340 DK board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114440/flashing-code-on-i-o-shield-using-nrf5340-dk-board</link><description>Hi 
 I am using the nRF5340 DK board using its P20 trying to flash an LED blink code to MDBT53-P1M (RAYTAC) I/O shield. The LED is connected to P0.31 of the I/O shield. By following all the instructions given for programming the custom board in the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 14 Sep 2024 14:45:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114440/flashing-code-on-i-o-shield-using-nrf5340-dk-board" /><item><title>RE: Flashing code on I/O shield using nRF5340 DK board</title><link>https://devzone.nordicsemi.com/thread/502534?ContentTypeID=1</link><pubDate>Sat, 14 Sep 2024 14:45:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac96af98-d6f0-43d0-b9d1-ed3c81c4fbbf</guid><dc:creator>akhil</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;Sorry for the delay in response. Yes till now we haven&amp;#39;t been able to communicate with the I/O shield for flashing or erasing chip data. So can nRF5340 DK give that power spike to the I/O shield? because the maximum time we are powering up the I/O shield with DK is only using P20.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;on the power consumption when we are powering up the I/O shield with the external power supply we are giving the I/O shield 3v power supply as suggested in the documents and it was drawing the current around 35mA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing code on I/O shield using nRF5340 DK board</title><link>https://devzone.nordicsemi.com/thread/501291?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 07:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afe319e0-39ef-46d5-91f5-3e05f08093c9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Have you ever succeeded in flashing or erasing this chip? I am thinking maybe there is not stable power? Also we have seen such reports if the DK was not given stable power and a power spike could have fried the chip.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Based on the logs you provided, the debugger is unable to communicate in any way to the chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing code on I/O shield using nRF5340 DK board</title><link>https://devzone.nordicsemi.com/thread/501286?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 07:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59d74950-d5ae-4566-891e-0c8a532708e0</guid><dc:creator>akhil</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/aryan"&gt;Susheel Nuguru&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, I have tried to recover the two cores but don&amp;#39;t know what exactly the issue is as I have checked the connection also on the hardware side it seems fine as given in the nRF5340 DK Board Document.&lt;/p&gt;
&lt;p&gt;following are the commands I have used and their error logs:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[error] [ Client] - Encountered error -102: Command enable_coprocessor executed for 154 milliseconds with result -102
Failed to enable coprocessor with unknown error.
[error] [ Worker] - An unknown error.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
PS C:\nordic-dfu-main\nordic-dfu-main\blinky&amp;gt; nrfjprog --recover -f NRF53 --snr 1050083709 --coprocessor CP_APPLICATION --speed 1000
&amp;gt;&amp;gt;
ERROR: An invalid argument was provided. Use --help for a list of valid
ERROR: arguments.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
PS C:\nordic-dfu-main\nordic-dfu-main\blinky&amp;gt; nrfjprog --recover -f NRF53 --snr 1050083709
&amp;gt;&amp;gt;
Recovering device. This operation might take 30s.
[error] [ Client] - Encountered error -21: Command recover executed for 139 milliseconds with result -21
[error] [ Worker] - An unknown error.
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
PS C:\nordic-dfu-main\nordic-dfu-main\blinky&amp;gt; nrfjprog --recover -f NRF53 --snr 1050083709
&amp;gt;&amp;gt;
Recovering device. This operation might take 30s.
Erasing user code and UICR flash areas.
Writing image to disable ap protect.
PS C:\nordic-dfu-main\nordic-dfu-main\blinky&amp;gt; nrfjprog --recover -f NRF53 --snr 1050083709
&amp;gt;&amp;gt;
Recovering device. This operation might take 30s.
[error] [ Worker] - An unknown error.
[error] [ Client] - Encountered error -21: Command recover executed for 140 milliseconds with result -21
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
PS C:\nordic-dfu-main\nordic-dfu-main\blinky&amp;gt; nrfjprog --recover -f NRF53 --snr 1050083709
&amp;gt;&amp;gt;
Recovering device. This operation might take 30s.
Erasing user code and UICR flash areas.
Writing image to disable ap protect.
PS C:\nordic-dfu-main\nordic-dfu-main\blinky&amp;gt; nrfjprog --recover -f nrf53 --coprocessor cp_network
[error] [ Client] - Encountered error -102: Command enable_coprocessor executed for 155 milliseconds with result -102
Failed to enable coprocessor with unknown error.
[error] [ Worker] - An unknown error.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
PS C:\nordic-dfu-main\nordic-dfu-main\blinky&amp;gt; :loop
&amp;gt;&amp;gt; nrfjprog --recover -f nrf52
&amp;gt;&amp;gt; goto loop
:loop : The term &amp;#39;:loop&amp;#39; is not recognized as the name of a cmdlet, function, script file, or operable program. 
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ :loop
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (:loop:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Recovering device. This operation might take 30s.
[error] [ Client] - Encountered error -21: Command recover executed for 137 milliseconds with result -21
[error] [ Worker] - An unknown error.
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
goto : The term &amp;#39;goto&amp;#39; is not recognized as the name of a cmdlet, function, script file, or operable program. 
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:3 char:1
+ goto loop
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (goto:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\nordic-dfu-main\nordic-dfu-main\blinky&amp;gt; :loop
&amp;gt;&amp;gt; nrfjprog --recover -f nrf53
&amp;gt;&amp;gt; goto loop
:loop : The term &amp;#39;:loop&amp;#39; is not recognized as the name of a cmdlet, function, script file, or operable program. 
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ :loop
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (:loop:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Recovering device. This operation might take 30s.
[error] [ Client] - Encountered error -21: Command recover executed for 137 milliseconds with result -21
[error] [ Worker] - An unknown error.
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
goto : The term &amp;#39;goto&amp;#39; is not recognized as the name of a cmdlet, function, script file, or operable program. 
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:3 char:1
+ goto loop
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (goto:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\nordic-dfu-main\nordic-dfu-main\blinky&amp;gt;
 *  History restored 

PS C:\nordic-dfu-main\nordic-dfu-main\blinky&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing code on I/O shield using nRF5340 DK board</title><link>https://devzone.nordicsemi.com/thread/501275?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 06:32:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40b579e6-f905-4f7e-8514-056df0c54e50</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;try to recover the chip first. It seems like there is no communication happening with the chip and the debugger. Not sure what the issue is but try recovering two cores&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --recover -f nrf53 --coprocessor CP_APPLICATION
nrfjprog --recover -f nrf53 --coprocessor CP_NETWORK&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing code on I/O shield using nRF5340 DK board</title><link>https://devzone.nordicsemi.com/thread/500886?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 07:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53947add-6f46-4cda-b84c-56293fc47c2f</guid><dc:creator>akhil</dc:creator><description>&lt;p&gt;Also, note that we are giving power to the I/O shield by the nRF5340 DK board only as suggested in the documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>