<?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>Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102734/use-external-flash-at45db0-with-mcuboot</link><description>I am using nRF Connect SDK v2.2.0 with nRF52810 on a custom board. We have included OTA updates in our project, and it works successfully and downloads the firmware via MQTT and writes it using developer.nordicsemi.com/.../dfu_target.html . Because the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Aug 2023 15:30:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102734/use-external-flash-at45db0-with-mcuboot" /><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/442370?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 15:30:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a7b1a62-3640-4599-9b71-0b56a036157f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;The mcuboot only supports&amp;nbsp;&lt;span&gt;spi-nor and qspi-nor flash.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/442111?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 15:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46b3fde8-0a4f-4071-96e1-b331ae4ada14</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p dir="ltr"&gt;mcuboot only supports spi-nor?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/442109?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 15:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d976c899-cf08-423c-a6fe-ed6712a78f80</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Not sure whether&amp;nbsp;&lt;span&gt;MCUBoot can support&amp;nbsp;AT45DB161 or not, but I would suggest using a spi-nor flash.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/442095?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 13:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13a36a77-4a4b-4f1f-8c4a-430b1244df53</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p&gt;I installed the mx25r6435 chip, the application worked with it. When I install the AT45DB161 chip but the application doesn&amp;#39;t work. MCUBoot only supports &amp;quot;jedec,spi-nor&amp;quot;? It can&amp;#39;t work with &amp;quot;atmel,at45&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441952?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 19:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29f73d48-3a47-49ad-8f3f-bca385b4240f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Do&amp;nbsp;you test the flash with nRF52840DK or your custom board? Is it the same HW as your project? I see there is a custom board file in your project. It should be able to use the same board file/overlay as the flash test. Did you rename the overly file for mcuboot as my suggestion?&lt;/p&gt;
&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/pastedimage1692299767187v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441937?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 16:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f0e61a1-7186-42e9-90a4-29c879971988</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p&gt;I did a flash test, the test passed successfully.&lt;/p&gt;
&lt;p&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/5277.Screenshot_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441713?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 20:00:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bd17001-82ae-45e3-bad5-ac9b798ed5cc</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&amp;quot;W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=256 - too small?&amp;quot;&lt;/p&gt;
&lt;p&gt;The error messages for this are not very exact.&lt;/p&gt;
&lt;p&gt;This means one of two things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CONFIG_BOOT_MAX_IMG_SECTORS is too small, but i&lt;span&gt;t is typically 256 for a 1MB flash device, such as nRF52840.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The flash driver for this slot is not detected&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;This means that your external flash configuration for the MCUboot child image is wrong somehow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In your case, I guess it is the latter.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can you test the flash driver&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/451c1c4b439597b6f4fa6466cb070a0b15aea641/samples/drivers/spi_flash_at45"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/451c1c4b439597b6f4fa6466cb070a0b15aea641/samples/drivers/spi_flash_at45&lt;/a&gt;&amp;nbsp;and get the expected result?&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: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441701?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 16:57:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1490902f-c938-43b0-847d-08ca106a169d</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p&gt;What could be the problem?&lt;/p&gt;
&lt;p&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/7028.Screenshot_5F00_6.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441695?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 16:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42f0d864-3c46-40b3-8de8-9a7485062811</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p&gt;Yes, I will only have one image.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441694?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 15:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:838e8d2a-cd97-4547-8028-7fd37d4b345b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;If you only build with one child image (mcuboot) for this board, you could just only have these config and overlay files under&amp;nbsp;&lt;span&gt;child_image folder as&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;child_image\&lt;span&gt;mcuboot&lt;/span&gt;.config&lt;/p&gt;
&lt;p&gt;child_image\&lt;span&gt;mcuboot&lt;/span&gt;.overlay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441687?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 15:25:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ce13efa-0252-455f-b850-dc628f2ffed6</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p&gt;Here is the structure of my project. Or did I do something wrong?&lt;/p&gt;
&lt;p&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/1882.Screenshot_5F00_7.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441685?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 15:19:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c098eed-7dee-46ca-a6a1-8fc4eea3e6ca</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="SavchenkoIvan"]child_image\mcuboot\boards\*board.config:[/quote][quote user="SavchenkoIvan"]child_image\mcuboot\boards\*mcuboot_dts.overlay:[/quote][quote user="SavchenkoIvan"]app/boards/beedigit_nrf52840.dts(custom board):[/quote]
&lt;p&gt;&lt;span&gt;From&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/ug_multi_image.html"&gt;Multi Image builds&lt;/a&gt;&lt;span&gt;:&lt;/span&gt;&lt;/p&gt;
&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/pastedimage1692198905522v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It should be&amp;nbsp;&lt;/p&gt;
&lt;p&gt;child_image\mcuboot\boards\*board_name.config&lt;/p&gt;
&lt;p&gt;child_image\mcuboot\boards\&lt;span&gt;*board_name&lt;/span&gt;.overlay&lt;/p&gt;
&lt;p&gt;app&lt;span&gt;\&lt;/span&gt;boards&lt;span&gt;\&lt;/span&gt;&lt;span&gt;*board_name&lt;/span&gt;&lt;span&gt;.overlay&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441547?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 09:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f01a0d2-790e-4550-8feb-cd4bb202ec52</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p&gt;I was able to successfully build and run the project. I can see that the firmware is being successfully written to the outer flesh. But after rebooting the device, I can&amp;#39;t see the update starting. Here is some information that might help you. I was able to successfully build and run the project. I see that the firmware is successfully written to an external flash. But after restarting the device, I don&amp;#39;t see the update starting. Here is some information that might help you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;child_image\mcuboot\boards\*board.config:&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2021 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#
CONFIG_MAIN_STACK_SIZE=10240

