<?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 version: 9.7.3 fails nrftool success</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38484/nrfjprog-version-9-7-3-fails-nrftool-success</link><description>ruuvi is connected to ruuvi dev board to Nordic dev board connected to Mac book pro. 
 As usual 
 
 
 But 
 
 
 
 nrfjprog version: 9.7.3 
 JLinkARM.dll version: 6.33a 
 
 +++++++++ So. ++++++ 
 
 
 Email to iPhone, nRFtoolbox DFU and after many 
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Sep 2018 02:11:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38484/nrfjprog-version-9-7-3-fails-nrftool-success" /><item><title>RE: nrfjprog version: 9.7.3 fails nrftool success</title><link>https://devzone.nordicsemi.com/thread/149130?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 02:11:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51527347-b322-4a64-80bb-60de4841eb98</guid><dc:creator>dgerman</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you, yet again, for your continuing support.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1)I will look into the&amp;nbsp;&lt;/span&gt;Bootloader settings page.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) So the reason the application is not started is because of &amp;quot;Return false in CRC&amp;quot;. Perhaps the next update could revise the log level to&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;+&lt;/span&gt;&lt;span&gt;ERROR.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3) I think I now understand that the reason the app is not started has nothing to do with the memory messages. My efforts to REDUCE the &lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;+&lt;/span&gt;&lt;span&gt;memory my application takes were totally missguided. So I guess the SDH:WARNING: is not really WARNINGs ( and surely not CRITICAL).&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;+&lt;/span&gt;&lt;span&gt;Perhaps the next update could change the WARNING to INFO.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog version: 9.7.3 fails nrftool success</title><link>https://devzone.nordicsemi.com/thread/148955?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 08:32:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30c39175-a409-4956-af3c-8e9537ccbe4a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The bootloader logs made things a lot clearer.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s take the case where you have programmed/upgraded the application via DFU first. In the&amp;nbsp; logs you see that the&amp;nbsp;bootloader finds a valid application, and will subsequently go on to start the application. (It never initializes the SoftDevice, as it does not need any BLE connectivity):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;:INFO:Inside main
:INFO:In nrf_bootloader_init
:INFO:In real nrf_dfu_init
:INFO:running nrf_dfu_settings_init
:INFO:Enter nrf_dfu_continue
:INFO:Valid App
:INFO:Enter nrf_dfu_app_is_valid
:INFO:Return true. App was valid
:INFO:Enter nrf_dfu_app_is_valid&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then you have the other case in the log below, where you have programmed the application via nrfjprog. In this case, you can see that the app is supposed to be valid, but you also see &amp;quot;Return false in CRC&amp;quot;. This is because the bootloader settings does not contain a valid CRC of the application. This is something you have to generate and program, as I have discussed earlier in this thread. As this is missing, the bootloader will enter DFU mode instead of starting the application (as it should). This is the real issue here.&lt;/p&gt;
&lt;p&gt;Now you have the warnings that you were concerned about. They are printed after the bootloader has enabled the SoftDevice (needed to perform DFU over BLE), but clearly the bootloader RAM configuration is not optimal. To fix this issue and get rid of the warnings, simply adjust the RAM start address and size in the &lt;em&gt;bootloader&lt;/em&gt;. (However, as you can see, the current start address of 0x20002c00 is higher than the recommended, so there is strictly no need to change anything.)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;:INFO:Inside main
:INFO:In nrf_bootloader_init
:INFO:In real nrf_dfu_init
:INFO:running nrf_dfu_settings_init
:INFO:Enter nrf_dfu_continue
:INFO:Valid App
:INFO:Enter nrf_dfu_app_is_valid
:INFO:Return false in CRC
:INFO:In nrf_dfu_transports_init
:INFO:num transports: 1
:INFO:vector table: 0x00075000
SDH:INFO:sd_ble_enable: RAM START at 0x20002c00
SDH:WARNING:sd_ble_enable: app_ram_base should be adjusted to 0x20002798
SDH:WARNING:ram size should be adjusted to 0xd868
:INFO:After nrf_dfu_transports_init
:INFO:------- nrf_dfu_flash_init-------
:INFO:Waiting for events&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog version: 9.7.3 fails nrftool success</title><link>https://devzone.nordicsemi.com/thread/148857?ContentTypeID=1</link><pubDate>Fri, 14 Sep 2018 15:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8d56cab-7142-418f-8674-4543d17dd686</guid><dc:creator>dgerman</dc:creator><description>&lt;p&gt;Thanks for the additional information.&lt;br /&gt;I guess the real question is&lt;/p&gt;
&lt;p&gt;Why does&amp;nbsp;&lt;span&gt;softdevice_handler (?)&amp;nbsp;&lt;/span&gt;object with &amp;quot;app_ram_base should be adjusted to 0x20002798&amp;quot; when app is flashed with nrfutil BUT&amp;nbsp;when &lt;br /&gt;flashed with nrftoolbox there is no problem?&lt;/p&gt;
&lt;p&gt;Please see&lt;/p&gt;
&lt;p&gt;entire nrfjprog log (j-jink was not active) at &lt;a href="http://www.myBeacons.info/nrfjprog-180914.log"&gt;http://www.myBeacons.info/nrfjprog-180914.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;output from j-link after reset, go at&amp;nbsp;&lt;a href="http://www.mybeacons.info/nrf-log.180914.log"&gt;http://www.mybeacons.info/nrf-log.180914.log&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;output from j-link while DFU using nrftoolbox from&amp;nbsp;&lt;/span&gt;iPhone. &amp;nbsp;&lt;span&gt;&lt;a href="http://www.myBeacons.info//DFU.180914.log"&gt;www.myBeacons.info/.../DFU.180914.log&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Is there anything else I can provide you with&lt;/p&gt;
&lt;p&gt;Thank you for your continued help with this problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog version: 9.7.3 fails nrftool success</title><link>https://devzone.nordicsemi.com/thread/148830?ContentTypeID=1</link><pubDate>Fri, 14 Sep 2018 12:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6b51a74-50f5-43eb-93e2-6746198a1bb8</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="dgerman0"]I believe that with the options I have used, neither nrfjprog nor iOS nrftoolbox is programing the boot loader so the same Bootloader trying to launch the application.[/quote]
&lt;p&gt;Even if you have the exact same bootloader it will not launch the application if the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_bootloader.html?cp=4_0_1_3_5_0_0#lib_bootloader_settings_page"&gt;bootloader settings page&lt;/a&gt; is not valid. Note that this is &lt;em&gt;not&lt;/em&gt; part of the bootloader .hex file, as it depend on the application (hash). It will not be valid unless you either 1) generate a valid bootloader settings page using nrfutil and program it using e.g. nrfjprog or 2) upload the application via DFU.&lt;/p&gt;
&lt;p&gt;(I still don&amp;#39;t know if this is the problem you are seeing though, as you have not provided a detailed description on what fails and how.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog version: 9.7.3 fails nrftool success</title><link>https://devzone.nordicsemi.com/thread/148816?ContentTypeID=1</link><pubDate>Fri, 14 Sep 2018 12:12:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9e40637-dab0-4d19-bfa3-3dc56356a25d</guid><dc:creator>dgerman</dc:creator><description>&lt;p&gt;Thank you for your explanation.&lt;br /&gt;&lt;br /&gt;Sorry (can you revise the title to be nrftoolbox?)&lt;/p&gt;
&lt;p&gt;As I tried to describe in the original &amp;nbsp;statement:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;Email to iPhone, nRFtoolbox DFU&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Using &lt;span&gt;nRFtoolbox&amp;nbsp;&lt;/span&gt;for IOS using iPhone with the same hex file flash is successful and application works correctly.&lt;/p&gt;
&lt;p&gt;I believe that with the options I have used, neither nrfjprog nor iOS nrftoolbox is programing the boot loader so the same Bootloader trying to launch the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog version: 9.7.3 fails nrftool success</title><link>https://devzone.nordicsemi.com/thread/148732?ContentTypeID=1</link><pubDate>Fri, 14 Sep 2018 07:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80b6089c-232b-45c1-ba51-76a5bef2ef1e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I still lack enough details to understand what is actually going on here, but I will try to answer as best I can.&lt;/p&gt;
[quote user="dgerman0"]1) Why does flash via nrfjprog produce an unusable part?[/quote]
&lt;p&gt;You should not get an unusable part when you program with nrfjprog. That will write your hex files to flash exactly as they are. One thing you need to remember though, is that if you use a bootloader then you also have to&amp;nbsp;program a valid bootloader settings page. If not, the bootloader will not know that there is a valid application in place and it will not start the application. If you program the application via DFU the bootloader will write this for you, but if you want it to work out of the box you have to program it yourself (using e.g. nrfjprog). You can &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrfutil/nrfutil_settings_generate_display.html?cp=5_5_6"&gt;generate it using nrfutil&lt;/a&gt;.&lt;/p&gt;
[quote user="dgerman0"]PS It&amp;#39;s not a &amp;quot;WARNING&amp;quot; if the application is not executed,&lt;br /&gt;It&amp;#39;s CRITICAL![/quote]
&lt;p&gt;This warning does not have any effect if your application has configured a higher start address and lower size than specified in the printout. If your application uses a lower start address and/or larger size, then you will get problems. In any case you simply just have to adjust your linker/project settings according to the warning.&lt;/p&gt;
[quote user="dgerman0"]2) Why is there a difference when using nrftools succeeds?[/quote]
&lt;p&gt;What do you mean by &amp;quot;nrftools&amp;quot;?&amp;nbsp;Please be more specific in what you are doing when it fails and when it works. I cannot give a proper answer without knowing exactly what you are doing.&lt;/p&gt;
[quote user="dgerman0"]Do you need any additional information?[/quote]
&lt;p&gt;&amp;nbsp;Yes. Please explain &lt;em&gt;in detail&lt;/em&gt; what and how you are doing things, and how it does not work as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog version: 9.7.3 fails nrftool success</title><link>https://devzone.nordicsemi.com/thread/148689?ContentTypeID=1</link><pubDate>Thu, 13 Sep 2018 21:53:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c561b6e4-2a1d-4be1-a6b7-5c16eef3aa1a</guid><dc:creator>dgerman</dc:creator><description>&lt;p&gt;Sorry. The questions ARE:&lt;/p&gt;
&lt;p&gt;1) Why does flash via nrfjprog produce an unusable part?&lt;br /&gt;PS It&amp;#39;s not a &amp;quot;WARNING&amp;quot; if the application is not executed,&lt;br /&gt;It&amp;#39;s CRITICAL!&lt;/p&gt;
&lt;p&gt;2) Why is there a difference when using nrftools succeeds?&lt;/p&gt;
&lt;p&gt;Additional information: After removing the most recently added code and re compiling,&amp;nbsp;&lt;br /&gt;nrfjprog returns the same error. Regressing to a previously successfully flashed source and still nrfjprog fails. It was not until flash via nrftools DFU that I was able to use nrfjprog to flash the part!&lt;/p&gt;
&lt;p&gt;Do you need any additional information?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog version: 9.7.3 fails nrftool success</title><link>https://devzone.nordicsemi.com/thread/148625?ContentTypeID=1</link><pubDate>Thu, 13 Sep 2018 12:37:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13baaf5d-17a7-45a3-8258-433ed80d6a1b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What exactly is the question?&lt;/p&gt;
&lt;p&gt;If you are concerned about the&amp;nbsp;SDH:warning then this comes from the initialization of the SoftDevice, and is the method the SoftDevice use to let you know how much RAM is needed by the SoftDevice for the current configuration, and consequently how much RAM is available to the application. The warning will disappear if you adjust the RAM start and size in your projects/linker settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>