<?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>MCUBoot &amp;quot;reading sectors failed&amp;quot; problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77483/mcuboot-reading-sectors-failed-problem-with-nrf-sdk-v1-6-0</link><description>Hi all 
 We are switching to nrf-sdk v1.6.0 in our project and encountered a problem with MCUBoot. 
 The image builds successfully and can be flashed successfully as well. MCUBoot loads but is then unable to find a bootable image. There&amp;#39;s a message which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Aug 2021 13:00:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77483/mcuboot-reading-sectors-failed-problem-with-nrf-sdk-v1-6-0" /><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/323547?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 13:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eedee9c-3d06-420a-818b-9aca00cdebdf</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Thanks for your feedback, Nicolas!&lt;/p&gt;
&lt;p lang="en-GB"&gt;I will be on vacation for the next couple of weeks. If you need more support concerning this issue, I recommend you creating a new case referring to this one. One of my colleagues will help you then.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Thanks and regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/323046?ContentTypeID=1</link><pubDate>Tue, 03 Aug 2021 10:18:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74f44822-9701-4afe-be95-b6de3f701a70</guid><dc:creator>n.marty</dc:creator><description>&lt;p&gt;Hi Markus&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The MCUBoot child_image is added automatically when I set &lt;span style="font-family:courier new, courier;"&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;/span&gt; in my prj.conf. If I manually add a child_image within my project&amp;#39;s CMakeLists.txt I get a &amp;quot;duplicated child image error&amp;quot;.&lt;/p&gt;
&lt;p&gt;The solution for me was to use&lt;em&gt; add_overlay_config()&lt;/em&gt; instead of &lt;em&gt;add_child_image() &lt;/em&gt;in my project&amp;#39;s CMakeLists.txt.&lt;br /&gt;&lt;em&gt;add_overlay_config()&lt;/em&gt; is part of &lt;em&gt;sdk-nrf/cmake/extensions.cmake&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In the beginning, I manually modified the variable &lt;span style="font-family:courier new, courier;"&gt;mcuboot_OVERLAY_CONFIG&lt;/span&gt; which created a mess (and the problem I initially observed). When using &lt;span style="font-family:courier new, courier;"&gt;add_overlay_config()&lt;/span&gt; the variable gets updated correctly. Unfortunately, the guideline does not mention the usage of &lt;span style="font-family:courier new, courier;"&gt;add_overlay_config() &lt;/span&gt;in order to inject kconfig overlay to a child image.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/321137?ContentTypeID=1</link><pubDate>Wed, 21 Jul 2021 13:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2f0397d-497b-4ff6-b199-9657562cfee7</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Thanks a lot for your feedback, Nicolas. It is really appreciated.&lt;/p&gt;
[quote user="Nicolas Marty"]it is dropping the partition manager configuration &amp;quot;partition_manager_enabled.conf&amp;quot;&amp;nbsp;for some reason which in my eyes is a bug.[/quote]
&lt;p&gt;&amp;nbsp;I’m not quite sure if this is a bug, really.&amp;nbsp;&lt;/p&gt;
[quote user="Nicolas Marty"]What is the best practice to build MCUBoot with own configuration flags?[/quote]
&lt;p&gt;&amp;nbsp;Could you please follow this &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/ug_multi_image.html?highlight=child_image#image-specific-variables"&gt;guideline&lt;/a&gt; and check if that would work for you? The child_image directory configuration mechanism is what we normally recommend to do.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/320862?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 10:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31b33d3a-3e6f-4995-9644-ad4c1c48d607</guid><dc:creator>n.marty</dc:creator><description>&lt;p&gt;Hi all&lt;br /&gt;&lt;br /&gt;I found a hotfix for the problem which was actually a problem with the build configuration.&lt;/p&gt;
&lt;p&gt;When applying my own mcuboot.conf to the mcuboot project (via cmake) like this&lt;br /&gt;&lt;code&gt;list(APPEND mcuboot_OVERLAY_CONFIG ${MY_MCUBOOT_CONF_FILE})&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;it is dropping the partition manager configuration &amp;quot;partition_manager_enabled.conf&amp;quot;&amp;nbsp;for some reason which in my eyes is a bug.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My hotfix for the moment is to manually append the partition_manager config in addition to my &amp;quot;usual&amp;quot; mcuboot.conf. I do it now like this:&lt;br /&gt;&lt;code&gt;list(APPEND mcuboot_OVERLAY_CONFIG ${MY_MCUBOOT_CONF_FILE})&lt;/code&gt;&lt;br /&gt;&lt;code&gt;list(APPEND mcuboot_OVERLAY_CONFIG &amp;quot;/opt/zephyrproject/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;quot;)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;and it builds a working bootloader.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would rather not deal with such a static, absolute path in my project because this is gonna break sooner or later again.&lt;/p&gt;
&lt;p&gt;What is the best practice to build MCUBoot with own configuration flags?&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/320759?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 15:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64aae2c6-1709-45a2-82cf-57967c2a4780</guid><dc:creator>n.marty</dc:creator><description>&lt;p&gt;Hi Markus&lt;br /&gt;&lt;br /&gt;I found the problem. As you said, the bootloader image had a problem. And this problem was introduced by the following CMake snippet which is part of our project CMakeLists.txt:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (EXISTS &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf&amp;quot;)
list(APPEND mcuboot_OVERLAY_CONFIG
        &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf&amp;quot;)
