<?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>programing softdevice and firmware with nrfjprog</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44733/programing-softdevice-and-firmware-with-nrfjprog</link><description>Hi, 
 I just started working with Nordic chips so I apologize if I am missing something obvious here 
 I am using a custom board that I designed containing a nrf52832 module. I am uploading programs to it through the command line using a jlink (program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Apr 2019 07:47:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44733/programing-softdevice-and-firmware-with-nrfjprog" /><item><title>RE: programing softdevice and firmware with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/183004?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 07:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:929f6a68-f167-45c9-b9be-c35a1309dfdc</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Glad to hear you found the solution!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: programing softdevice and firmware with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/181956?ContentTypeID=1</link><pubDate>Sun, 14 Apr 2019 05:48:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00c787e5-0aa9-48e3-b7f7-e0e83964c93a</guid><dc:creator>Duaa</dc:creator><description>&lt;p&gt;Thank you&amp;nbsp;for your help. I was trying with the SDK examples which did not work for me at first. Upon looking further, turns out I had the wrong value of LF crystal capacitors so my LF crystal was not working at all. I switched the softdevice clock source to the internal&amp;nbsp;&lt;span&gt;oscillator and changed the calibration settings accordingly. Everything works fine after that.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for pointing out that the SDK examples should work out of the box. Otherwise, I would have spent way longer than I should have&amp;nbsp;looking into the software without questioning my hardware.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: programing softdevice and firmware with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/181955?ContentTypeID=1</link><pubDate>Sun, 14 Apr 2019 05:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d216a4f3-726e-455d-b78b-20f21e46dbb7</guid><dc:creator>Duaa</dc:creator><description>&lt;p&gt;Thank you so much for the link. It helped me understand&amp;nbsp;a lot about memory allocation. Turns out I was erasing the right area all along. It was a hardware issue that caused my Bluetooth module to not advertise which made me believe I was programming it wrong at first.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: programing softdevice and firmware with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/175634?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 12:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eabb137a-9a9e-491a-b9ad-dab5f6fd9ab2</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="Duaa"]What does work is&lt;em&gt; &amp;lt;nrfjprog --family NRF52 --program ble_app.hex --verify --chiperase&amp;gt; , no Bluetooth signal detected through&amp;nbsp;&lt;/em&gt;[/quote]
&lt;p&gt;Have you verified that the module does work?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Duaa"]Is there a special way to use&amp;nbsp;&lt;span&gt;--eraseall&amp;nbsp;to program the firmware?&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;Nope, this is correct from what you describe.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you please try the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;nrfjprog&amp;nbsp;--eraseall&lt;/li&gt;
&lt;li&gt;Program &amp;lt;..\[YOUR SDK]\components\softdevice\s132\hex\s132_nrf52_X.X.X_softdevice.hex&amp;gt;&lt;/li&gt;
&lt;li&gt;Build and Program&amp;nbsp;&lt;span&gt;&amp;lt;..\[YOUR SDK]\&lt;/span&gt;examples\ble_peripheral\ble_app_uart\pca10040\s132\[YOUR COMPILER]\*.hex&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp; Using one of the examples from the SDK should work out of the box. What version of the SoftDevice are you using?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: programing softdevice and firmware with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/175619?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 12:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4393ec3d-2e6f-4d98-8450-941d7d009aaa</guid><dc:creator>ArtemS</dc:creator><description>&lt;p&gt;Perhaps application file that you&amp;#39;re trying to upload was build to flash into wrong memory area, that overlaps with Softdevice.&amp;nbsp;&lt;br /&gt;It should be like this:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk52.v0.9.0/ble_app_dfu_memory_52.svg"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk52.v0.9.0/ble_app_dfu_memory_52.svg&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can check in Softdevice description its memory boundaries and rebuild application using these memory settings.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You may find this post useful on that matter:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/adjustment-of-ram-and-flash-memory&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: programing softdevice and firmware with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/175612?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 11:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4df244fc-5d0e-479f-8768-0bf66f45ec04</guid><dc:creator>Duaa</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The sequence I&amp;#39;ve been using so far has been:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;First, erase everything:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;nrfjprog&lt;em&gt; --&lt;/em&gt;eraseall&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Then program the softdevice:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;nrfjprog&lt;em&gt; --family NRF52 --program softdevice.hex --&lt;/em&gt;chiperase&lt;em&gt; --verify&amp;gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Then the firmware:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;nrfjprog&lt;em&gt; --family NRF52 --program ble_app.hex --verify &amp;gt; (does not work, The area to write is not erased)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I tried&amp;nbsp;&lt;span&gt;&amp;lt;&lt;/span&gt;nrfjprog&lt;em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;--family NRF52 --program ble_app.hex --verify --eraseall&amp;gt;&amp;nbsp; (does not work,&amp;nbsp;ERROR: Two arguments were provided that cannot be combined.)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;What does work is&lt;em&gt; &amp;lt;nrfjprog --family NRF52 --program ble_app.hex --verify --chiperase&amp;gt; , no Bluetooth signal detected through&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Then:&amp;nbsp;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;lt;nrfjprog --family NRF52 --reset&amp;gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a special way to use&amp;nbsp;&lt;span&gt;--eraseall&amp;nbsp;to program the firmware?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: programing softdevice and firmware with nrfjprog</title><link>https://devzone.nordicsemi.com/thread/175609?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 11:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5cddd9a-4c00-4284-8faa-a5e76bbb3048</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Have you tried using --eraseall?&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Oeyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>