<?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>ncs1.7 ota use external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82006/ncs1-7-ota-use-external-flash</link><description>Hello 
 I need to use external flash upgrade to be compatible with our old products.I found some information as follows，I can build and download it but I don&amp;#39;t know how to upgrade it. 
 https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_bootloader_external_flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Dec 2021 01:54:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82006/ncs1-7-ota-use-external-flash" /><item><title>RE: ncs1.7 ota use external flash</title><link>https://devzone.nordicsemi.com/thread/341966?ContentTypeID=1</link><pubDate>Mon, 06 Dec 2021 01:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b75d0127-7cb2-4ce3-a3a0-5d0281cd6903</guid><dc:creator>Август</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for your sharing,you can add these config at your child_image/mcuboot/prj.conf.&lt;br /&gt;Through uart0 maybe you can find the problem.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Maybe west flash is not good, you can use&amp;nbsp;nRF Connect-&amp;gt;Programmer it works ok&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_MODE_IMMEDIATE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_DEFAULT_LEVEL&lt;/span&gt;&lt;span&gt;=4&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PRINTK&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_MODE_MINIMAL&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_CONSOLE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_RTT_CONSOLE&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CONSOLE_HANDLER&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs1.7 ota use external flash</title><link>https://devzone.nordicsemi.com/thread/341832?ContentTypeID=1</link><pubDate>Fri, 03 Dec 2021 10:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36702005-f741-486a-b2b5-e1ac58a052e1</guid><dc:creator>Tom_H</dc:creator><description>&lt;p&gt;Hello!&lt;br /&gt;&lt;br /&gt;I managed to get the OTA process working on an nRF52840-DK using NCS version 1.7.1 and the external flash for the secondary MCUboot slot. My project is based on the SMP Server Sample (smp_svr) with overlay `overlay-bt.conf`. I used &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/ug_bootloader_external_flash.html"&gt;Using external flash memory partitions&lt;/a&gt; and &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/tests/modules/mcuboot/external_flash/child_image/mcuboot"&gt;NCS: mcu_boot/external_flash/child_image/mcuboot/&lt;/a&gt;&amp;nbsp; as a reference.&lt;br /&gt;&lt;br /&gt;Starting from the SMP Server sample project, I added the board overlay for the external flash and the configuration of the MCUboot child image.&lt;br /&gt;&lt;br /&gt;boards/nrf52840dk_nrf52840.overlay:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};
};
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;child_image/mcuboot/prj.conf:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2021 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# In order to provide board specific configurations to the MCUboot child image
# we also need to provide a base configuration for MCUboot. This file contains
# the basic configurations needed to successfully build and run MCUboot.

# MCUboot requires a large stack size, otherwise an MPU fault will occur
CONFIG_MAIN_STACK_SIZE=10240

# Set the size here so that the size of MCUBOOT_SECONDARY won&amp;#39;t change
# if the default value changes.
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x20000

CONFIG_DEBUG_OPTIMIZATIONS=y

# Enable flash operations
CONFIG_FLASH=y

# This value must match the size of the MCUboot primary partition.
CONFIG_PM_PARTITION_SIZE_MCUBOOT_SECONDARY=0xda000

# This must be increased to accommodate the bigger images.
CONFIG_BOOT_MAX_IMG_SECTORS=256

# Enable serial recovery
CONFIG_UART_CONSOLE=n
CONFIG_MCUBOOT_SERIAL=y
CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD=y

CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Additionally I have to add following configuration lines to the project configuration file to fix application startup and image verification.&lt;/p&gt;
&lt;p&gt;prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# This value must match the size of the MCUboot primary partition
CONFIG_PM_PARTITION_SIZE_MCUBOOT_SECONDARY=0xda000

CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The partition size of the secondary MCUboot slot have been updated in prj.conf and child_image/mcuboot/prj.conf to correspond with the CMake output (see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/ug_bootloader_external_flash.html"&gt;Using external flash memory partitions&lt;/a&gt;). To get image verification working for the secondary slot, it was necessary to add CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16 to both configuration files.&lt;br /&gt;&lt;br /&gt;Image upload and verification is working and has been tested with the MCUmgr image management tool. One remaining problem is, that the application does not boot after a j-Link flash. A second reset is required to get the application up running. Do you have any advice on how to fix this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs1.7 ota use external flash</title><link>https://devzone.nordicsemi.com/thread/340637?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 06:26:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33e6f4e1-57b4-4b26-8ef8-30252724e068</guid><dc:creator>Август</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Elfving,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I want to use bootloader-external-flash upgrade my application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So I modified the hello work project.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Below is my configuration&lt;br /&gt;&lt;br /&gt;CMakeLists.txt&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637821008794v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;external_flash_ota.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637821054736v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;mcuboot.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637821103990v3.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;52840.overlay&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637821155188v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;main.c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637821183667v5.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;partitions.yml&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637821218385v6.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But it can&amp;#39;t work&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637821330292v7.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Attached is my code，can you give me some advice?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ota.zip"&gt;devzone.nordicsemi.com/.../ota.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ncs1.7 ota use external flash</title><link>https://devzone.nordicsemi.com/thread/340587?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 15:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33c16d85-caab-460d-bd44-bdb5bf1b52fd</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The documentation you have is for the master, and isn&amp;#39;t that descriptive. &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/ug_bootloader_external_flash.html"&gt;Take a look at the one for the NCS version you are using instead.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And what do you mean by upgrading it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>