endif()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This worked fine for the previous version, but for 1.6 this is breaking the MCUBoot build configuration for some reason. Unfortunately I couldn&amp;#39;t see any hint about a problem in the build output...&lt;/p&gt;
&lt;p&gt;The intention of this script is to append project specific configuration to MCUBoot, namely which key to use for the signature check, which key algorithm, etc.&lt;/p&gt;
&lt;p&gt;I am now looking for a solution to append my MCUBoot config without modifying the external source files.&lt;br /&gt;Do you know how this can be done? Or anyone else has an idea?&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/320408?ContentTypeID=1</link><pubDate>Fri, 16 Jul 2021 11:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e468db6c-6277-4ba0-9356-fc1e801a53a7</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Thanks a lot for the feedback, Nicolas!&lt;/p&gt;
&lt;p lang="en-GB"&gt;Something seems to be wrong with the bootloader image in your application, then. I’m afraid I can not tell you much more than this at the moment.&lt;/p&gt;
&lt;p lang="en-GB"&gt;When building the application in NCS v1.6.0, does the compiler throw any warnings or something that is different compared to the build in NCS you are switching from?&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/320361?ContentTypeID=1</link><pubDate>Fri, 16 Jul 2021 07:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f386a6e-9932-49d6-8d5a-5ff2c6e564e5</guid><dc:creator>n.marty</dc:creator><description>&lt;p&gt;I deleted the build directory and did a clean build. Unfortunately this did not help.&lt;/p&gt;
&lt;p&gt;Next I tried to flash the MCUBoot from the http update sample wiith your provided command. The &amp;quot;failed reading sectors&amp;quot; error disappeard but it is still not able to find a bootable image:&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the output after flashing MCBoot only:&lt;br /&gt;&lt;code&gt;I: Starting bootloader&lt;/code&gt;&lt;br /&gt;&lt;code&gt;I: Primary image: magic=unset, swap_type=0x1, copy_done=_ok=0x3&lt;/code&gt;&lt;br /&gt;&lt;code&gt;I: Boot source: none&lt;/code&gt;&lt;br /&gt;&lt;code&gt;I: Swap type: none&lt;/code&gt;&lt;br /&gt;&lt;code&gt;E: Image in the primary slot is not valid!&lt;/code&gt;&lt;br /&gt;&lt;code&gt;E: Unable to find bootable image&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/320252?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 12:21:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b99457-fc2a-412d-9a79-6b12ebb1fe1d</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Nicolas,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Have you already tried to do a fresh build by deleting the build folder and recompile the whole application?&lt;/p&gt;
&lt;p lang="en-GB"&gt;If that doesn’t help you could give it a shot flashing the MCUboot only from the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/http_update/application_update/README.html#http-application-update-sample"&gt;HTTP application update sample&lt;/a&gt; to a device with the failing application.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Can be done by using:&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --program *.hex --sectorerase&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;File located in &lt;em&gt;&amp;lt;build_dir&amp;gt;/mcuboot/zephyr/zephyr.hex&lt;/em&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/320207?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 10:32:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:653912a2-b927-4f79-ab22-1f881d66a629</guid><dc:creator>n.marty</dc:creator><description>&lt;p&gt;Attached below the contents of the partitions.yml. This corresponds to the configuration from my previous posts.&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: 0x20200
  end_address: 0x88000
  region: flash_primary
  size: 0x67e00
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
  - app
  - mcuboot_pad
  - spm
  region: flash_primary
  sharers: 0x1
  size: 0x78000
  span: *id001
