<?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 and the NRF not flashing complete HEX file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21487/openocd-and-the-nrf-not-flashing-complete-hex-file</link><description>I&amp;#39;m trying to flash a nRF518122 with a St-Link V2 programmer via Open OCD.
The process seems to goes smooth, but comparing the number of written bytes to the actual HEX size are not the same (about a third) and (of course) the nRF51 does nothing. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Apr 2017 12:13:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21487/openocd-and-the-nrf-not-flashing-complete-hex-file" /><item><title>RE: OpenOCD and the NRF not flashing complete HEX file</title><link>https://devzone.nordicsemi.com/thread/84312?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 12:13:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7750c18d-1bef-4f35-8bb3-b3272e5c2a3d</guid><dc:creator>Ronaldo Pace</dc:creator><description>&lt;p&gt;and I thought I was going crazy. Thanks a lot. Now I&amp;#39;m using the generated .bin file to flash (instead of the hex) and managed to call &lt;code&gt;flash read_bank&lt;/code&gt; and md5 the two. They match. I&amp;#39;m in talks to the hardware guy as the problem seems to be on hardware. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenOCD and the NRF not flashing complete HEX file</title><link>https://devzone.nordicsemi.com/thread/84311?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 10:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74705cf8-8f4a-41e8-ab14-8e42d7032c20</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Well your file is likely only 47164 bytes long. The size of the HEX file and the size of the actual binary it represent of course are radically different because HEX files are an ascii encoded format. The file transferred is the binary file. HEX files are about 2.5-3 times the size of the underlying binary.&lt;/p&gt;
&lt;p&gt;Look at the map file created, that will tell you how big the application actually is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>