<?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>reading .hex file from nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39422/reading-hex-file-from-nrf51822</link><description>hi, How can I read the .hex file in nrf51822? 
 i am useing stlink v2 and openocd. My platform is arch linux. 
 Any document or tutorial about that? 
 Thx.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Oct 2018 11:39:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39422/reading-hex-file-from-nrf51822" /><item><title>RE: reading .hex file from nrf51822</title><link>https://devzone.nordicsemi.com/thread/152853?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 11:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ae3ea44-a35a-482a-896e-7df778893760</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would recommend that you get a Segger J-Link debugger. With that you can read content of flash using &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_nrfjprogexe_reference.html?cp=5_1_3_0"&gt;nrfjprog&lt;/a&gt; and the command &amp;#39;--readcode&amp;#39;. I&amp;#39;m sure you can do this with OpenOCD as well, but this is not something we support and we do not provide any tutorials on this.&lt;/p&gt;
&lt;p&gt;Maybe someone in the community can give you the correct procedure to do this.&lt;/p&gt;
&lt;p&gt;Note that it is possible to set &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.1.pdf#page=25"&gt;readback protection&lt;/a&gt; in the chip, preventing you from reading the FW.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>