<?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>nrf5340 + QSPI NOR, mcuboot Failed to open flash area ID 1 (image 0 slot 1): -19, cannot continue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119044/nrf5340-qspi-nor-mcuboot-failed-to-open-flash-area-id-1-image-0-slot-1--19-cannot-continue</link><description>Hi Nordic Team 
 We develop a sensor node for a customer based on nRF5340. For now I use a nRF5340DK to do my tests with NCS 2.8.0 (using VS Code). 
 Based on examples, I am trying to get mcuboot + img manager to work with the secondary slot in the external</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Mar 2025 14:25:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119044/nrf5340-qspi-nor-mcuboot-failed-to-open-flash-area-id-1-image-0-slot-1--19-cannot-continue" /><item><title>RE: nrf5340 + QSPI NOR, mcuboot Failed to open flash area ID 1 (image 0 slot 1): -19, cannot continue</title><link>https://devzone.nordicsemi.com/thread/525756?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 14:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bc858fb-2061-4e4c-a69b-cdd31456b0ce</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Thanks for the feedback. Here is the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_sysbuild.html#example_for_mcuboot"&gt;Example for MCUboot&lt;/a&gt;&amp;nbsp;that&amp;nbsp;&lt;span&gt;shows how to add custom MCUboot configuration for a project. Hope it can help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 + QSPI NOR, mcuboot Failed to open flash area ID 1 (image 0 slot 1): -19, cannot continue</title><link>https://devzone.nordicsemi.com/thread/525712?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 12:46:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d650355-c6e1-4db1-b53c-7484a5e5df13</guid><dc:creator>Lukas H</dc:creator><description>&lt;p&gt;Hi Amanda&lt;/p&gt;
