<?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>Stuck after FOTA nrf9160 application from sdk 1.2.0 to sdk 1.3.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63073/stuck-after-fota-nrf9160-application-from-sdk-1-2-0-to-sdk-1-3-0</link><description>Hi, 
 Our device ( nrf9160) is running application ( non secur) built with sdk 1.2.0 (toolchain v4.42) , we&amp;#39;ve updated it using FOTA download to the application built with sdk 1.3.0 ( with latest toolchain v4.52), but after downloading, it reboots and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jun 2020 06:29:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63073/stuck-after-fota-nrf9160-application-from-sdk-1-2-0-to-sdk-1-3-0" /><item><title>RE: Stuck after FOTA nrf9160 application from sdk 1.2.0 to sdk 1.3.0</title><link>https://devzone.nordicsemi.com/thread/257270?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2020 06:29:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdaa45bf-20e2-4b19-b91c-698bdfde6300</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;When building your project, a script runs, which places all images into the flash at fitting places. The bootloader is then given that map of the flash and uses it to know where to jump to. Likewise, the application uses the partition map to know where to store update images, and where to write to the bootloader that the image is OK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, it&amp;#39;s important that the image you update has the same partition map as the image you upgrade from and as the bootloader. However. as the partition map is generated for each build, there might be changes between two versions. So you&amp;#39;ll have to extract the partition map from the build that is flashed onto the device so that the same map can be used in later builds.&lt;/p&gt;
&lt;p&gt;This can be done by copying the &lt;em&gt;partitions.yml&amp;nbsp;&lt;/em&gt;file into the project folder and renaming it to pm_static.yml.&lt;/p&gt;
&lt;p&gt;_________________________________________________________________________________________&lt;/p&gt;
&lt;p&gt;To check if the problem is with the image or the FOTA process, could you do the following test:&lt;/p&gt;
&lt;p&gt;1. Flash the program as normal.&lt;/p&gt;
&lt;p&gt;2. In a command line, navigate to the build folder and run the following commands (This will write the update image to the secondary_image sot in Flash):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cd zephyr
nrfjprog --program app_moved_test_update.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;3. Reset the device.&lt;/p&gt;
&lt;p&gt;You should now see the MCUBoot trying to update the firmware.&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>