CONFIG_MCUBOOT_INDICATION_LED=y

CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000

CONFIG_BOOT_SWAP_SAVE_ENCTLV=n

# Enable flash operations
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y

# This must be increased to accommodate the bigger images.
CONFIG_BOOT_MAX_IMG_SECTORS=256

### Decrease footprint by ~4 KB in comparison to CBPRINTF_COMPLETE=y
CONFIG_CBPRINTF_NANO=y
CONFIG_NORDIC_QSPI_NOR=n

CONFIG_SPI=y
CONFIG_SPI_FLASH_AT45=y
CONFIG_SPI_NRFX_RAM_BUFFER_SIZE=32
# If you don&amp;#39;t add this when setting CONFIG_SPI=y, you&amp;#39;ll get a lot of undefined references from the nrfx spim driver
# E.G. &amp;quot;undefined reference to `z_impl_k_sleep&amp;#39;&amp;quot;
CONFIG_MULTITHREADING=y

CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y

CONFIG_FPROTECT=y
CONFIG_PM=n

CONFIG_FW_INFO=y

CONFIG_BOOT_BOOTSTRAP=n
CONFIG_BOOT_UPGRADE_ONLY=n

### Minimal Configurations ###
CONFIG_ASSERT=n
CONFIG_BOOT_BANNER=n
CONFIG_NO_RUNTIME_CHECKS=y
CONFIG_REBOOT=n
CONFIG_RESET_ON_FATAL_ERROR=n
CONFIG_SIZE_OPTIMIZATIONS=y

# Config logger
CONFIG_LOG=y
CONFIG_LOG_MODE_MINIMAL=y # former CONFIG_MODE_MINIMAL
### Ensure Zephyr logging changes don&amp;#39;t use more resources
CONFIG_LOG_DEFAULT_LEVEL=3

# Disable UART Console and enable the RTT console
#CONFIG_UART_CONSOLE=n
#CONFIG_LOG_BACKEND_UART=n

CONFIG_CONSOLE=y
CONFIG_RTT_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;child_image\mcuboot\boards\*mcuboot_dts.overlay:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	led {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		but_led_1: but_led {
			gpios = &amp;lt;&amp;amp;gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Permission to turn off the device&amp;quot;;
		};
	};

	aliases {
		mcuboot-led0 = &amp;amp;but_led_1;
	};

	chosen {
		nordic,pm-ext-flash = &amp;amp;at45db0;
	};
};

