<?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>nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96042/nrfjprog-exe-with-bin-files</link><description>Hi, I&amp;#39;m trying to program my nrf52811 by using nrfjprog.exe with a bin file. It seems to work with a .hex but when I run the .hex through srecord to create a .bin and using nrfjprog.exe with .bin file, the device gets flashed but doesn&amp;#39;t actually function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Feb 2023 19:39:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96042/nrfjprog-exe-with-bin-files" /><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/408989?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 19:39:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77797e66-8ae4-44ab-b1ed-0e771d8fa5ea</guid><dc:creator>BMW</dc:creator><description>&lt;p&gt;But looking through my hexfile I don&amp;#39;t have anything being written to that address. The second to last line of my file has address value d640, and the extended address is 0002, so my confusion is about how it could be writing to UICR when the file ends within flash&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406941?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 22:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6373a9e4-e3af-4a1d-aa7f-d948c3c00c58</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;If the code overflows the available flash then changing file types won&amp;#39;t help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406940?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 21:58:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fc6ba33-ead8-4004-b7e4-8076dd7a5ea6</guid><dc:creator>BMW</dc:creator><description>&lt;p&gt;I would but the current hex file is too large for the size of the flash, which is why I was trying to use .bin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406939?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 21:56:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba870e2-edc7-4ae0-8f28-8ba68ad90bac</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Bin files cannot have &amp;quot;holes&amp;quot; and there is a huuuge gap between end of flash and UICR. &lt;/p&gt;
&lt;p&gt;Only hex files support non-continous address space. I strongly recommend using them for this reason here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406931?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 19:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3545547b-029d-4566-9938-a83744489104</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;That setting that enables the reset pin lives in the UICR, starting at 0x10001200.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406923?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 17:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:226d8fa2-ccf2-46be-adf7-cde73d49fdcf</guid><dc:creator>BMW</dc:creator><description>&lt;p&gt;I&amp;#39;m a bit confused now. My hexfile that works only has data that writes up to what you were saying 0002d740, so how is it that it has data that is writing to 10001000? Also I don&amp;#39;t think we have data writing to UICR for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406920?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 16:27:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e852b9f-211d-4b95-af69-2fc62cb92eba</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;Bin files don&amp;#39;t contain any addresses like hex files do. So your SoftDevice and application start from 0x00 and contain data up to somewhere like 0x2d000. But the UICR starts at 0x10001000. So if you have UICR settings then now you get a bunch of padding between the end of your real data and the UICR. A quick test here spits out a 256MB bin file when I take one of your UICR dumps and add data at address 0x00. If you want to use bins though you could have two files: one for the SD + app and another for the UICR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406879?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 14:27:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa9c9492-4f43-43bb-9afb-2dc3dde00b2e</guid><dc:creator>BMW</dc:creator><description>&lt;p&gt;Yes just did it again and line 34 definitely has the 0x1500000015000000. Using srecord to convert my hex to bin then back and using the new hex seems to fail. Readuicr returns ffff even though compare the 2 hexfiles the new one is just adding lines with 0 for data to fill in the addresses with no data. If you already have a script I could run it on my hex and compare the bins, or maybe I need an extra parameter when running srecord to have it create to correct bin file? What do you mean by the offset of the UICR? My hexfile has both the softdevice and our application so it should be writing from 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406758?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 23:03:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd456d4a-5618-40ff-9589-83a3b2b1c35c</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;Did you do a sanity check by programming the original hex and then reading the mem? I&amp;#39;m not familiar with Srecord but I could probably show you how to do it with python. We usually work with hex files with the nRF52 series due to the offset of the UICR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406750?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 21:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dea7095-4b1e-4503-a8fd-239e753d54b0</guid><dc:creator>BMW</dc:creator><description>&lt;p&gt;Both methods of flashing seem to still give 0xFFFFFFFF on memrd.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using Srecord to convert the .hex to a .bin in case that info helps. The command I use is:&lt;/p&gt;
&lt;p&gt;srec_cat.exe ble-v2-5.hex -Intel -o ble-v2-5.bin -binary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406749?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 21:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e52e6b5-8cde-41a6-9029-9549cb92815d</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;If you forgot to recover between steps then that could potentially make the two dumps look equal when they really aren&amp;#39;t. Now that you know what you&amp;#39;re looking for though I&amp;#39;d just recover the chip, flash the bin, and then read that UICR setting with &amp;quot;nrfjprog --memrd 0x10001200&amp;quot; (the result shouldn&amp;#39;t be 0xffffffff). If you think it&amp;#39;s an nrfjprog issue then you can recover and then use JLink.exe to program the bin and see if that makes a difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406720?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 15:46:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a467a0ed-7c08-43db-a2c1-48e22d1f7caf</guid><dc:creator>BMW</dc:creator><description>&lt;p&gt;I just did this again and the files look the same. I must&amp;#39;ve forgotten to run the recover when I flashed the other file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406663?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 13:16:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2ca210e-249e-4825-b388-b39c476e02e2</guid><dc:creator>BMW</dc:creator><description>&lt;p&gt;Ah ok. Do you know how I would fix this? Was it a problem with the creation of the bin file or flashing maybe?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406559?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 22:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13a0d814-4bd6-4e9b-a184-9a58a5b228c8</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;Yes, that bin file is missing the UICR values that &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52811%2Fuicr.html&amp;amp;cp=4_4_0_3_4_0_4&amp;amp;anchor=register.PSELRESET-0-1"&gt;enable the GPIO pin reset&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406556?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 21:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6877364-84fc-402e-958d-52b4cc3134ea</guid><dc:creator>BMW</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_bin.hex"&gt;devzone.nordicsemi.com/.../ble_5F00_bin.hex&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_hex.hex"&gt;devzone.nordicsemi.com/.../ble_5F00_hex.hex&lt;/a&gt;I believe I&amp;#39;ve done the UICR correctly I got these files. It seems that line 34 is not matching when diffed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406552?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 21:31:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa40eca8-7e5d-4837-9134-49fc75c73cda</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;Does the hex file have any UICR values in it? I&amp;#39;d probably start by performing an nrfjprog --recover, programming the hex file, and then using nrfjprog --readuicr to dump the UICR. Then recover the chip again and repeat the process using the bin file. I bet the diff between the two UICR dumps will show the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406551?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 20:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d75e73a7-a4e5-4e7b-9279-ef994fd75aa4</guid><dc:creator>BMW</dc:creator><description>&lt;p&gt;That may be true for an older version but my version is showing that it accepts multiple filetypes including bin files.&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1674680329090v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog.exe with bin files</title><link>https://devzone.nordicsemi.com/thread/406550?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 20:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3baf6931-5347-4176-851a-ba13aa0d5ea7</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog.exe only support hex file. See&amp;nbsp;&lt;a title="nrfjprog commands" href="https://infocenter.nordicsemi.com/topic/ug_nrf_cltools/UG/cltools/nrf_nrfjprogexe_reference.html?cp=10_1_3_0"&gt;nrfjprog commands&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>