<?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>Cannot flash NRF52832 with Segger JLink device after a full day of flashing normally</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102561/cannot-flash-nrf52832-with-segger-jlink-device-after-a-full-day-of-flashing-normally</link><description>I am having an issue flashing from VS Code using NCS v2.4.0 and a Segger JLink programmer. Things work just fine for a long time, then I have issues flashing the device with the following output: 
 -- west flash: using runner nrfjprog -- runners.nrfjprog</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Aug 2023 21:38:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102561/cannot-flash-nrf52832-with-segger-jlink-device-after-a-full-day-of-flashing-normally" /><item><title>RE: Cannot flash NRF52832 with Segger JLink device after a full day of flashing normally</title><link>https://devzone.nordicsemi.com/thread/441479?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 21:38:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9a365a9-801b-4204-9aad-ea1f94e8b7e2</guid><dc:creator>jrhaws</dc:creator><description>&lt;p&gt;I have not seen this issue since I switched to just running in Windows and not through WSL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash NRF52832 with Segger JLink device after a full day of flashing normally</title><link>https://devzone.nordicsemi.com/thread/440349?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2023 15:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cd1d764-29fd-4306-88c1-69d0b5a6dd3b</guid><dc:creator>jrhaws</dc:creator><description>&lt;p&gt;Correct - this is very intermittent. I have not seen this issue since I switched the filesystem my code was on from WSL to Windows proper. Maybe that was playing into it. I&amp;#39;ll continue testing and let you know.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash NRF52832 with Segger JLink device after a full day of flashing normally</title><link>https://devzone.nordicsemi.com/thread/440294?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2023 11:28:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39cc68a8-fdbf-4d8e-8511-fa9f905a8167</guid><dc:creator>Elfving</dc:creator><description>[quote user="jrhaws"]&lt;p&gt;I&amp;#39;ll share schematics as soon as I can verify our NDA with you guys.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Great! Would be nice to get that out of the way.&lt;/p&gt;
[quote user="jrhaws"]&lt;p&gt;However, sometimes the system seems to get into a state where it cannot flash at all - like it cannot communicate with the programmer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;So this just happens every now and then? Not necessarily every time from now on either?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash NRF52832 with Segger JLink device after a full day of flashing normally</title><link>https://devzone.nordicsemi.com/thread/440188?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 19:46:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11eb56ae-7c79-4c29-ac0b-be0a46c374bc</guid><dc:creator>jrhaws</dc:creator><description>&lt;p&gt;Elfving,&lt;/p&gt;
&lt;p&gt;Yes, I can flash other boards (and this particular board) just fine many times.&lt;/p&gt;
&lt;p&gt;However, sometimes the system seems to get into a state where it cannot flash at all - like it cannot communicate with the programmer.&lt;/p&gt;
&lt;p&gt;I have been running VS Code off a shared drive with a WSL installation, so maybe that was playing into this as well.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll share schematics as soon as I can verify our NDA with you guys.&lt;/p&gt;
&lt;p&gt;Thanks for the support!&lt;/p&gt;
&lt;p&gt;Jon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash NRF52832 with Segger JLink device after a full day of flashing normally</title><link>https://devzone.nordicsemi.com/thread/440059?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 08:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35d45345-c5f4-4ab8-962f-3dff0c46b8cb</guid><dc:creator>Elfving</dc:creator><description>[quote user="jrhaws"]Thanks for the help![/quote]
&lt;p&gt;No problem at all, though I should mention that there might be some delays here on DevZone during these summer months due to vacations and low staffing. Though we are starting to get out of that phase now.&lt;/p&gt;
[quote user="jrhaws"]we use an external Segger JLink base instead of an onboard chip.[/quote]
&lt;p&gt;Great, just wondered if it was an external programmer from another DK.&lt;/p&gt;
&lt;p&gt;As the custom board has worked for a while I assume the board layout is fine, though out of curiosity: have you gotten the hardware reviewed?&lt;/p&gt;
&lt;p&gt;Are you able to flash anything else, eg. other copies of this custom board, with this programmer?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash NRF52832 with Segger JLink device after a full day of flashing normally</title><link>https://devzone.nordicsemi.com/thread/439947?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2023 14:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:019dee16-9c84-4a68-a07c-94088fdb77a3</guid><dc:creator>jrhaws</dc:creator><description>&lt;p&gt;This is a custom board. We are just programming with SWD, similar to how the dev kits are done, but we use an external Segger JLink base instead of an onboard chip.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not an expert on how the programmers work, but VS code can see the device (the programmer) and when I click debug, it runs a the nrfjprog command to flash the image to the board then start the debugger. It works fine a lot of the time, but there seems to be a sequence of operations that makes the chip invisible for a period of time and even power cycling the target doesn&amp;#39;t clear it out.&lt;/p&gt;
&lt;p&gt;We have the SWDIO/RESET and SWDCLK lines of the nrf52832 run out to Tagconnect pads on our board and we connect our programmer to that via ribbon cable.&lt;/p&gt;
&lt;p&gt;What other details would you like to know?&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash NRF52832 with Segger JLink device after a full day of flashing normally</title><link>https://devzone.nordicsemi.com/thread/439900?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2023 11:41:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6a742b5-63f5-4746-92c7-2759a6cbd717</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Jon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is this a DK or a custom board? If it is a custom board, could you expand a bit on how you are programming it?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash NRF52832 with Segger JLink device after a full day of flashing normally</title><link>https://devzone.nordicsemi.com/thread/439796?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 23:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91df2929-009f-43d3-82bb-1aa7798baad6</guid><dc:creator>jrhaws</dc:creator><description>&lt;p&gt;I also ran this and got this result:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;PS C:\Users\jonathan.haws&amp;gt; nrfjprog.exe --recover -f NRF52 --log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;Recovering device. This operation might take 30s.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;[error] [ Client] - Encountered error -21: Command recover executed for 10020 milliseconds with result -21&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;[error] [ Worker] - 10 second timeout elapsed, no time left to wait for debug port to power up.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;ERROR: Recover failed. Please make sure that the correct device family is given&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;ERROR: and try again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>