&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;spi2 {
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;spi2_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi2_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	cs-gpios = &amp;lt; &amp;amp;gpio0 29 GPIO_ACTIVE_LOW &amp;gt;;

	at45db0: at45db161d@0 {
		compatible = &amp;quot;atmel,at45&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		spi-max-frequency = &amp;lt;15000000&amp;gt;;
		jedec-id = [1f 26 00];
		size = &amp;lt;16777216&amp;gt;;
		sector-size = &amp;lt;131072&amp;gt;;
		block-size = &amp;lt;4096&amp;gt;;
		page-size = &amp;lt;512&amp;gt;;
		use-udpd;
		enter-dpd-delay = &amp;lt;2000&amp;gt;;
		exit-dpd-delay = &amp;lt;35000&amp;gt;;
		status = &amp;quot;okay&amp;quot;;
	};
};&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;app/prj.conf&lt;/span&gt;:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;#CONFIG_SIZE_OPTIMIZATIONS=n
#***********************************************
#				КОНФИГУРАЦИЯ ЗАГРУЗЧИКА
#***********************************************
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_IMG_MANAGER=y
CONFIG_DFU_TARGET_MCUBOOT=y
CONFIG_DFU_TARGET_STREAM=y
CONFIG_STREAM_FLASH_ERASE=y
CONFIG_STREAM_FLASH=y
CONFIG_DFU_TARGET=y

CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
################################################################################
# Enable flash operations.
CONFIG_FLASH_MAP=y

# Enable the LittleFS file system.
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y
CONFIG_PM_PARTITION_SIZE_LITTLEFS=0x7000
#***********************************************

#***********************************************
#				КОНФИГУРАЦИЯ ПЕРЕФИРИ
#***********************************************
# Enable UART 
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_UART_1_INTERRUPT_DRIVEN=y
# Enable SPI
CONFIG_SPI=y
# Enable ADC
CONFIG_ADC=y
# Enable I2C
CONFIG_I2C=y
CONFIG_I2C_NRFX=y
# NFCT pins as GPIOs
CONFIG_NFCT_PINS_AS_GPIOS=y
#***********************************************

#***********************************************
#		КОНФИГУРАЦИЯ СТАТУСНОГО СВЕТОДИОДА 
#***********************************************
# Enable PWM0
CONFIG_PWM=y
CONFIG_LED=y
CONFIG_LED_STATUS=y
#***********************************************

#***********************************************
#				КОНФИГУРАЦИЯ C++
#***********************************************
CONFIG_CPLUSPLUS=y
CONFIG_STD_CPP11=y
CONFIG_LIB_CPLUSPLUS=y
#***********************************************

#***********************************************
#				КОНФИГУРАЦИЯ ETHERNET
#***********************************************
# Using networking 
CONFIG_NETWORKING=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_L2_ETHERNET_MGMT=y
CONFIG_NET_IF_MAX_IPV4_COUNT=2 

# EnableIntermediate socket offloading layer
CONFIG_NET_SOCKETS_OFFLOAD_DISPATCHER=y
# Enable W5500 Ethernet Controller custom
CONFIG_ETH_W5500_CUSTOM=y

# GSM modem support
CONFIG_MODEM_CUSTOM=y
CONFIG_MODEM_SIM7600=y
CONFIG_MODEM_SIMCOM_SIM7600_RAT_AUTOMATIC=y
CONFIG_MODEM_SIMCOM_SIM7600_EU_SIM=y

# Enable IPv4 support
CONFIG_NET_IPV4=y
CONFIG_NET_IPV6=n

# Enable TCP support
CONFIG_NET_TCP=y

# Enable DHCPv4 support
CONFIG_NET_DHCPV4=y

# Enable MQTT Lib support
CONFIG_MQTT_CUSTOM_LIB=y

# Network configuration
CONFIG_NET_CONFIG_AUTO_INIT=y
CONFIG_NET_CONFIG_SETTINGS=n

# Network connection manager
CONFIG_NET_MGMT=y
CONFIG_NET_MGMT_EVENT=y
CONFIG_NET_MGMT_EVENT_INFO=y
CONFIG_NET_CONNECTION_MANAGER=y

# Enable the DNS resolver
CONFIG_DNS_RESOLVER=y
# Enable additional buffers
CONFIG_DNS_RESOLVER_ADDITIONAL_BUF_CTR=1

# RX thread stack size
CONFIG_INIT_STACKS=y
CONFIG_NEWLIB_LIBC=y
#***********************************************

#***********************************************
#				КОНФИГУРАЦИЯ EEPROM
#***********************************************
#CONFIG_EEPROM=y
#CONFIG_EEPROM_INIT_PRIORITY=80
#CONFIG_EEPROM_25AA02E48=y
#***********************************************