mcuboot_primary_app:
  address: 0x10200
  end_address: 0x88000
  orig_span: &amp;amp;id002
  - app
  - spm
  region: flash_primary
  size: 0x77e00
  span: *id002
mcuboot_secondary:
  address: 0x88000
  end_address: 0x100000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x8000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x78000
nrf_modem_lib_ctrl:
  address: 0x20010000
  end_address: 0x200104e8
  inside:
  - sram_nonsecure
  placement:
    after:
    - spm_sram
    - start
  region: sram_primary
  size: 0x4e8
nrf_modem_lib_rx:
  address: 0x200124e8
  end_address: 0x200144e8
  inside:
  - sram_nonsecure
  placement:
    after:
    - nrf_modem_lib_tx
  region: sram_primary
  size: 0x2000
nrf_modem_lib_sram:
  address: 0x20010000
  end_address: 0x200144e8
  orig_span: &amp;amp;id003
  - nrf_modem_lib_ctrl
  - nrf_modem_lib_tx
  - nrf_modem_lib_rx
  region: sram_primary
  size: 0x44e8
  span: *id003
nrf_modem_lib_tx:
  address: 0x200104e8
  end_address: 0x200124e8
  inside:
  - sram_nonsecure
  placement:
    after:
    - nrf_modem_lib_ctrl
  region: sram_primary
  size: 0x2000
otp:
  address: 0xff8108
  end_address: 0xff83fc
  region: otp
  size: 0x2f4
spm:
  address: 0x10200
  end_address: 0x20200
  inside:
  - mcuboot_primary_app
  placement:
    before:
    - app
  region: flash_primary
  size: 0x10000
spm_sram:
  address: 0x20000000
  end_address: 0x20010000
  inside:
  - sram_secure
  placement:
    after:
    - start
  region: sram_primary
  size: 0x10000
sram_nonsecure:
  address: 0x20010000
  end_address: 0x20040000
  orig_span: &amp;amp;id004
  - sram_primary
  - nrf_modem_lib_ctrl
  - nrf_modem_lib_tx
  - nrf_modem_lib_rx
  region: sram_primary
  size: 0x30000
  span: *id004
sram_primary:
  address: 0x200144e8
  end_address: 0x20040000
  region: sram_primary
  size: 0x2bb18
