<?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>nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15580/nrf52832-flash-programming</link><description>Hi, 
 Is there an extensive documentation about programming process of a nrf52832 using keil?
I just spent hours figuring out that I had to use Softdevice erase flash algorithm to get rid of a laconic &amp;quot;programming failed&amp;quot; under keil. I cannot find any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 28 Jan 2017 13:44:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15580/nrf52832-flash-programming" /><item><title>RE: nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/thread/59448?ContentTypeID=1</link><pubDate>Sat, 28 Jan 2017 13:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccd5b42d-a6b1-4e4c-a986-96b5631848da</guid><dc:creator>Alexej Gerstmaier</dc:creator><description>&lt;p&gt;Hey I&amp;#39;m doing the same as you but I can&amp;#39;t find &amp;quot;Softdevice algorithm&amp;quot;. I only have &amp;quot;nrf52xxx Softdevice Erase&amp;quot; which I used for flashing the softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/thread/59454?ContentTypeID=1</link><pubDate>Sat, 24 Sep 2016 14:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43b3e44c-6e2f-4242-8b0c-b028599c855a</guid><dc:creator>PaoloP</dc:creator><description>&lt;p&gt;Hello ALL,
I can confirm what written by Sébastien, with KEIL MDK5 and uLink2 ME it works.
I am able to progra nRF52832 chip directly.
Ican flash the SD separately from hex file and the full APP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/thread/59452?ContentTypeID=1</link><pubDate>Sat, 10 Sep 2016 06:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1063b7bd-5a34-4bec-9e6b-f9ce8f4ef974</guid><dc:creator>S&amp;#233;bastien Le Ray</dc:creator><description>&lt;p&gt;From my notes, in Target setup,
For soft device target, debug tab, button settings, tab Flash download: Flash Algorithms: nrf5xxx Softdevice erase (this way it&amp;#39;ll handle sd upgrade if needed). Check program &amp;amp; verify, RAM Algorithm: 0x20000000/size 0x2000. back in target setup, target tab, IROM1 Start 0, size given in SD release notes (0x1F000 for SD3), IRAM1 start 0x20000000, I guess size has no real effect (it&amp;#39;s given by the start you&amp;#39;ll set in app target).
For app target, flash algo nrf52xxx, start 0x20000000, size 0x2000. Main params:  IROM1 start 0x1F000 (see SDK release notes), size = chip flash size - start, IRAM1 start depends on which SD features you use, You&amp;#39;ll have to set a random value (size is chip ram size - start) and debug the sd_enable call which will fail &amp;amp; return you the correct value.
You&amp;#39;ll need the last NordicSemiConductor::nRF_DeviceFamilyPack Keil pack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/thread/59451?ContentTypeID=1</link><pubDate>Sat, 10 Sep 2016 05:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0795ebee-a2fc-420a-a95b-eee98456519f</guid><dc:creator>vasanth</dc:creator><description>&lt;p&gt;St-jlink/v2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/thread/59453?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2016 19:57:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:428e2421-262e-4475-a78e-89b40b9cf3db</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Try &lt;a href="http://embeddedsoftdev.blogspot.ca/p/idap-link.html"&gt;this one here&lt;/a&gt;. It can flash Softdevice and works with OpenOCD, Keil, CrossWorks and many others.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/thread/59450?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2016 08:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb2be53f-09f9-4176-9237-e4d9c55f5c36</guid><dc:creator>S&amp;#233;bastien Le Ray</dc:creator><description>&lt;p&gt;Which debugger do you use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/thread/59449?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2016 08:22:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b74af78-8093-4f3b-bbdb-97c1a442aa0f</guid><dc:creator>vasanth</dc:creator><description>&lt;p&gt;Any one found Solution ? i am facing the same issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/thread/59447?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2016 13:15:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:394f7f9d-6353-4824-addd-ba16aae94248</guid><dc:creator>S&amp;#233;bastien Le Ray</dc:creator><description>&lt;p&gt;The meaning of &amp;quot;flash algorithm&amp;quot; is the heart in my issue, it&amp;#39;s a keil parameter when you use ST-Link debugger to flash stuff. Anyway I sorted it out, when upgrading SoftDevice with a ST-Link you&amp;#39;ll have to use SoftDevice Erase algorithm (with a 0x2000 size), while app flashing needs SoftDevice (0x2000 size) as algorithm.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/thread/59446?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2016 19:04:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31218e9b-724c-46fa-af2b-e0692e9a9d64</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Sebastien,&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot;flash algorithms&amp;quot;? Memory layout of the nRF5x chips is described in respective product specifications (you can see it on-line at infocenter as well). The rest is standard JTAG/SWD (which isn&amp;#39;t invention of Nordic so you can find detailed documentation elsewhere) and SEGGER J-Link/J-FLash (if you really want to understand all background details then go to SEGGER web site).&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/thread/59445?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2016 14:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0fc20d0-9add-41fc-a15f-0e9910b646dd</guid><dc:creator>S&amp;#233;bastien Le Ray</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your time.&lt;/p&gt;
&lt;p&gt;I Already read (most) of them, but there&amp;#39;s nothing about flash algorithms&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 flash programming</title><link>https://devzone.nordicsemi.com/thread/59444?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2016 14:41:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86d97ac4-b7bb-4174-8bfe-74f00d6b7334</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://devzone.nordicsemi.com/tutorials/36/"&gt;Getting started with the nRF5 development kit&lt;/a&gt;-tutorial is a great starting point to get started with programming with Keil.&lt;/p&gt;
&lt;p&gt;There is also a Getting started section in the official documentation at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/nrf51_getting_started.html?cp=6_0_0_1"&gt;Infocenter&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I would also recomment reading this &lt;a href="https://devzone.nordicsemi.com/blogs/856/keil-nrfjprog-true/"&gt;blogpost&lt;/a&gt; describing how to add custom shortcuts for running nrfjprog commands like &lt;em&gt;eraseall&lt;/em&gt; and programming SoftDevices from inside Keil.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>