<?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>Speed up start up after leaving system off</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117765/speed-up-start-up-after-leaving-system-off</link><description>Hi 
 We use the nRF52832 for an NFC device. The device is 99.9 % in the system off state to save power as much as possible. because the device is power by a button cell battery. The device has an e-paper and the display data are transfered over NFC. The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Jan 2025 09:27:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117765/speed-up-start-up-after-leaving-system-off" /><item><title>RE: Speed up start up after leaving system off</title><link>https://devzone.nordicsemi.com/thread/519006?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2025 09:27:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6674b26-719b-4125-89c7-7dd667cee724</guid><dc:creator>Marelcom</dc:creator><description>&lt;p&gt;Finaly this case could be solved. Here is the summary:&lt;/p&gt;
&lt;p&gt;Nordic: I described the approach for sysbuild, but you are using the old child-parent image (which I should have assumed when you wrote you use SDK 2.6. So there is a slight difference. You should add the same config (CONFIG_BOOT_VALIDATE_SLOT0=n), but the folder name where you place mcuboot.conf must be &amp;quot;child_image&amp;quot; and not &amp;quot;sysbuild&amp;quot;.&lt;/p&gt;
&lt;p&gt;Markus: After adding mcuboot.conf file to the child_image folder (see screenshot) and&amp;nbsp;&lt;code&gt;CONFIG_BOOT_VALIDATE_SLOT0&lt;/code&gt;=n then it works.&lt;br /&gt;In the file &amp;quot;mcuboot/zephyr/.config&amp;quot; &lt;code&gt;CONFIG_BOOT_VALIDATE_SLOT0&lt;/code&gt; is not added any more (see screenshot). Start up time is now decreased by 400ms around.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1736762782864v1.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1736762816697v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Nordic:&amp;nbsp; A second factor that could add 200-400 us to the startup time is if you have an external 32.768 kHz crystall, as this takes a significant amount of time to start (depending on the crystal). If so, you can disable the LFXO and use LFRC intead by setting &lt;code&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/code&gt; (remembed to change in the board files, or alternatively both in the bootloader and application configuration, so that there is no conflict).&lt;/p&gt;
&lt;p&gt;Markus: while changing &lt;code&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC&lt;/code&gt;=y then the start time is shortened again by almost 400ms. Current start up time is about 50ms. That&amp;#39;s fast enough and I can move on.&lt;/p&gt;
&lt;p&gt;thanks a lot for your very helpful support&lt;br /&gt;bes regards &lt;br /&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Speed up start up after leaving system off</title><link>https://devzone.nordicsemi.com/thread/517738?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 14:31:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9589afb9-9717-44ed-b432-74769fb22dde</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you add a mcuboot.conf in a folder called sysbuild directly in the project folder (where you have prj.conf and CMakeLists.txt etc), this will be picked up automatically. For instance, you can take the smp_svr sample and add&amp;nbsp;&lt;span&gt;a file called mcuboot.conf &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/6199743d6366ea6a00201890322d1790945f034d/samples/subsys/mgmt/mcumgr/smp_svr/sysbuild"&gt;under sysbuild&lt;/a&gt; and add a line with&amp;nbsp;CONFIG_BOOT_VALIDATE_SLOT0=n, and you will see that the generated .config no longer has&amp;nbsp;CONFIG_BOOT_VALIDATE_SLOT0 set. I verified this approach on my end.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you can&amp;#39;t make it work, can you share the project with your modification so that I can see?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Speed up start up after leaving system off</title><link>https://devzone.nordicsemi.com/thread/517644?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 10:22:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea6c48d3-f197-47fa-95c7-20279d356c84</guid><dc:creator>Marelcom</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;You are right in the build folder mcuboot/zephyr/.config is CONFIG_BOOT_VALIDATE_SLOT0 set to y. &lt;br /&gt;I added the suggestes mcboot.conf file to the sysbuild folder. Do I have to add the mcuboot.conf file to the build configuration? I yes where? I did add it to &amp;quot;Base configuration files&amp;quot; but then build still does not run without error&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/pastedimage1736417882209v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;c:/SwProjects/Laufkarte/trunk/Laufkarte/sysbuild/mcuboot.conf:1: warning: attempt to assign the value &amp;#39;n&amp;#39; to the undefined symbol BOOT_VALIDATE_SLOT0

error: Aborting due to Kconfig warnings

CMake Error at C:/ncs/v2.6.1/zephyr/cmake/modules/kconfig.cmake:358 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/ncs/v2.6.1/nrf/cmake/modules/kconfig.cmake:29 (include)
  C:/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE&amp;#39; -DWEST_PYTHON=C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe &amp;#39;-Bc:\SwProjects\Laufkarte\trunk\Laufkarte\build_release&amp;#39; -GNinja -DBOARD=laufkarte_nrf52832 -DNCS_TOOLCHAIN_VERSION=NONE &amp;#39;-DCONF_FILE=c:/SwProjects/Laufkarte/trunk/Laufkarte/prj_release.conf;c:/SwProjects/Laufkarte/trunk/Laufkarte/sysbuild/mcuboot.conf&amp;#39; -DBOARD_ROOT=c:/swprojects/laufkarte/trunk/laufkarte &amp;#39;-Sc:\SwProjects\Laufkarte\trunk\Laufkarte&amp;#39;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Speed up start up after leaving system off</title><link>https://devzone.nordicsemi.com/thread/517622?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 09:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc44b5bc-b6b4-4227-bd66-da849195db9d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;CONFIG_BOOT_VALIDATE_SLOT0 is part of the MCUboot configuration. If you check the&amp;nbsp;build folder for your project, you&amp;nbsp;can refer to&amp;nbsp; see mcuboot/zephyr/.config and there I expect you will set&amp;nbsp;&lt;span&gt;CONFIG_BOOT_VALIDATE_SLOT0 is set to y, as that is the default. This shows the configs that are used for the project. You need to set it to n for mcuboot, so that could be either in the mcuboot prj.conf, or in an overlay file. The cleanest is probably to make a mcuboot.conf in a folder called sysbuild in your application folder, in the same way as &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/5df732ee268513f5ace35338d83b5c7ca0741895/samples/nrf_compress/mcuboot_update/sysbuild/mcuboot.conf"&gt;here&lt;/a&gt;, and add the config there. After a re-build, you can check the .config I refered to to verify that it is being used.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Speed up start up after leaving system off</title><link>https://devzone.nordicsemi.com/thread/517616?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 08:47:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aee2caa0-d9ea-447d-9e75-be5b9324b601</guid><dc:creator>Marelcom</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;thanks for your Answer.&lt;/p&gt;
&lt;p&gt;CONFIG_BOOT_VALIDATE_SLOT0=n does not work. I got the compiler error, &lt;strong&gt;&lt;code&gt;BOOT_VALIDATE_SLOT0&lt;/code&gt; is undefined&lt;/strong&gt;: What else do I have to add to the prj.conf file?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2019 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_NCS_SAMPLES_DEFAULTS=y

CONFIG_DK_LIBRARY=y

#CONFIG_NFC_T2T_NRFXLIB=y  # NFC library only for read
CONFIG_NFC_T4T_NRFXLIB=y   # NFC library for read and write

CONFIG_NFC_NDEF=y
CONFIG_NFC_NDEF_MSG=y
CONFIG_NFC_NDEF_RECORD=y
CONFIG_NFC_NDEF_TEXT_RECORD=y
CONFIG_NFC_NDEF_URI_REC=y
CONFIG_NFC_NDEF_URI_MSG=y

CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_NVS=y

CONFIG_SPI=y

CONFIG_CRC=y
CONFIG_APP_RETENTION=y  # used to keep data in RAM during stystem off

#power save
CONFIG_POWEROFF=y
CONFIG_PM_DEVICE=y

CONFIG_SERIAL=n
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_LOG=n 


# Enable Bluetooth for FOTA (DFU)
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME=&amp;quot;Laufkarte&amp;quot;
# Enable MCUboot and FOTA
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
CONFIG_BOOT_VALIDATE_SLOT0=n

# enable GPIO
CONFIG_GPIO=y

#save startup time
CONFIG_BOOT_BANNER=n
CONFIG_PRINTK=n
CONFIG_DEBUG=n
CONFIG_INIT_STACKS=n
CONFIG_SHELL=n


#set main thread priority
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;thanks &lt;br /&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Speed up start up after leaving system off</title><link>https://devzone.nordicsemi.com/thread/517241?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 13:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0d6b905-9fb4-4b22-a6e8-959a5a53c821</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;I suspect that the main contributer to the increased startup time is from the bootloader validating the application image. You can disable that using&amp;nbsp;&lt;code&gt;CONFIG_BOOT_VALIDATE_SLOT0=n&lt;/code&gt;. If you do, the image will only be validated during DFU, but not for subsequent boots. Please note that this means that if for any reason the application region is corrupted or manipulated, the bootloader will boot it non the less, which you should be aware of from a security perspective.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>