#***********************************************
#				КОНФИГУРАЦИЯ DataFlash
#***********************************************
CONFIG_FLASH=y
CONFIG_SPI_FLASH_AT45=y
CONFIG_FLASH_PAGE_LAYOUT=y
#***********************************************

#***********************************************
#				КОНФИГУРАЦИЯ RTC
#***********************************************
CONFIG_COUNTER=y
CONFIG_COUNTER_MAXIM_DS3231_CUST=y
CONFIG_COUNTER_INIT_PRIORITY=65
#***********************************************

#***********************************************
#				КОНФИГУРАЦИЯ ДРАЙВЕРОВ ЯДРА
#***********************************************
# Enable event objects.
CONFIG_EVENTS=y
# Enable ring buffer.
CONFIG_RING_BUFFER=y
#***********************************************

#***********************************************
#				КОНФИГУРАЦИЯ WATCHDOG
#***********************************************
# Disable hardware watchdog
#CONFIG_WATCHDOG=y
#CONFIG_WDT_DISABLE_AT_BOOT=y
#CONFIG_TASK_WDT=y
#CONFIG_TASK_WDT_MIN_TIMEOUT=500
#***********************************************

#***********************************************
#				КОНФИГУРАЦИЯ СТЕКОВ ЗАДАЧ
#***********************************************
CONFIG_NET_RX_STACK_SIZE=4096
CONFIG_NET_TCP_WORKQ_STACK_SIZE=4096
CONFIG_NET_CONNECTION_MANAGER_STACK_SIZE=1024
CONFIG_NET_MGMT_EVENT_STACK_SIZE=2048
CONFIG_ETH_W5500_RX_THREAD_STACK_SIZE_CUSTOM=2048
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
#***********************************************

CONFIG_KERNEL_BIN_NAME=&amp;quot;Beedigit_hub -DEMO-&amp;quot;

#***********************************************
#				КОНФИГУРАЦИЯ ЛОГИРОВАНИЯ
#***********************************************
# logging
CONFIG_LOG=y
CONFIG_PRINTK=y
CONFIG_LOG_PRINTK=y
# Enable RTT
CONFIG_USE_SEGGER_RTT=y
# Enable Logging support
CONFIG_NET_LOG=y

# Enable Logging support
#CONFIG_NET_IF_LOG_LEVEL_DBG=y
#CONFIG_ETHERNET_LOG_LEVEL_DBG=y
#CONFIG_NET_TCP_LOG_LEVEL_DBG=y
#CONFIG_NET_CONFIG_LOG_LEVEL_DBG=y
#CONFIG_NET_CONNECTION_MANAGER_LOG_LEVEL_DBG=y
#CONFIG_NET_L2_ETHERNET_LOG_LEVEL_DBG=y
#CONFIG_MQTT_LOG_LEVEL_DBG=y
#CONFIG_DNS_RESOLVER_LOG_LEVEL_DBG=y
#CONFIG_NET_DHCPV4_LOG_LEVEL_DBG=y
#CONFIG_NET_SOCKETS_LOG_LEVEL_DBG=y
#***********************************************

#***********************************************
#			АНАЛИЗАТОР ПОТОКОВ
#***********************************************
#CONFIG_THREAD_ANALYZER=y
#CONFIG_THREAD_ANALYZER_USE_PRINTK=y
#CONFIG_THREAD_ANALYZER_AUTO=y
#CONFIG_THREAD_ANALYZER_AUTO_INTERVAL=y
#CONFIG_THREAD_ANALYZER_AUTO_STACK_SIZE=y
#CONFIG_THREAD_NAME=y
#CONFIG_THREAD_RUNTIME_STATS=y
#***********************************************&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;app/boards/beedigit_nrf52840.dts(custom board):&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Copyright (c) 2022 Nordic Semiconductor ASA
// SPDX-License-Identifier: Apache-2.0

/dts-v1/;
#include &amp;lt;nordic/nrf52840_qiaa.dtsi&amp;gt;
#include &amp;quot;beedigit_nrf52840-pinctrl.dtsi&amp;quot;

