<?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>ST-LINK NRF51822 and OPENOCD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4984/st-link-nrf51822-and-openocd</link><description>Hello Everyone!
I want to program nrf51822. I&amp;#39;m using open OCD 0.9. I created openocd.cfg file: 
 source [find interface/stlink-v2.cfg]
transport select hla_swd
set WORKAREASIZE 0x4000
source [find target/nrf51.cfg]
 
 and started openocd-x64-0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 03 Jan 2015 19:10:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4984/st-link-nrf51822-and-openocd" /><item><title>RE: ST-LINK NRF51822 and OPENOCD</title><link>https://devzone.nordicsemi.com/thread/17571?ContentTypeID=1</link><pubDate>Sat, 03 Jan 2015 19:10:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32ec0994-6201-403f-9f6f-3cc288f4d477</guid><dc:creator>bishop</dc:creator><description>&lt;p&gt;I resolved this issue!
I prompt this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt; nrf51 mass_erase
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and after it programming done well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST-LINK NRF51822 and OPENOCD</title><link>https://devzone.nordicsemi.com/thread/17570?ContentTypeID=1</link><pubDate>Sat, 03 Jan 2015 18:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bea806e3-7164-4f9b-8317-bcd19e2c49da</guid><dc:creator>bishop</dc:creator><description>&lt;p&gt;Thank you for answer, but this solution is not works.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;program blinky_gcc_xxaa.hex verify&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre&gt;&lt;code&gt;target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x00012b98 msp: 0x20001c48
** Programming Started **
auto erase enabled
nRF51822-QFAA(build code: G0) 256kB Flash
failed erasing sectors 0 to 2
** Programming Failed **
shutdown command invoked
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST-LINK NRF51822 and OPENOCD</title><link>https://devzone.nordicsemi.com/thread/17569?ContentTypeID=1</link><pubDate>Sat, 03 Jan 2015 18:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70287c7d-274d-4dd6-8869-074074f8b265</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;try using the &amp;quot;program&amp;quot; command instead.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;program blinky_gcc_xxaa.hex verify 
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>