<?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>Openocd promgram NRF51822 with ST link v2 mini</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13869/openocd-promgram-nrf51822-with-st-link-v2-mini</link><description>Hi, I got a nrf51822 board and a st link v2 mini as shown below. I have been trying to connect the nrf51822 board so that i can upload code to the board by following this post link text . However, i got no luck till now. the openocd showed an error cannot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Dec 2018 11:46:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13869/openocd-promgram-nrf51822-with-st-link-v2-mini" /><item><title>RE: Openocd promgram NRF51822 with ST link v2 mini</title><link>https://devzone.nordicsemi.com/thread/161843?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 11:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0484a0f-1491-4033-8aa7-ab5322eeb4ce</guid><dc:creator>Harsh</dc:creator><description>&lt;p&gt;If its not getting sufficient power from st-link you will get ths kind of errors. Take a multi meter and measure voltage across Vcc and ground (For nrf51822 Ideal votage will be 3.3v )&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openocd promgram NRF51822 with ST link v2 mini</title><link>https://devzone.nordicsemi.com/thread/52983?ContentTypeID=1</link><pubDate>Tue, 17 May 2016 11:04:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e056f3cc-5c82-41ca-b64c-a83c78a0a471</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;Yes, each Nucleo board has an on-board St-Link. IMO the error is not due to your hardware... You could also buy an nRF52 dev kit which comes with an on-board J-Link (Segger tools).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openocd promgram NRF51822 with ST link v2 mini</title><link>https://devzone.nordicsemi.com/thread/52982?ContentTypeID=1</link><pubDate>Tue, 17 May 2016 10:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f4c30b9-adac-40c4-91c8-5e60d4fcbc40</guid><dc:creator>HW</dc:creator><description>&lt;p&gt;Hi, metch. No luck for both. I am think to use another board to try. &lt;a href="http://my.element14.com/stmicroelectronics/nucleo-f410rb/dev-board-stm32f410rb-nucleo-64/dp/2517896"&gt;my.element14.com/.../2517896&lt;/a&gt; What do you think about this one? would it work? it support st link v2-1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openocd promgram NRF51822 with ST link v2 mini</title><link>https://devzone.nordicsemi.com/thread/52981?ContentTypeID=1</link><pubDate>Mon, 16 May 2016 12:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5acd3745-7d7c-488a-811c-30339c03ce82</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;Which OS do you use ? You use OpenOCD in console mode ? Which command do you use to detect the nRF51 chip ?
They are many tutorials to program the nRF51 with OpenOCD and an STLink probe, see these links for instance:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://exploreembedded.com/wiki/Programming_nRF51822_with_STlink_on_Windows"&gt;exploreembedded.com/.../Programming_nRF51822_with_STlink_on_Windows&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/question/70314/program-bluetooth-for-nrf51822-yunjia-board-with-stlink-v2/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You probably have a driver or connection issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openocd promgram NRF51822 with ST link v2 mini</title><link>https://devzone.nordicsemi.com/thread/52980?ContentTypeID=1</link><pubDate>Mon, 16 May 2016 10:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34e2d2d8-4f00-4696-a3c1-08fa626ed922</guid><dc:creator>HW</dc:creator><description>&lt;p&gt;HI, metch. Thanks for the guide. Pardon me for not stating clearly. Yes, i connected the SWDIO(P2 pin5) and SWDCLK(P2 pin6), not the P0.17 and P0.19. However, the openocd still couldn&amp;#39;t connect to nrf51822 board. Any more idea?
Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openocd promgram NRF51822 with ST link v2 mini</title><link>https://devzone.nordicsemi.com/thread/52979?ContentTypeID=1</link><pubDate>Sun, 15 May 2016 16:11:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5878258f-48d8-4fc7-beaa-c8c8cb6f26df</guid><dc:creator>Christopher</dc:creator><description>&lt;p&gt;You can use ST-Link probes to program the nRF51 using OpenOCD. You probably have a wrong connection to the nRF51 board. You have to connect the following 4 lines: &lt;code&gt;SWDIO&lt;/code&gt;, &lt;code&gt;SWCLK&lt;/code&gt;, &lt;code&gt;VCC&lt;/code&gt; and &lt;code&gt;GND&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Have a look at the schematic of the &lt;code&gt;Core51822&lt;/code&gt; board:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/swdclock.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;You must connect SWDIO and SWDCLK and not P0.17 and P0.19. The full schematic is available here: &lt;a href="http://www.waveshare.com/w/upload/5/57/Core51822-Schematic.pdf"&gt;www.waveshare.com/.../Core51822-Schematic.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is hard to help you. Please provide more details on the environment you use (OS, IDE, tools, etc.). The article you mention use openocd 0.8.0. This is an old version, you should use openocd 0.9.0 or 0.10.0-dev.&lt;/p&gt;
&lt;p&gt;They are many posts about OpenOCD and nrf51 programming, please have a look at these posts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>