/ {
	model = &amp;quot;Beedigit_nrf52840&amp;quot;;
	compatible = &amp;quot;BeeDigit,beedigit-nrf52840&amp;quot;;

	chosen {
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
		nordic,pm-ext-flash = &amp;amp;at45db0;
	};

	zephyr,user {
		handle = &amp;lt; &amp;amp;gpio1 &amp;gt;;
		io-channels = &amp;lt;&amp;amp;adc 0&amp;gt;;	
	};

	switch {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		button_pwr: but_pwr {
			gpios = &amp;lt;&amp;amp;gpio0 13 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)&amp;gt;;
			label = &amp;quot;Switch-OFF control&amp;quot;;
		};	
	};

	power {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		device_pwr: dev_pwr {
			gpios = &amp;lt;&amp;amp;gpio0 15 (GPIO_PULL_DOWN | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Permission to turn off the device&amp;quot;;
		};

		exp_module_pwr: exp_mod_pwr {
			gpios = &amp;lt;&amp;amp;gpio0 14 (GPIO_PULL_DOWN | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Permission to enable expansion module&amp;quot;;
		};
	};

	charger {
		compatible = &amp;quot;gpio-charger&amp;quot;;
		stdby: stdby_ch {
			gpios = &amp;lt;&amp;amp;gpio0 9  (GPIO_PULL_UP | GPIO_ACTIVE_HIGH)&amp;gt;;
			label = &amp;quot;CHARGE-STDBY&amp;quot;;
		};
		chrg: chrg_ch {
			gpios = &amp;lt;&amp;amp;gpio0 10  (GPIO_PULL_UP | GPIO_ACTIVE_HIGH)&amp;gt;;
			label = &amp;quot;CHARGE-CHRG&amp;quot;;
		};
	};

	exp_board {
	 	compatible = &amp;quot;gpio-exp&amp;quot;;
		cs1: cs_1 {
			gpios = &amp;lt;&amp;amp;gpio0 20 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;CS-1&amp;quot;;
		};
		cs2: cs_2 {
			gpios = &amp;lt;&amp;amp;gpio0 19 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;CS-2&amp;quot;;
		};
		cs3: cs_3 {
			gpios = &amp;lt;&amp;amp;gpio0 17 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;CS-3&amp;quot;;
		};
		cs4: cs_4 {
			gpios = &amp;lt;&amp;amp;gpio0 16 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;CS-4&amp;quot;;
		};
	};

	aliases {
		cs1 = &amp;amp;cs1;
		cs2 = &amp;amp;cs2;
		cs3 = &amp;amp;cs3;
		cs4 = &amp;amp;cs4;
		stdby = &amp;amp;stdby;
		chrg = &amp;amp;chrg;
		butpwr = &amp;amp;button_pwr;
		mainpwr = &amp;amp;device_pwr;
		exppwr = &amp;amp;exp_module_pwr;
		expboard = &amp;amp;uart1;
		meter = &amp;amp;i2c0;
	};
};

&amp;amp;flash0 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = &amp;lt;0x0 0xc000&amp;gt;;
		};
		slot0_partition: partition@c000 {
			label = &amp;quot;image-0&amp;quot;;
			reg = &amp;lt;0xc000 0x72000&amp;gt;;
		};
	};
};

&amp;amp;gpiote {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio1 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;pwm0 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;pwm0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	ledstatus: ledstatus_dev {
		compatible = &amp;quot;led-status&amp;quot;;
		pwms = &amp;lt;&amp;amp;pwm0 0 PWM_KHZ(1) PWM_POLARITY_NORMAL&amp;gt;;
		label = &amp;quot;STATUS-LED&amp;quot;;
	};
};