&lt;p&gt;Thank you for your help. With the additional instructions your example compiles and runs. &lt;/p&gt;
&lt;p&gt;Using your example I was able to figure our my problem: The file structure in the sysbuild folder was wrong. It is quite confusing the ncs also contains example code from zephyr which does essentially the same thing, but does not work. By bad luck I used zephyr/samples/sysbuild/with_mcuboot as example. And it uses a different file structure in the sysbuild folder.&lt;/p&gt;
&lt;p&gt;It would be nice if the build tool (sysbuild?) would do check on what files it expects and emits some warnings or hints.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Lukas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 + QSPI NOR, mcuboot Failed to open flash area ID 1 (image 0 slot 1): -19, cannot continue</title><link>https://devzone.nordicsemi.com/thread/524422?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 17:48:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca632c11-20ab-4d8b-91f8-deb4db466f74</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Duplicate board/nrf5340dk_nrf5340_cpuapp.conf and overlay for nrf5340dk_nrf5340_cpuapp_ns and add&amp;nbsp;&amp;nbsp;SB_CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM=y to the&amp;nbsp;sysbuild.conf.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 + QSPI NOR, mcuboot Failed to open flash area ID 1 (image 0 slot 1): -19, cannot continue</title><link>https://devzone.nordicsemi.com/thread/524378?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 14:31:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4432bc4a-3c23-4462-946a-3c401f9311e9</guid><dc:creator>Lukas H</dc:creator><description>&lt;p&gt;Hi Amanda&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for sharing this example. Is there a special setting required in the build config?&lt;/p&gt;
&lt;p&gt;When I try to build it, TFM fails to compile:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Build files have been written to: /home/lukas/Downloads/peripheral_key/build/peripheral_key/tfm
[112/139] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic_nrf/common/core/target_cfg.o
FAILED: secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic_nrf/common/core/target_cfg.o 
/home/lukas/ncs/toolchains/b81a7cd864/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBL1_HEADER_SIZE=0x000 -DBL1_TRAILER_SIZE=0x000 -DBL2_HEADER_SIZE=0x000 -DBL2_TRAILER_SIZE=0x000 -DCONFIG_NFCT_PINS_AS_GPIOS -DCONFIG_TFM_FLOAT_ABI=0 -DCONFIG_TFM_HALT_ON_CORE_PANIC -DCONFIG_TFM_USE_TRUSTZONE -DCRYPTO_HW_ACCELERATOR -DDAUTH_CHIP_DEFAULT -DINSIDE_TFM_BUILD -DMBEDTLS_CONFIG_FILE=\&amp;quot;nrf-config.h\&amp;quot; -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\&amp;quot;nrf-psa-crypto-config.h\&amp;quot; -DMBEDTLS_PSA_CRYPTO_DRIVERS -DMCUBOOT_IMAGE_NUMBER=1 -DNRF5340_XXAA_APPLICATION -DNRF53_SERIES -DNRF_ALLOW_NON_SECURE_FAULT_HANDLING -DNRF_ALLOW_NON_SECURE_RESET -DNRF_HW_INIT_NRF_PERIPHERALS -DNRF_HW_INIT_RESET_ON_BOOT -DNRF_NS_SECONDARY -DNRF_NS_STORAGE -DNRF_SECURE_UART_INSTANCE=1 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPLATFORM_DEFAULT_BL1 -DPLATFORM_NS_NV_COUNTERS=0 -DPROJECT_CONFIG_HEADER_FILE=\&amp;quot;/home/lukas/Downloads/peripheral_key/build/peripheral_key/modules/nrf/modules/trusted-firmware-m/tfm_config.h\&amp;quot; -DPS_CRYPTO_AEAD_ALG_GCM -DPS_ENCRYPTION -DSECURE_UART1 -DTFM_EXCEPTION_INFO_DUMP -DTFM_FIH_PROFILE_OFF -DTFM_INTERNAL_TRUSTED_STORAGE_SERVICE_SID=0x00000070 -DTFM_ISOLATION_LEVEL=1 -DTFM_PARTITION_CRYPTO -DTFM_PARTITION_LOG_LEVEL=TFM_PARTITION_LOG_LEVEL_SILENCE -DTFM_PARTITION_NS_AGENT_TZ -DTFM_PARTITION_PLATFORM -DTFM_SPM_LOG_LEVEL=TFM_SPM_LOG_LEVEL_INFO -DTFM_SPM_LOG_RAW_ENABLED -D__NRF_TFM__ -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/include -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/core -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/include -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/lib/runtime -I/home/lukas/Downloads/peripheral_key/build/peripheral_key/tfm/generated -I/home/lukas/Downloads/peripheral_key/build/peripheral_key/tfm/generated/secure_fw/spm/include -I/home/lukas/Downloads/peripheral_key/build/peripheral_key/tfm/generated/secure_fw/spm/core -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/core/arch -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/include/boot -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/include/interface -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/. -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/native_drivers -I/home/lukas/ncs/v2.8.0/modules/hal/nordic/nrfx -I/home/lukas/ncs/v2.8.0/modules/hal/nordic/nrfx/mdk -I/home/lukas/ncs/v2.8.0/modules/hal/nordic/nrfx/drivers/include -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/common -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/.. -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/services/include -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/nrf5340/. -I/home/lukas/ncs/v2.8.0/nrf/modules/trusted-firmware-m/tfm_boards/include -I/home/lukas/ncs/v2.8.0/nrf/modules/trusted-firmware-m/tfm_boards/partition -I/home/lukas/Downloads/peripheral_key/build/peripheral_key/tfm/../zephyr/include/generated -I/home/lukas/ncs/v2.8.0/nrf/modules/trusted-firmware-m/tfm_boards/board -I/home/lukas/Downloads/peripheral_key/build/peripheral_key/tfm/../zephyr/misc/generated/syscalls_links/include -I/home/lukas/ncs/v2.8.0/zephyr/include -I/home/lukas/ncs/v2.8.0/nrf/modules/trusted-firmware-m/tfm_boards/services/include -I/home/lukas/ncs/v2.8.0/nrf/include -I/home/lukas/ncs/v2.8.0/nrf/include/tfm -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/accelerator/interface -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/../secure_fw/spm/include/private -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/common -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/driver -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/include -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/config -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/crypto -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/firmware_update -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/initial_attestation -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/internal_trusted_storage -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/platform -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/protected_storage -I/home/lukas/Downloads/peripheral_key/build/peripheral_key/tfm/generated/interface/include -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/crypto/../../../platform/include -I/home/lukas/Downloads/peripheral_key/build/peripheral_key/generated/interface_nrf_security_psa -I/home/lukas/ncs/v2.8.0/nrf/subsys/nrf_security/include -I/home/lukas/ncs/v2.8.0/modules/crypto/oberon-psa-crypto/include -I/home/lukas/ncs/v2.8.0/nrf/subsys/nrf_security/src/utils -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/lib/fih/inc -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/cmsis/CMSIS/Core/Include -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/cmsis/CMSIS/Core/Include/m-profile -I/home/lukas/Downloads/peripheral_key/build/peripheral_key/tfm/generated/secure_fw/partitions/crypto -I/home/lukas/Downloads/peripheral_key/build/peripheral_key/tfm/generated/secure_fw/partitions/platform -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/lib/runtime/include -I/home/lukas/ncs/v2.8.0/modules/crypto/oberon-psa-crypto/library -I/home/lukas/ncs/v2.8.0/modules/crypto/mbedtls/library -I/home/lukas/ncs/v2.8.0/modules/crypto/mbedtls/include -I/home/lukas/ncs/v2.8.0/modules/crypto/mbedtls/include/library -I/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/interface/include -mcpu=cortex-m33+nofp -Os -DNDEBUG -specs=nano.specs -specs=nosys.specs -Wall -Wno-format -Wno-return-type -Wno-unused-but-set-variable -c -fdata-sections -ffunction-sections -fno-builtin -fshort-enums -funsigned-char -mthumb -std=c99 -gdwarf-4 -g -mfloat-abi=soft -mcmse -Wno-unused-value -include /home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/include/cmsis_override.h -MD -MT secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic_nrf/common/core/target_cfg.o -MF secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic_nrf/common/core/target_cfg.o.d -o secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic_nrf/common/core/target_cfg.o -c /home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/target_cfg.c
In file included from /home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/target_cfg.h:36,
                 from /home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/target_cfg.c:18:
/home/lukas/ncs/v2.8.0/nrf/modules/trusted-firmware-m/tfm_boards/partition/region_defs.h:26:45: error: &amp;#39;PM_MCUBOOT_SECONDARY_ADDRESS&amp;#39; undeclared here (not in a function); did you mean &amp;#39;PM_MCUBOOT_END_ADDRESS&amp;#39;?
   26 | #define S_IMAGE_SECONDARY_PARTITION_OFFSET (PM_MCUBOOT_SECONDARY_ADDRESS)
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lukas/ncs/v2.8.0/nrf/modules/trusted-firmware-m/tfm_boards/partition/region_defs.h:102:36: note: in expansion of macro &amp;#39;S_IMAGE_SECONDARY_PARTITION_OFFSET&amp;#39;
  102 | #define SECONDARY_PARTITION_START (S_IMAGE_SECONDARY_PARTITION_OFFSET)
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/lukas/ncs/v2.8.0/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/target_cfg.c:763:33: note: in expansion of macro &amp;#39;SECONDARY_PARTITION_START&amp;#39;
  763 |     .secondary_partition_base = SECONDARY_PARTITION_START,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
[122/139] Building C object platform/CMakeFiles/platform_s.dir/home/lukas/ncs/v2.8.0/modules/hal/nordic/nrfx/drivers/src/nrfx_uarte.o
ninja: build stopped: subcommand failed.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Lukas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 + QSPI NOR, mcuboot Failed to open flash area ID 1 (image 0 slot 1): -19, cannot continue</title><link>https://devzone.nordicsemi.com/thread/523557?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2025 15:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b9fcec8-4537-4568-82d7-495ef8a607d9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is my example&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_key.7z"&gt;devzone.nordicsemi.com/.../peripheral_5F00_key.7z&lt;/a&gt; for NCS v2.8.0 nRF5340 mcuboot using QSPI external flash.&amp;nbsp;&lt;br /&gt;The log would look like this:&lt;br /&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/pastedimage1739891072077v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Beware that this code/configuration is not fully tested or qualified and should be considered provided “as-is”. Please test it with your application and let me know if you find any issues.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>