<?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>Issues programming my nRF51822 for the first time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4295/issues-programming-my-nrf51822-for-the-first-time</link><description>Hello All, 
 I&amp;#39;m trying to program a NRF51822 module for the first time. I&amp;#39;m using the Jlink for ARM from IAR which is segger rebranded. It supports JTAG and SWD. 
 We got a module from Raytac. The module mfg recommended a 12K ohm pulldown resistor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Nov 2014 16:48:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4295/issues-programming-my-nrf51822-for-the-first-time" /><item><title>RE: Issues programming my nRF51822 for the first time</title><link>https://devzone.nordicsemi.com/thread/15306?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2014 16:48:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:634a8ad4-307c-4e08-8f9a-944b63da7f3a</guid><dc:creator>Gilson</dc:creator><description>&lt;p&gt;That helped with the issue. So I thought that &amp;quot;Erase All&amp;quot; from within Keil would erase the whole flash without having to go to nRFgo Studio.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues programming my nRF51822 for the first time</title><link>https://devzone.nordicsemi.com/thread/15302?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2014 12:09:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b29e375e-0cd8-4d01-bd76-20fa7335bcb8</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Are you able to use nRFgo studio to fully erase the chip, and then program the application hex-file through nRFgo Studio?&lt;/p&gt;
&lt;p&gt;Also, try to do a full recovery with nrfjprog that came with nRFtools: &amp;quot;nrfjprog --recover&amp;quot;&lt;/p&gt;
&lt;p&gt;I can confirm that the memory address settings should be IROM1: Start: 0x0 Size:0x40000 IRAM1: Start: 0x20000000 Size: 0x4000, for NO softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues programming my nRF51822 for the first time</title><link>https://devzone.nordicsemi.com/thread/15305?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 19:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d9c6bac-9f2d-4a58-80d4-a0466d7c68da</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I think I see the problem.  The module may have the S110 already flashed in and protected.  You&amp;#39;ll need the nRFGo to completely erase it first before you can load other programs to address 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues programming my nRF51822 for the first time</title><link>https://devzone.nordicsemi.com/thread/15304?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 18:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e698bbaf-df08-4744-b138-ca94d8d3f42d</guid><dc:creator>Gilson</dc:creator><description>&lt;p&gt;Thanks Nguyen,&lt;/p&gt;
&lt;p&gt;I made some progress but still have a problem. For a quick and dirty test I built Blinky and I was trying to program the module without the S110. But After some attempts changing the SW mode all the way down to 100KHz and no progress I decided to try the build version nrf51822_xxaa_s110 and I was able  to program the nRF. Please see below.&lt;/p&gt;
&lt;p&gt;So why does it work with S110 and it does not without S110? it has to do with the memory setup then but I looked at my addresses and they seem right, can you please confirm?&lt;/p&gt;
&lt;p&gt;for NO softdevice Blinky address settings are:&lt;/p&gt;
&lt;p&gt;IROM1: Start: 0x0 Size:0x40000
IRAM1: Start: 0x20000000 Size: 0x4000&lt;/p&gt;
&lt;h2&gt;JLink info:&lt;/h2&gt;
&lt;p&gt;DLL: V4.94c, compiled Oct 31 2014 19:59:57
Firmware: J-Link ARM V7 compiled Jun 20 2012 19:45:53
Hardware: V7.00
S/N : 157001765
OEM : IAR&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;JLink Info: Found SWD-DP with ID 0x0BB11477&lt;/li&gt;
&lt;li&gt;JLink Info: Found Cortex-M0 r0p0, Little endian.&lt;/li&gt;
&lt;li&gt;JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
ROMTableAddr = 0xE00FF003&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Target info:&lt;/h2&gt;
&lt;p&gt;Device: nRF51822_xxAA
VTarget = 3.377V
State of Pins:
TCK: 0, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 0
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints:          2
JTAG speed: 1000 kHz&lt;/p&gt;
&lt;p&gt;Full Chip Erase Done.
Programming Done.
Verify OK.
Application running ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues programming my nRF51822 for the first time</title><link>https://devzone.nordicsemi.com/thread/15303?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 17:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1073811c-9d49-4b52-a86c-4af9d878de19</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Make sure the setting is SW mode not Jtag mode.  Try to lower down to 100KHz and work your way up.  If you can&amp;#39;t get it to work at very low speed, chances that you have a bad module is very high.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues programming my nRF51822 for the first time</title><link>https://devzone.nordicsemi.com/thread/15301?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 16:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a634db4e-a890-4b20-973f-3ac3a3f6508f</guid><dc:creator>Gilson</dc:creator><description>&lt;p&gt;I tried lowering to 1Mhz and to 100KHz same problem.&lt;/p&gt;
&lt;h2&gt;Target info:&lt;/h2&gt;
&lt;p&gt;Device: nRF51822_xxAA
VTarget = 3.377V
State of Pins:
TCK: 0, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 0
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints:          2
JTAG speed: 1000 kHz&lt;/p&gt;
&lt;p&gt;Erase Failed!
Error: Flash Download failed  -  &amp;quot;Cortex-M0&amp;quot;&lt;/p&gt;
&lt;p&gt;And if I unplug power from the device I get:&lt;/p&gt;
&lt;h2&gt;JLink info:&lt;/h2&gt;
&lt;p&gt;DLL: V4.92 , compiled Sep 30 2014 09:33:42
Firmware: J-Link ARM V7 compiled Jun 20 2012 19:45:53
Hardware: V7.00
S/N : 157001765
OEM : IAR&lt;/p&gt;
&lt;p&gt;Error: Flash Download failed  -  Target DLL has been cancelled&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues programming my nRF51822 for the first time</title><link>https://devzone.nordicsemi.com/thread/15300?ContentTypeID=1</link><pubDate>Mon, 03 Nov 2014 15:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84ae7918-ad88-4745-9d10-ca16424b2635</guid><dc:creator>Vebj&amp;#248;rn</dc:creator><description>&lt;p&gt;9600 kHz? I think i read somewhere that the clock speed shouldn&amp;#39;t exceed 2 MHz.. maybe try lowering it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>