<?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>nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111664/nrf9160-always-recovers-when-updating-applications</link><description>Hello, 
 I used two samples, application_update and SLM, to test and try updating the app from application_update to SLM. I first downloaded the firmware of application_update v1 version to 9160, and the LED 1 on 9160dk lit up to indicate that the v1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jun 2024 03:05:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111664/nrf9160-always-recovers-when-updating-applications" /><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487818?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 03:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2942a185-16be-43e3-82ee-fe0a74880903</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Hi dejan,&lt;/p&gt;
&lt;p&gt;I reinstalled NCS for testing, and everything went smoothly this time. If you are upgrading from app_update to SLM, you need to copy the pm_static.yml file of app_update to SLM to ensure that the partitions are the same. If you are upgrading from the old SLM to the new SLM, there is no need to adjust the partitions. Thank you for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487632?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 07:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8152d49f-ef86-4b08-8001-483f45f685f4</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="llly"]When I have time, I will download NCS again to ensure that there are no issues with the SLM itself, and then see if I can find any more clues[/quote]
&lt;p&gt;Fresh installation of NCS might help. You can follow&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html"&gt;NCS installation&lt;/a&gt;&amp;nbsp;guide.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487422?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 07:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:533b09b8-3097-4da6-b0e3-4f9f8943dc25</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;I was just starting to learn about 9160 and have been using version 2.6.1 since the beginning&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487421?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 06:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6256274a-1a4e-48e6-86f0-4687d94c1cc8</guid><dc:creator>JyriLehtinen</dc:creator><description>&lt;p&gt;By the way, are the samples from the same SDK version as you&amp;#39;re currently using? For example, you initially generated them with v2.5.0 and have now switched to v2.6.1? Sometimes the libraries have changed and require updates in the source code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487419?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 06:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05fc417c-ddf2-46f0-a72d-134027e02a23</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Thank you for your testing. When I have time, I will download NCS again to ensure that there are no issues with the SLM itself, and then see if I can find any more clues&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487418?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 06:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d373d5ef-caa2-48d5-bb48-385609ba42bc</guid><dc:creator>JyriLehtinen</dc:creator><description>&lt;p&gt;I just tested opening a fresh serial_lte_modem and application_update examples (SDK 2.6.1), and generated the build configurations for nRF9160-dk.&lt;/p&gt;
&lt;p&gt;I copied the the partitions.yml from application_update as pm_static.yml for the slm and did a pristine build. No errors. Below is my &lt;strong&gt;pm_static.yml&lt;/strong&gt;. Seems to be identical to yours, though at lines 36-38 the order is different (Windows and Linux output the items in different orders, but i don&amp;#39;t think it matters, compiles with both).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;EMPTY_0:
  address: 0xc000
  end_address: 0x10000
  placement:
    before:
    - mcuboot_pad
  region: flash_primary
  size: 0x4000
app:
  address: 0x18000
  end_address: 0x88000
  region: flash_primary
  size: 0x70000
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0x10000
  end_address: 0x10200
  placement:
    align:
      start: 0x8000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0x10000
  end_address: 0x88000
  orig_span: &amp;amp;id001
  - tfm
  - app
  - mcuboot_pad
  region: flash_primary
  sharers: 0x1
  size: 0x78000
  span: *id001
mcuboot_primary_app:
  address: 0x10200
  end_address: 0x88000
  orig_span: &amp;amp;id002
  - app
  - tfm
  region: flash_primary
  size: 0x77e00
  span: *id002
mcuboot_secondary:
  address: 0x88000
  end_address: 0x100000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x8000
    align_next: 0x8000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x78000
mcuboot_sram:
  address: 0x20000000
  end_address: 0x20008000
  orig_span: &amp;amp;id003
  - tfm_sram
  region: sram_primary
  size: 0x8000
  span: *id003
nrf_modem_lib_ctrl:
  address: 0x20008000
  end_address: 0x200084e8
  inside:
  - sram_nonsecure
  placement:
    after:
    - tfm_sram
    - start
  region: sram_primary
  size: 0x4e8
nrf_modem_lib_rx:
  address: 0x2000a568
  end_address: 0x2000c568
  inside:
  - sram_nonsecure
  placement:
    after:
    - nrf_modem_lib_tx
  region: sram_primary
  size: 0x2000
nrf_modem_lib_sram:
  address: 0x20008000
  end_address: 0x2000c568
  orig_span: &amp;amp;id004
  - nrf_modem_lib_ctrl
  - nrf_modem_lib_tx
  - nrf_modem_lib_rx
  region: sram_primary
  size: 0x4568
  span: *id004
nrf_modem_lib_tx:
  address: 0x200084e8
  end_address: 0x2000a568
  inside:
  - sram_nonsecure
  placement:
    after:
    - nrf_modem_lib_ctrl
  region: sram_primary
  size: 0x2080
otp:
  address: 0xff8108
  end_address: 0xff83fc
  region: otp
  size: 0x2f4
sram_nonsecure:
  address: 0x20008000
  end_address: 0x20040000
  orig_span: &amp;amp;id005
  - sram_primary
  - nrf_modem_lib_ctrl
  - nrf_modem_lib_tx
  - nrf_modem_lib_rx
  region: sram_primary
  size: 0x38000
  span: *id005
sram_primary:
  address: 0x2000c568
  end_address: 0x20040000
  region: sram_primary
  size: 0x33a98
sram_secure:
  address: 0x20000000
  end_address: 0x20008000
  orig_span: &amp;amp;id006
  - tfm_sram
  region: sram_primary
  size: 0x8000
  span: *id006
tfm:
  address: 0x10200
  end_address: 0x18000
  inside:
  - mcuboot_primary_app
  placement:
    before:
    - app
  region: flash_primary
  size: 0x7e00
tfm_nonsecure:
  address: 0x18000
  end_address: 0x88000
  orig_span: &amp;amp;id007
  - app
  region: flash_primary
  size: 0x70000
  span: *id007
tfm_secure:
  address: 0x10000
  end_address: 0x18000
  orig_span: &amp;amp;id008
  - mcuboot_pad
  - tfm
  region: flash_primary
  size: 0x8000
  span: *id008
tfm_sram:
  address: 0x20000000
  end_address: 0x20008000
  inside:
  - sram_secure
  placement:
    after:
    - start
  region: sram_primary
  size: 0x8000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So your error runs deeper than pm_static, there&amp;#39;s something strange with your build process. I noticed some weird stuff while fiddling with the lwm2m_client example, Windows-built binaries had something messed up with the flash maps, the example, mcuboot complained that imagemagic was bad and application failed at &amp;quot;boot_write_img_confirmed()&amp;quot; with IO error (-5). The same source file, SDK version and build configuration worked fine on Linux.&lt;br /&gt;&lt;br /&gt;At some point it started working again on windows though I don&amp;#39;t know why, the generated .config and partition.yml files were identical.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m unable to replicate it anymore so it&amp;#39;s hard to say at this point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487415?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 06:09:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bef1a88c-32eb-4f90-a23d-ab0610d5b471</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Sorry, I will pay attention to these details in the future.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1614.pm_5F00_static.yml.txt"&gt;devzone.nordicsemi.com/.../1614.pm_5F00_static.yml.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is what I copied directly from the app_update sample without any changes. Can you help me check if there are any issues? Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487413?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 05:49:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eea252c7-16f3-45fd-be47-f244a4522514</guid><dc:creator>JyriLehtinen</dc:creator><description>&lt;p&gt;(By the way, you can use the formatting tools in your posts to help the reader. For example, the build output could have been a code block)&lt;br /&gt;&lt;br /&gt;Based on the output, the build fails at the partition_manager.py. The magic line is&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Partition manager failed: End of last partition is after last valid address
Failed to partition region sram_primary, size of region: 262144&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The error is most likely in your &lt;strong&gt;pm_static.yml&lt;/strong&gt;.&lt;br /&gt;Actually, you might as well share the file here, wouldn&amp;#39;t hurt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487396?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 01:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f55e8a1d-5699-41a6-8edf-4a69e7b7835f</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;This is about the error message after using pm_static.yml&lt;/p&gt;
&lt;p&gt;-- Found partition manager static configuration: F:/nrf9160_app/serial_lte_modem/pm_static.yml&lt;br /&gt;Partition &amp;#39;mcuboot&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;mcuboot_pad&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;mcuboot_primary&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;mcuboot_primary_app&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;mcuboot_secondary&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;mcuboot_sram&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;nrf_modem_lib_ctrl&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;nrf_modem_lib_rx&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;nrf_modem_lib_sram&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;nrf_modem_lib_tx&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;sram_nonsecure&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;sram_secure&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;tfm&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;tfm_nonsecure&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;tfm_secure&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition &amp;#39;tfm_sram&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;br /&gt;Partition manager failed: End of last partition is after last valid address&lt;br /&gt;Failed to partition region sram_primary, size of region: 262144&lt;br /&gt;Partition Configuration:&lt;br /&gt;mcuboot_sram:&lt;br /&gt; size: 32768&lt;br /&gt;nrf_modem_lib_ctrl:&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - tfm_sram&lt;br /&gt; - start&lt;br /&gt; size: 1256&lt;br /&gt;nrf_modem_lib_rx:&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - nrf_modem_lib_tx&lt;br /&gt; size: 8192&lt;br /&gt;nrf_modem_lib_sram:&lt;br /&gt; size: 17768&lt;br /&gt;nrf_modem_lib_trace:&lt;br /&gt; placement: {}&lt;br /&gt; size: 16384&lt;br /&gt;nrf_modem_lib_tx:&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - nrf_modem_lib_ctrl&lt;br /&gt; size: 8320&lt;br /&gt;sram_nonsecure:&lt;br /&gt; size: 229376&lt;br /&gt;sram_primary:&lt;br /&gt; size: 211608&lt;br /&gt;sram_secure:&lt;br /&gt; size: 32768&lt;br /&gt;tfm_sram:&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - start&lt;br /&gt; size: 32768&lt;/p&gt;
&lt;p&gt;CMake Error at F:/nordic/ncs_v2.6.1/nrf/cmake/partition_manager.cmake:331 (message):&lt;br /&gt; Partition Manager failed, aborting. Command:&lt;br /&gt; C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe;F:/nordic/ncs_v2.6.1/nrf/scripts/partition_manager.py;--input-files;F:/nrf9160_app/serial_lte_modem/build/mcuboot/zephyr/include/generated/pm.yml;F:/nrf9160_app/serial_lte_modem/build/zephyr/include/generated/pm.yml;F:/nrf9160_app/serial_lte_modem/build/modules/nrf/subsys/partition_manager/pm.yml.settings;F:/nrf9160_app/serial_lte_modem/build/modules/nrf/subsys/partition_manager/pm.yml.libmodem;F:/nrf9160_app/serial_lte_modem/build/modules/nrf/subsys/partition_manager/pm.yml.tfm;F:/nrf9160_app/serial_lte_modem/build/modules/nrf/subsys/partition_manager/pm.yml.trustzone;F:/nrf9160_app/serial_lte_modem/build/modules/nrf/subsys/partition_manager/pm.yml.mcuboot;--regions;sram_primary;otp;flash_primary;--output-partitions;F:/nrf9160_app/serial_lte_modem/build/partitions.yml;--output-regions;F:/nrf9160_app/serial_lte_modem/build/regions.yml;--static-config;F:/nrf9160_app/serial_lte_modem/pm_static.yml;--sram_primary-size;0x40000;--sram_primary-base-address;0x20000000;--sram_primary-placement-strategy;complex;--sram_primary-dynamic-partition;sram_primary;--otp-size;756;--otp-base-address;0xff8108;--otp-placement-strategy;start_to_end;--flash_primary-size;0x100000;--flash_primary-base-address;0x0;--flash_primary-placement-strategy;complex;--flash_primary-device;flash_controller;--flash_primary-default-driver-kconfig;CONFIG_SOC_FLASH_NRF&lt;br /&gt;Call Stack (most recent call first):&lt;br /&gt; F:/nordic/ncs_v2.6.1/zephyr/cmake/modules/kernel.cmake:248 (include)&lt;br /&gt; F:/nordic/ncs_v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:138 (include)&lt;br /&gt; F:/nordic/ncs_v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;br /&gt; F:/nordic/ncs_v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:9 (find_package)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;-- Configuring incomplete, errors occurred!&lt;br /&gt;See also &amp;quot;F:/nrf9160_app/serial_lte_modem/build/CMakeFiles/CMakeOutput.log&amp;quot;.&lt;br /&gt;See also &amp;quot;F:/nrf9160_app/serial_lte_modem/build/CMakeFiles/CMakeError.log&amp;quot;.&lt;br /&gt;FAILED: build.ninja &lt;br /&gt;C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe --regenerate-during-build -SF:\nrf9160_app\serial_lte_modem -BF:\nrf9160_app\serial_lte_modem\build&lt;br /&gt;ninja: error: rebuilding &amp;#39;build.ninja&amp;#39;: subcommand failed&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;f:\nrf9160_app\serial_lte_modem\build&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the content in CMakeError. log&lt;/p&gt;
&lt;p&gt;Compiling the C compiler identification source file &amp;quot;CMakeCCompilerId.c&amp;quot; failed.&lt;br /&gt;Compiler: C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe &lt;br /&gt;Build flags: &lt;br /&gt;Id flags:&lt;/p&gt;
&lt;p&gt;The output was:&lt;br /&gt;1&lt;br /&gt;c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.exe: c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/lib\libc.a(lib_a-exit.o): in function `exit&amp;#39;:&lt;br /&gt;exit.c:(.text.exit+0x34): undefined reference to `_exit&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Compiling the CXX compiler identification source file &amp;quot;CMakeCXXCompilerId.cpp&amp;quot; failed.&lt;br /&gt;Compiler: C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe &lt;br /&gt;Build flags: &lt;br /&gt;Id flags:&lt;/p&gt;
&lt;p&gt;The output was:&lt;br /&gt;1&lt;br /&gt;c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.exe: c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/lib\libc.a(lib_a-exit.o): in function `exit&amp;#39;:&lt;br /&gt;exit.c:(.text.exit+0x34): undefined reference to `_exit&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the content in CMakeOutput.log&lt;/p&gt;
&lt;p&gt;The target system is: Generic - 3.5.99 - arm&lt;br /&gt;The host system is: Windows - 10.0.19045 - AMD64&lt;br /&gt;Compiling the C compiler identification source file &amp;quot;CMakeCCompilerId.c&amp;quot; succeeded.&lt;br /&gt;Compiler: C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe &lt;br /&gt;Build flags: &lt;br /&gt;Id flags: -c&lt;/p&gt;
&lt;p&gt;The output was:&lt;br /&gt;0&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Compilation of the C compiler identification source &amp;quot;CMakeCCompilerId.c&amp;quot; produced &amp;quot;CMakeCCompilerId.o&amp;quot;&lt;/p&gt;
&lt;p&gt;The C compiler identification is GNU, found in &amp;quot;F:/nrf9160_app/serial_lte_modem/build/CMakeFiles/3.21.0/CompilerIdC/CMakeCCompilerId.o&amp;quot;&lt;/p&gt;
&lt;p&gt;Compiling the CXX compiler identification source file &amp;quot;CMakeCXXCompilerId.cpp&amp;quot; succeeded.&lt;br /&gt;Compiler: C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe &lt;br /&gt;Build flags: &lt;br /&gt;Id flags: -c&lt;/p&gt;
&lt;p&gt;The output was:&lt;br /&gt;0&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Compilation of the CXX compiler identification source &amp;quot;CMakeCXXCompilerId.cpp&amp;quot; produced &amp;quot;CMakeCXXCompilerId.o&amp;quot;&lt;/p&gt;
&lt;p&gt;The CXX compiler identification is GNU, found in &amp;quot;F:/nrf9160_app/serial_lte_modem/build/CMakeFiles/3.21.0/CompilerIdCXX/CMakeCXXCompilerId.o&amp;quot;&lt;/p&gt;
&lt;p&gt;Checking whether the ASM compiler is GNU using &amp;quot;--version&amp;quot; matched &amp;quot;(GNU assembler)|(GCC)|(Free Software Foundation)&amp;quot;:&lt;br /&gt;arm-zephyr-eabi-gcc.exe (Zephyr SDK 0.16.5) 12.2.0&lt;br /&gt;Copyright (C) 2022 Free Software Foundation, Inc.&lt;br /&gt;This is free software; see the source for copying conditions. There is NO&lt;br /&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if these are helpful in solving this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487395?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 01:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:226e4e8a-0087-4d8f-92bc-f834c17f5201</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Thank you for your wishes.The method of porting code was not very successful. It was able to download the firmware normally and prompted to restart to apply the new firmware after the download was completed. The first startup after the restart was much slower than normal, which should be when the new firmware was applied, but it was still running the old firmware after startup.I will continue to study this in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487331?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 12:58:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15ad3da0-75f1-47c6-92e1-1808632ca9b3</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="llly"]I am now trying to directly port the code of app_update to SLM, so that there is no need to update from app_update to SLM, which can probably avoid partition issues[/quote]
&lt;p&gt;I hope that you will be successful. When you are done, please provide an update.&lt;/p&gt;
[quote user="llly"]hank you for your help. I also think it&amp;#39;s a partition issue, but I&amp;#39;m still researching how to adjust it. I tried to copy the content of app_update/build/partitions.yml to slm/pm_static.yml using JyriLehtinen&amp;#39;s method, and added&amp;nbsp;set(PM_STATIC_YML_FILE ${CMAKE_CURRENT_LIST_DIR}/pm_static.yml CACHE INTERNAL &amp;quot;&amp;quot;) to the SLM project CMakeLists.txt, but there was an error during the build process[/quote]
&lt;p&gt;To examine this, we would need build log.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487008?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2024 01:33:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7439038d-2121-4375-b2c0-618a902eccf5</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;hi JyriLehtinen&lt;/p&gt;
&lt;p&gt;Thank you for your reply. I tried according to your method, but there was an error during the build.&lt;/p&gt;
&lt;p&gt;I am now trying to directly port the code of app_update to SLM, so that there is no need to update from app_update to SLM, which can probably avoid partition issues&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/487007?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2024 01:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:728446b9-04da-4871-95aa-612411c45a38</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;hi&amp;nbsp;&lt;span&gt;&amp;nbsp;dejans&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help. I also think it&amp;#39;s a partition issue, but I&amp;#39;m still researching how to adjust it. I tried to copy the content of app_update/build/partitions.yml to slm/pm_static.yml using JyriLehtinen&amp;#39;s method, and added&amp;nbsp;set(PM_STATIC_YML_FILE ${CMAKE_CURRENT_LIST_DIR}/pm_static.yml CACHE INTERNAL &amp;quot;&amp;quot;) to the SLM project CMakeLists.txt, but there was an error during the build process&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/486807?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 07:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c828c02-76f7-4bf4-8063-2ac8b91d42ca</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/llly"&gt;llly&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;Static partitioning is commonly used to ensure consistency between builds. You can read about&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html#configuring_static_partitions"&gt;configuring static partitions&lt;/a&gt;&amp;nbsp;in the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html"&gt;partition manager&lt;/a&gt;&amp;nbsp;documentation.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/486773?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 06:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0149476c-496d-4b75-9b0b-29110aa9dd31</guid><dc:creator>JyriLehtinen</dc:creator><description>&lt;p&gt;Well, the easiest solution might be to copy the generated partition file from the project which is originally flashed to the board (in your case, &lt;strong&gt;app_update/build/partitions.yml&lt;/strong&gt;&amp;nbsp;copied to &lt;strong&gt;slm/pm_static.yml&lt;/strong&gt;, then add the following line to the SLM project &lt;strong&gt;CMakeLists.txt&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;set(PM_STATIC_YML_FILE ${CMAKE_CURRENT_LIST_DIR}/pm_static.yml CACHE INTERNAL &amp;quot;&amp;quot;)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Might not compile, but it&amp;#39;s quick to try.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not 100 % certain, but I think the main issue there is the mcuboot_primary/secondary, which&amp;nbsp;need to have identical addresses and sizes (there&amp;#39;s a trailer with mcuboot data in the end of the flash), but I&amp;#39;d say it&amp;#39;s risky having mismatched storage etc.&lt;br /&gt;I think West warns about multi-image builds without a static partition file, and this is why. In the worst case, you can brick devices by doing app updates, which end up editing critical data in the flash, in an unrecoverable manner.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/486760?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 01:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d3681dd-f43d-417b-9feb-bc3c7767869d</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1717120276756v1.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_014F1A4EAE5FE14F2A62FE565F00_17171201349698.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Are you referring to the differences here? If so, how should we modify the definition of this section？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 always recovers when updating applications</title><link>https://devzone.nordicsemi.com/thread/486699?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 13:38:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0ad1878-dd6b-47ad-8b1b-d89047e72b93</guid><dc:creator>JyriLehtinen</dc:creator><description>&lt;p&gt;The SLM-application is most likely built with a different partition table, as I assume you&amp;#39;re not using same pm_static.yml&amp;nbsp;(at least for the relevant parts).&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Updating the application does not update the bootloader, so the&amp;nbsp;bootloader in your DK is built with the partitions defined in your application_update build. This defines&amp;nbsp;which address the bootloader will check when determining whether to revert the image or not.&lt;br /&gt;Now, your SLM build probably has a different partition table, so when you call &lt;span&gt;boot_writd_img_confirmed() it writes to a different address, defined by your partition table in that build.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>