<?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>nrf51822 openOCD GDB open debugger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25239/nrf51822-openocd-gdb-open-debugger</link><description>I am able to flash/program nrf51822 with openOCD on Raspberry-pi and STLink-v2 
 but when I invoke Open On-Chip Debugger on telnet to write on UICR register, it don&amp;#39;t give error but when I read it back, i don&amp;#39;t see any change in register value. 
 Open</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Sep 2017 12:14:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25239/nrf51822-openocd-gdb-open-debugger" /><item><title>RE: nrf51822 openOCD GDB open debugger</title><link>https://devzone.nordicsemi.com/thread/99442?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 12:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7da4ded3-c565-44fd-be61-79413b8ade9b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I believe &lt;a href="https://devzone.nordicsemi.com/question/23842/st-link-nrf51822-and-openocd/"&gt;this&lt;/a&gt; user managed to flash the UICR registers with OpenOCD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 openOCD GDB open debugger</title><link>https://devzone.nordicsemi.com/thread/99441?ContentTypeID=1</link><pubDate>Sat, 16 Sep 2017 08:32:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91aaace8-c27f-4d86-9efc-deb964763812</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;UICR is not a normal register, but handled like FLASH. Look into the NVMC chapter in the reference manual.&lt;/p&gt;
&lt;p&gt;The nrfjprog knows how to handle UICR, but your low level OpenOCD commands only support direct writes - this means you would need to do the unlocking (and erasing) manually via NVMC registers.&lt;/p&gt;
&lt;p&gt;Alternatively you could put the UICR content into your &lt;code&gt;.elf&lt;/code&gt; or &lt;code&gt;.hex&lt;/code&gt; file - OpenOCD might be able to write to UICR while flashing the firmware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>