<?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>Download &amp;quot;SPM&amp;quot; and &amp;quot;http_update_ota&amp;quot; separately</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48420/download-spm-and-http_update_ota-separately</link><description>Hi, 
 I want to load both &amp;quot;SPM&amp;quot; and &amp;quot;http_update_ota&amp;quot; code separately to the nRF9160. 
 For that as suggested in &amp;quot; http://developer.nordicsemi.com/nRF_Connect_SDK/doc/0.4.0/nrf/samples/nrf9160/spm/README.html &amp;quot; 
 i changed &amp;quot;CONFIG_SPM=n&amp;quot;. 
 After this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jul 2019 08:26:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48420/download-spm-and-http_update_ota-separately" /><item><title>RE: Download "SPM" and "http_update_ota" separately</title><link>https://devzone.nordicsemi.com/thread/195861?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 08:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7edd7210-47ed-40c3-b941-9eafb55a27e9</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hello, I am sorry for the late reply. I have been gone for the last days. Have you been able to figure this out?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download "SPM" and "http_update_ota" separately</title><link>https://devzone.nordicsemi.com/thread/192817?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 05:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8e06230-959e-43ee-8690-eb9a43092870</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I followed the steps you have mentioned.&lt;/p&gt;
&lt;p&gt;I am getting error when &amp;quot;spm&amp;quot; hex file and &amp;quot;http_update_ota&amp;quot; hex file merges during compilation&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Following are log of compilation.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Combining &amp;lsquo;zephyr/merged.hex&amp;rsquo;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; Merged C:/Users/MTdeveloper01/Desktop/Smitesh/OTA/asset_tracker/ncs/spm/build_nrf9160_pca10090/zephyr/zephyr.hex&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; Merged C:/Users/MTdeveloper01/Desktop/Smitesh/OTA/asset_tracker/ncs/asset_tracker/build_nrf9160_pca10090ns/zephyr/zephyr.hex&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; Traceback (most recent call last):&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; File &amp;quot;C:/Users/MTdeveloper01/Desktop/Smitesh/OTA/asset_tracker/ncs/zephyr/scripts/mergehex.py&amp;quot;, line 28, in merge_hex_files&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; ih.merge(to_merge)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; File &amp;quot;C:\Python37\lib\site-packages\intelhex\__init__.py&amp;quot;, line 859, in merge&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; &amp;#39;Data overlapped at address 0x%X&amp;#39; % i)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; intelhex.AddressOverlapError: Data overlapped at address 0x0&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; During handling of the above exception, another exception occurred:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; Traceback (most recent call last):&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; File &amp;quot;C:/Users/MTdeveloper01/Desktop/Smitesh/OTA/asset_tracker/ncs/zephyr/scripts/mergehex.py&amp;quot;, line 55, in &amp;lt;module&amp;gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; main()&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; File &amp;quot;C:/Users/MTdeveloper01/Desktop/Smitesh/OTA/asset_tracker/ncs/zephyr/scripts/mergehex.py&amp;quot;, line 51, in main&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; merge_hex_files(args.output, args.input_files)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; File &amp;quot;C:/Users/MTdeveloper01/Desktop/Smitesh/OTA/asset_tracker/ncs/zephyr/scripts/mergehex.py&amp;quot;, line 30, in merge_hex_files&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; raise AddressOverlapError(&amp;quot;{} has merge issues&amp;quot;.format(hex_file_path))&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1&amp;gt; intelhex.AddressOverlapError: C:/Users/MTdeveloper01/Desktop/Smitesh/OTA/asset_tracker/ncs/asset_tracker/build_nrf9160_pca10090ns/mcuboot/zephyr/zephyr.hex has merge issues&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Build failed&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;khodidas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download "SPM" and "http_update_ota" separately</title><link>https://devzone.nordicsemi.com/thread/192754?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 14:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9badd51-d6c5-4875-92bf-fd9feee09809</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I was mixing the mcuboot and spm in my last answer, and referred to the wrong hex files. My apologies for that.&lt;/p&gt;
&lt;p&gt;Could you try this approach to compile the SPM and&amp;nbsp;&lt;span&gt;http_update_ota separately:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Build the SPM application in ..&lt;em&gt;ncs\nrf\samples\nrf9160\spm&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Add the lines&amp;nbsp;shown below&amp;nbsp; to ..&lt;em&gt;http_application_update\prj.conf(&amp;nbsp;&lt;/em&gt;&lt;/span&gt;&lt;span&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;Change &amp;lt;sourcecode_root&amp;gt; appropriately)&lt;em&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SPM_BUILD_STRATEGY_USE_HEX_FILE=y
CONFIG_SPM_HEX_FILE=&amp;quot;&amp;lt;sourcecode_root&amp;gt;/ncs/nrf/samples/nrf9160/spm/build_nrf9160_pca10090/zephyr/zephyr.hex&amp;quot;
&lt;/pre&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Build the&amp;nbsp;http_application_update application with board set as &lt;span&gt;nrf9160_pca10090&lt;/span&gt;&lt;strong&gt;ns&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download "SPM" and "http_update_ota" separately</title><link>https://devzone.nordicsemi.com/thread/192606?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 09:21:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48346ddb-60a9-4798-97c3-5597d5e555c3</guid><dc:creator>khodidas</dc:creator><description>[quote userid="72692" url="~/f/nordic-q-a/48420/download-spm-and-http_update_ota-separately/192170"]The http_applic.. is located in&amp;nbsp;http_application_update/build_nrf9160_pca10090ns/zephyr/signed.hex and the SPM is located in&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;em&gt;http_application_update/build_nrf9160_pca10090ns/mcuboot/zephyr/zephyr.hex.&lt;/em&gt;[/quote]
&lt;p&gt;I tried this.&lt;/p&gt;
&lt;p&gt;It works. But can you try compiling SPM and http_update_ota separately and let me know which&amp;nbsp;&lt;/p&gt;
&lt;p&gt;hex file i should use to make spm and http_update_ota work ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download "SPM" and "http_update_ota" separately</title><link>https://devzone.nordicsemi.com/thread/192170?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 20:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09b95d8c-8cde-40d7-b86d-308c5aef212f</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I assume you are referring to the application &lt;em&gt;&amp;quot;http_application_update&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I tried build and flash the SPM and the application separately, but was not able to for some reason. However, I was able to to make it work&amp;nbsp;by building the main application as Non-Secure (by setting board to nrf9160_pca10090&lt;strong&gt;ns&lt;/strong&gt;). Then it will build the two applications, the SPM and the http_appl.. before merging them together.&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;The lines below are not correct, I mixed the mcuboot with the spm&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The http_applic.. is located in&amp;nbsp;http_application_update/build_nrf9160_pca10090ns/zephyr/signed.hex and the SPM is located in&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; http_application_update/build_nrf9160_pca10090ns/mcuboot/zephyr/zephyr.hex.&lt;/em&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;You can then flash them separately using SES, nrfjprog or the nRF Connect Programmer app.&lt;/p&gt;
&lt;p&gt;If this is not sufficient, please tell me and I will look more into it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>