<?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>NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51817/nrf52840-softdevice-programming</link><description>I would like to program my NRF52840 device using the Keil Ulink2/pro JTAG device. 
 I have been able to do a full chip erase using the Keil Ulink 2 device, but when I attempt to program it fails 
 Load &amp;quot;..\\SoftDevice\\s140_nrf52_6.0.0_softdevice.hex</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Sep 2019 06:51:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51817/nrf52840-softdevice-programming" /><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/209524?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2019 06:51:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb447ec7-e636-4cd7-8ecf-8d26212d87cb</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Yes, it seems you should remove nRF52xxx, but leave UICR and SoftDevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Øyvnd&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/209472?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2019 15:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93057ade-0fb4-4aab-86c4-00ff7556aff4</guid><dc:creator>cyberzl1</dc:creator><description>&lt;p&gt;So that seems to allow an erase, but causes some issues when trying to program.&lt;/p&gt;
&lt;p&gt;Include &amp;quot;&amp;lt;path&amp;gt;\\ProjectFiles\\Source\\Nrf52840\\pca10056\\ide\\arm5_no_packs\\preload.ini&amp;quot; &lt;br /&gt;Load &amp;quot;&lt;span&gt;&amp;lt;path&amp;gt;&lt;/span&gt;\\SoftDevice\\s140_nrf52_6.0.0_softdevice.hex&amp;quot;&lt;br /&gt;Full Chip Erase Done.&lt;br /&gt;Flash Erase finished 10:24:56&lt;br /&gt;Load &amp;quot;&lt;span&gt;&amp;lt;path&amp;gt;&lt;/span&gt;\\ProjectFiles\\Source\\Nrf52840\\pca10056\\ide\\arm5_no_packs\\_build\\nrf52840_xxaa.axf&amp;quot; &lt;br /&gt;Include &amp;quot;&lt;span&gt;&amp;lt;path&amp;gt;&lt;/span&gt;\\ProjectFiles\\Source\\Nrf52840\\pca10056\\ide\\arm5_no_packs\\preload.ini&amp;quot; &lt;br /&gt;Load &amp;quot;&lt;span&gt;&amp;lt;path&amp;gt;&lt;/span&gt;\\SoftDevice\\s140_nrf52_6.0.0_softdevice.hex&amp;quot;&lt;br /&gt;Erase Failed!&lt;br /&gt;Error: Flash Download failed - &amp;quot;Cortex-M4&amp;quot;&lt;br /&gt;Flash Load finished at 10:26:32&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1568301974892v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have my Keil Ulink configured like this:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1568302065245v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Where preload.ini is as you described.&amp;nbsp; It seems to be pulling this in correctly as can be seen with the load statements.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1568302112834v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;Should the programming algorithms be different?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/209419?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2019 12:16:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:867afe6c-a489-4346-bb3b-aef3a4d39525</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello again,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;A colleague from our tools team tested Ulink in Keil and had no trouble with usage.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;His solution was to add a preload.ini file under Configure Flash Menu Command. (Project --&amp;gt; Options for Target &amp;lt;Device&amp;gt; --&amp;gt; Utilities). This .ini file had the following:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Load &amp;quot;&amp;lt;your path&amp;gt;\\s140_nrf52_6.0.0_softdevice.hex&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Under programming algorithm, you must also add nRF52xxx SoftDevice Erase. This allows you to program or update the softdevice.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please try this solution on your computer, and let me know how it went.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/208826?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 08:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54303ee9-0365-4ba0-a863-bfac1b357857</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote userid="83140" url="~/f/nordic-q-a/51817/nrf52840-softdevice-programming/208735"]In regards to the SDK question, does the listed API help to answer that question?[/quote]
&lt;p&gt;No, not that I can see. But it does not matter. I have asked our team to test with a Ulink and see if there are any solutions. nRFJProg does only support Segger.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="83140" url="~/f/nordic-q-a/51817/nrf52840-softdevice-programming/208735"]This hex could be shared if that is needed, but not on this public forum.[/quote]
&lt;p&gt;No need yet.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll keep you posted.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;&amp;Oslash;yvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/208735?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 14:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e29c1384-fd4f-42e5-9dc9-9f8e9ea3e569</guid><dc:creator>cyberzl1</dc:creator><description>&lt;p&gt;In regards to the SDK question, does the listed API help to answer that question?&lt;/p&gt;
&lt;p&gt;If not, as to what I am trying to program for an application after SoftDevice, our team (at another office) has developed an application that I am trying to help with testing on.&amp;nbsp; Their office has JLink devices, where I only have ULink at my disposal.&amp;nbsp; They did have a spare JLink that has been sent over but is still in our mail system at this time.&lt;/p&gt;
&lt;p&gt;This hex could be shared if that is needed, but not on this public forum.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/208732?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 14:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5ec75b-beb4-418f-a943-fa6a7fbd1d58</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="cyberzl1"]nrfjprog --eraseall&lt;br /&gt;ERROR: There is no debugger connected to the PC.[/quote]
&lt;p&gt;&amp;nbsp;Thank you. This will help to find a solution with our&amp;nbsp;nRF5x Command Line Tools team.&amp;nbsp;&lt;/p&gt;
[quote user="cyberzl1"]How do I determine the SDK version?[/quote]
&lt;p&gt;I assumed that you have an SDK that you are working with? If not,&amp;nbsp;&amp;nbsp;what are you trying to program along with the SoftDevice? This is to replicate the issue.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="cyberzl1"] I would still like to resolve how to do this with a ULink if possible.[/quote]
&lt;p&gt;Yes, we will find a solution to this.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/208723?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 13:53:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44d2b3d7-67bf-4ee7-995d-33beed12a77a</guid><dc:creator>cyberzl1</dc:creator><description>&lt;p&gt;I receive the following message.&amp;nbsp; But I have a Ulink connected to the device.&amp;nbsp; The Ulink detects the target and appears to be capable of erasing the part, but not the UICR registers on the device.&lt;/p&gt;
&lt;p&gt;nrfjprog --eraseall&lt;br /&gt;ERROR: There is no debugger connected to the PC.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How do I determine the SDK version?&lt;/p&gt;
&lt;p&gt;s140_nrf52_6.0.0_API?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I should have a JLink by the end of the day, but I would still like to resolve how to do this with a ULink if possible.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/208677?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 12:19:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:791a5be5-cff4-40ec-a024-a6c821a803b8</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;What message do you receive when running &amp;quot;&lt;em&gt;nrfjprog&amp;nbsp;--eraseall&lt;/em&gt;&amp;quot;?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;From what SDK version are you trying to&amp;nbsp;program the SoftDevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/208493?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 14:13:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:012f90bb-a4e4-4d40-b9a3-eb34efa87822</guid><dc:creator>cyberzl1</dc:creator><description>&lt;p&gt;Both of those options require a Jlink.&amp;nbsp; Is there any option for use with a Ulink?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/208409?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 08:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b38c076-ce7c-44d6-858d-52729387f8d0</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The error message Flash Download Failed - &amp;quot;Cortex-M4&amp;quot; usually indicates that the SoftDevice is present on the device. Checking the Erase Full Chip does not work in Keil. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18278/error-flash-download-failed---cortex---m4-while-flashing-softdevice-from-keil-uvision-5"&gt;Ref. similar case&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Please erase your device using the Programmer app in &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt; or issuing the command&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt; nrfjprog --eraseall&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Let me know how that works for you.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/208324?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 17:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b712a58b-3ba2-4559-b9f0-f4fe8852b1be</guid><dc:creator>cyberzl1</dc:creator><description>&lt;p&gt;How do I change that?&amp;nbsp; The Keil libraries I have only list what you see there.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1567705195222v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Softdevice programming</title><link>https://devzone.nordicsemi.com/thread/208321?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 17:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d68fc269-3570-41b5-8d1a-19c002e67f2c</guid><dc:creator>Geom</dc:creator><description>&lt;p&gt;NRF52840 has 1 MB flash&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>