&amp;amp;adc {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;adc {
	#address-cells = &amp;lt;1&amp;gt;;
	#size-cells = &amp;lt;0&amp;gt;;
	
	channel@0 {
		reg = &amp;lt;0&amp;gt;;
		zephyr,gain = &amp;quot;ADC_GAIN_1_5&amp;quot;;
		zephyr,reference = &amp;quot;ADC_REF_INTERNAL&amp;quot;;
		zephyr,acquisition-time = &amp;lt;ADC_ACQ_TIME_DEFAULT&amp;gt;;
		zephyr,resolution = &amp;lt;12&amp;gt;;
		zephyr,oversampling = &amp;lt;8&amp;gt;;
		zephyr,input-positive = &amp;lt;NRF_SAADC_AIN2&amp;gt;;	
	};
};

&amp;amp;spi1 {
		compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
		pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
		pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
		cs-gpios = &amp;lt; &amp;amp;gpio0 8 GPIO_ACTIVE_LOW &amp;gt;,
				   &amp;lt; &amp;amp;gpio0 5 GPIO_ACTIVE_LOW &amp;gt;;

		w5500: w5500_dev@0{
			compatible = &amp;quot;wiznet,w5500custom&amp;quot;;
			status = &amp;quot;okay&amp;quot;;
			reg = &amp;lt; 0 &amp;gt;;
			int-gpios = &amp;lt; &amp;amp;gpio0 11 GPIO_ACTIVE_LOW &amp;gt;;
			reset-gpios = &amp;lt; &amp;amp;gpio0 6 GPIO_ACTIVE_HIGH &amp;gt;;
			spi-max-frequency = &amp;lt; 30000000 &amp;gt;;
		};

		mac48: mac48_dev@1{
			compatible = &amp;quot;microchip,25aa02e48&amp;quot;;
			reg = &amp;lt; 1 &amp;gt;;
			spi-max-frequency = &amp;lt; 6000000 &amp;gt;;
		};
};

&amp;amp;spi2 {
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;spi2_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi2_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	cs-gpios = &amp;lt; &amp;amp;gpio0 29 GPIO_ACTIVE_LOW &amp;gt;;

	at45db0: at45db161d@0 {
		compatible = &amp;quot;atmel,at45&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		spi-max-frequency = &amp;lt;15000000&amp;gt;;
		jedec-id = [1f 26 00];
		size = &amp;lt;16777216&amp;gt;;
		sector-size = &amp;lt;131072&amp;gt;;
		block-size = &amp;lt;4096&amp;gt;;
		page-size = &amp;lt;512&amp;gt;;
		use-udpd;
		enter-dpd-delay = &amp;lt;2000&amp;gt;;
		exit-dpd-delay = &amp;lt;35000&amp;gt;;
		status = &amp;quot;okay&amp;quot;;
	};
};

&amp;amp;at45db0 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		slot1_partition: partition@0 {
			label = &amp;quot;image-1&amp;quot;;
			reg = &amp;lt;0x000000000 0x0000e8000&amp;gt;;
		};
	};
};

&amp;amp;uart0 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	sim7600: sim7600_dev {
		compatible = &amp;quot;simcom,sim7600&amp;quot;;
		mdm-power-gpios = &amp;lt; &amp;amp;gpio0 25 GPIO_ACTIVE_LOW &amp;gt;;
		mdm-reset-gpios = &amp;lt; &amp;amp;gpio0 24 GPIO_ACTIVE_LOW &amp;gt;;
	};
};

&amp;amp;uart1 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;9600&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;i2c0 { 
	compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;i2c0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	ds3231: ds3231_dev@68 {
		compatible = &amp;quot;maxim,ds3231cust&amp;quot;;
		reg = &amp;lt;0x68&amp;gt;;
	};
	i2c-device@48 {
		compatible = &amp;quot;i2c-device&amp;quot;;
		reg = &amp;lt;0x48&amp;gt;;
	};		
}; 