sram_secure:
  address: 0x20000000
  end_address: 0x20010000
  orig_span: &amp;amp;id005
  - spm_sram
  region: sram_primary
  size: 0x10000
  span: *id005
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you for looking into it.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/320205?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 10:25:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1d849f3-2883-44bc-be23-1be45a38158b</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Nicolas,&lt;/p&gt;
&lt;p lang="en-GB"&gt;could you please provide me with the &lt;em&gt;partitions.yml&lt;/em&gt; of the failing application? The file is located in the root of your build folder. I will have to check this with our development team.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Thanks and regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/320147?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 06:49:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d6eb676-ecf1-47e4-868c-733bb1decc0a</guid><dc:creator>n.marty</dc:creator><description>&lt;p&gt;Hi Markus&lt;br /&gt;&lt;br /&gt;I am currently working on the nrf9160dk board and not using external flash. The device tree was not modified apart from some uart pin and spi configuration.&lt;/p&gt;
&lt;p&gt;I read a little bit more about the MCUBoot upgrade strategies and tried different configurations just to see if anything works. Attached below the mcuboot config parameters which I add to the build.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE=&amp;quot;key_fw_sign.pem&amp;quot; # has to be a relative path&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_BOOT_SIGNATURE_TYPE_RSA=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_BOOT_SIGNATURE_TYPE_RSA_LEN=2048&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_BOOT_UPGRADE_ONLY=n # overwrite only is not what we want&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_BOOT_SWAP_USING_SCRATCH=n # not what we want as it requires reserved memory space &amp;quot;scratch area&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_BOOT_SWAP_USING_MOVE=y # would be good as this does not require scratch memory area&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_BOOT_DIRECT_XIP=n # would be an alternative for us, supported by nrf91? leads to FLASH area overflow when enabled&lt;/code&gt;&lt;br /&gt;&lt;code&gt;#CONFIG_SINGLE_APPLICATION_SLOT=y Not what we want, not compatible with dfu&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I tried to enable each UPGRADE_ONLY, SWAP_USINGE_SCRATCH, SWAP_USING_MOVE and DIRECT_XIP to find a mode which makes the application boot. The build was successful for the first three, the last one DIRECT_XIP didn&amp;#39;t build because of a FLASH overflow.&lt;br /&gt;None of the images resulted from the first three configurations were able to boot.&lt;/p&gt;
&lt;p&gt;My configuration is based on this sample &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/http_update/application_update/README.html#http-application-update-sample"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/http_update/application_update/README.html#http-application-update-sample&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When I try to build and run the sample with sdk v1.6.0 it works. It seems to be a problem within my application/configuration.&lt;/p&gt;
&lt;p&gt;I am stuck on this. Any idea?&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;best regards&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/320138?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 05:49:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88e29095-d3b6-438a-8ae1-4becd604d8aa</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Thanks for the feedback, Nicolas!&lt;/p&gt;
&lt;p lang="en-GB"&gt;Are you using an external flash with your device/board?&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/320084?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 15:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a2e9afb-ba1f-43b1-b2b7-a3193f598676</guid><dc:creator>n.marty</dc:creator><description>&lt;p&gt;Hi Markus&lt;/p&gt;
&lt;p&gt;The problem occurs after i flash the board with &amp;quot;west flash --erase ...&amp;quot; (nrfjprog). So MCUBoot and application image should originate from the same nrf-sdk.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know which swap type config I am using to be honest. I let it at default configuration. After an upgrade I am required to call &lt;code&gt;boot_write_img_confirmed()&lt;/code&gt; in order to keep it booting from the upgraded image. I want to keep that mechanism to perform some selftests before confirming.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;This is my kconfig about OTA:&lt;br /&gt;&lt;code&gt;CONFIG_IMG_MANAGER=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_IMG_ERASE_PROGRESSIVELY=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_REBOOT=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_FOTA_DOWNLOAD=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_DOWNLOAD_CLIENT=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_DFU_TARGET=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_DFU_TARGET_MCUBOOT=y&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Looking at autoconf.h after the build is finished I can&amp;#39;t find any of these boot type definitions.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot "reading sectors failed" problem with nrf-sdk v1.6.0</title><link>https://devzone.nordicsemi.com/thread/319984?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 11:34:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f954ee45-c9dd-4058-b06f-05452aea373c</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Nicolas,&lt;/p&gt;
&lt;p lang="en-GB"&gt;does the MCUBoot on the failing device originate from the same version of the nrf-sdk? What kind of &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/mcuboot/design.html?highlight=swap#boot-swap-types"&gt;boot swap&lt;/a&gt; are you using?&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>