&lt;/pre&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;I see this message in debug:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&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/8267.Screenshot_5F00_6.png" /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441409?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 13:37:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d3cdf83-147c-4732-95d1-8a703a48d296</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What sample are you using?&lt;/p&gt;
&lt;p&gt;Did you copy the app/boards/*board.conf &amp;amp; *board.ovelay and&amp;nbsp;&lt;span&gt;child_image\mcuboot\boards\*board.config &amp;amp; *board.ovelay to that sample?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441372?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 12:09:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3ccc897-6af0-46ad-b303-22606a7da49d</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p&gt;Now I&amp;#39;m having errors when selecting a project.&lt;/p&gt;
&lt;p&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/4578.Screenshot_5F00_5.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441370?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 12:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27ce6627-8cff-4128-9e56-f4641ca0cd8a</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p&gt;Thank you very much for your help! I now see that the secondary partition is placed on the external flash.&lt;/p&gt;
&lt;p&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/4606.Screenshot_5F00_2.png" /&gt;&lt;/p&gt;
&lt;p&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/3201.Screenshot_5F00_4.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441231?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 17:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56a3e4b0-b456-492b-bcbc-1983b014518d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Placing MCUboot secondary in the external flash by the&amp;nbsp;&lt;span&gt;partition manager&lt;/span&gt; would&lt;span&gt;&amp;nbsp;only be enabled by other dependencies options. See the&amp;nbsp;Dependencies of&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY"&gt;CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can check&amp;nbsp;.config under build/zephyr to see&amp;nbsp;whether it is enabled or not.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441198?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 14:26:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0485f9b-0e60-439f-b81b-62ef1166a309</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p&gt;I&amp;#39;m using a custom board, should I add the use of a secondary section there?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441163?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 12:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53751087-298d-4eef-ac5a-dc78042bf047</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;No, you could let the partition manager handle it.&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: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441150?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 12:20:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2b026fa-d3d2-42f8-a8e4-b816c73be3a6</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;Do I need to add pm_static.yml to the root of the project?&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/441000?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 15:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ec0e917-4644-4eb2-811a-fb3edf004e42</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You need to add the overlay with&amp;nbsp;pm-ext-flash to both the application and MCUboot. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100107/fota-with-external-flash"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To use SPI external memory, it needs the following configs &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;for child_image\mcuboot\boards\*board.config &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;# MCUboot requires a large stack size, otherwise an MPU fault will occur
CONFIG_MAIN_STACK_SIZE=10240

CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000

# Enable flash operations
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y

# This must be increased to accommodate the bigger images.
CONFIG_BOOT_MAX_IMG_SECTORS=256

CONFIG_LOG=y
CONFIG_LOG_MODE_MINIMAL=y 

### Ensure Zephyr logging changes don&amp;#39;t use more resources
CONFIG_LOG_DEFAULT_LEVEL=0

### Decrease footprint by ~4 KB in comparison to CBPRINTF_COMPLETE=y
CONFIG_CBPRINTF_NANO=y

CONFIG_NORDIC_QSPI_NOR=n

CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096

# If you don&amp;#39;t add this when setting CONFIG_SPI=y, you&amp;#39;ll get a lot of undefined references from the nrfx spim driver
# E.G. &amp;quot;undefined reference to `z_impl_k_sleep&amp;#39;&amp;quot;
CONFIG_MULTITHREADING=y

CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y&lt;/pre&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;for application&amp;nbsp;external_flash\boards&lt;span&gt;\&lt;/span&gt;&lt;span&gt;*board&lt;/span&gt;.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2021 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
################################################################################

# SPI Flash
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096

CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
################################################################################
# Enable flash operations.
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y

# Enable the LittleFS file system.
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y
CONFIG_PM_PARTITION_SIZE_LITTLEFS=0x7000&lt;/pre&gt;&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: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/440974?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 13:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:096c8915-8fe9-4084-a958-c81610c911fa</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p&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/6087.Screenshot_5F00_4.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/3201.Screenshot_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/440962?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 12:39:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f30fccdb-cc00-4991-b942-16d6e0e51000</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please run the following command under build folder:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;ninja partition_manager_report&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then post the memory layout. Let&amp;#39;s see whether the&amp;nbsp;&lt;span&gt;&amp;quot;mcuboot_secondary&amp;quot; is on the external flash or not.&amp;nbsp;&lt;/span&gt;&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: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/440890?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 08:19:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a46ae74a-3f9d-42aa-8f9d-19a4fb593d97</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;p&gt;&lt;span&gt;I need &amp;quot;mcuboot_secondary&amp;quot; to be on external flash&amp;nbsp;(AT45DB0).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash (AT45DB0) with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/440886?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 08:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb0be443-e4a1-4498-8fff-3279e012d1a0</guid><dc:creator>SavchenkoIvan</dc:creator><description>&lt;pre class="tw-data-text tw-text-large tw-ta" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;Thanks for the quick feedback!&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="tw-data-text tw-text-large tw-ta" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;I did as you wrote. The project started building without errors.&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;But I see that the flash is still used by the nRF52810 to write the firmware image:&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/1184.Screenshot_5F00_4.png" /&gt;&lt;br /&gt;&lt;span&gt;I need to place specify that the image will be placed on an external flash (AT45DB0).&lt;br /&gt;I can give my project to you, maybe it will help you?&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>