<?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>code build issue with mcuboot and mass storage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102483/code-build-issue-with-mcuboot-and-mass-storage</link><description>Hi, 
 I switched from NCS v2.3.0 to NCS v2.4.0. My code was building correctly with mcuboot and flash disk with NCS v2.3.0 , but now I am getting the following error with newer SDK: 
 
 For generate the above error, please add below configuration in smp_svr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Aug 2023 14:15:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102483/code-build-issue-with-mcuboot-and-mass-storage" /><item><title>RE: code build issue with mcuboot and mass storage</title><link>https://devzone.nordicsemi.com/thread/440150?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 14:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:557c55ec-898e-4c4b-b742-5b45ccb2c7fc</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you able to figure out which thread it is failing in? You can try to set CONFIG_THREAD_NAME=y in prj.conf to see if you get the name of the thread in the assert, or you can debug the application and enable breakpoints on Zephyr fatal errors to see which thread is running when it asserts.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code build issue with mcuboot and mass storage</title><link>https://devzone.nordicsemi.com/thread/439940?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2023 13:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:505d6ea8-df28-4dad-9d05-430cc5148fc1</guid><dc:creator>Mithilesh Yadav </dc:creator><description>&lt;p&gt;Thank you for sharing valuable knowledge.&lt;/p&gt;
&lt;p&gt;When I am running combined project then getting following error without manifest:&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/pastedimage1691157318853v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Despite increasing the&amp;nbsp;stack size, heap size and thread stack size, the error persists.&lt;/p&gt;
&lt;p&gt;Please help me.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code build issue with mcuboot and mass storage</title><link>https://devzone.nordicsemi.com/thread/439936?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2023 13:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e85bb08b-25fe-4029-b136-e07220a89aaa</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The advantage of using a manifest repo is that you can easily configure the version of nRF Connect SDK, and other repositories, associated with your driver directly in the west.yml manifest file. So it can be more organized in that regard. It is perfectly fine to not use a manifest repo as well, but then you need to make sure that the installed SDK is the correct version associated with your driver.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code build issue with mcuboot and mass storage</title><link>https://devzone.nordicsemi.com/thread/439724?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 13:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8536df3-a50a-409f-b77c-1786326360a5</guid><dc:creator>Mithilesh Yadav </dc:creator><description>&lt;p&gt;Yes, I ran the west update as well as pull the fresh SDK but got the same error.&lt;/p&gt;
&lt;p&gt;I successfully tested a sensor using an out-of-tree driver by following the sample you provided, and its working fine.&lt;/p&gt;
&lt;p&gt;Could you please explain the pros and cons of developing an application with oot driver using manifest and without manifest repo?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code build issue with mcuboot and mass storage</title><link>https://devzone.nordicsemi.com/thread/439625?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 07:53:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe8c63ba-9642-4d8c-82cb-a9dae09dc36c</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you run west update after updating the revision of the nRF Connect SDK in your repository?&lt;/p&gt;
&lt;p&gt;Using the application as the manifest repository is the recommended method for out-of-tree drivers, but it is possible to install nRF Connect SDK with Toolchain Manager and create an oot driver without west manifest.&lt;/p&gt;
&lt;p&gt;As an example, I have made an oot driver without west manifest. I copied the BME680 sensor driver and simply renamed it to BME681. To use it in an application, I added it with ZEPHYR_EXTRA_MODULES in the application&amp;#39;s CMakeLists.txt, for example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;set(ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/../out_of_tree_driver_bme681)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This code is not thoroughly 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;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/out_5F00_of_5F00_tree_5F00_driver_5F00_bme681.zip"&gt;devzone.nordicsemi.com/.../out_5F00_of_5F00_tree_5F00_driver_5F00_bme681.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code build issue with mcuboot and mass storage</title><link>https://devzone.nordicsemi.com/thread/439593?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 05:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aadfc090-1aa1-4f9c-96d4-ee02b55bf4ad</guid><dc:creator>Mithilesh Yadav </dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Code build successfully When I installed the SDK by nRF Connect desktop toolchain manager application.&lt;/p&gt;
&lt;p&gt;But I need to develop project for OOT driver.&lt;/p&gt;
&lt;p&gt;Is there any way I can develop my project with OOT tree driver using NCS(Installed by toolchain manager).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code build issue with mcuboot and mass storage</title><link>https://devzone.nordicsemi.com/thread/439546?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 14:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a797cd7-2145-424f-8632-2389d598cbc7</guid><dc:creator>Mithilesh Yadav </dc:creator><description>&lt;p&gt;Yes, sample path is correct. Let me install the NCS by Toolchain manager and check with it.&lt;/p&gt;
&lt;p&gt;Actually I need to develop out of tree driver, so I installed the NCS using the below link:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/ncs-example-application"&gt;https://github.com/nrfconnect/ncs-example-application&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code build issue with mcuboot and mass storage</title><link>https://devzone.nordicsemi.com/thread/439529?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 13:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4ad6129-5b19-4a4c-af9f-fe322c72a2f2</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I got some warnings about the external_flash partition, but still not the errors you are seeing. To verify, it is the SMP server sample located in &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v3.3.99-ncs1/samples/subsys/mgmt/mcumgr/smp_svr"&gt;zephyr/samples/subsys/mgmt/mcumgr/smp_svr&lt;/a&gt; you are testing? Have you made any other changes to the sample or the SDK itself?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code build issue with mcuboot and mass storage</title><link>https://devzone.nordicsemi.com/thread/439503?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 12:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6d98895-0a85-4c73-b807-d6e9e905625f</guid><dc:creator>Mithilesh Yadav </dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you try this with ncs v2.4.0.&lt;/p&gt;
&lt;p&gt;I can not upload any project due company policy restriction, smp_svr sample&amp;#39;s complete configuration is given below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;prj.conf:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Enable MCUmgr and dependencies.
CONFIG_NET_BUF=y
CONFIG_ZCBOR=y
CONFIG_CRC=y
CONFIG_MCUMGR=y
CONFIG_STREAM_FLASH=y
CONFIG_FLASH_MAP=y

# Some command handlers require a large stack.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2304
CONFIG_MAIN_STACK_SIZE=8192

# Ensure an MCUboot-compatible binary is generated.
CONFIG_BOOTLOADER_MCUBOOT=y

# Enable flash operations.
CONFIG_FLASH=y

# Required by the `taskstat` command.
CONFIG_THREAD_MONITOR=y

# Support for taskstat command
CONFIG_MCUMGR_GRP_OS_TASKSTAT=y

# Enable statistics and statistic names.
CONFIG_STATS=y
CONFIG_STATS_NAMES=y

# Enable most core commands.
CONFIG_FLASH=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUMGR_GRP_IMG=y
CONFIG_MCUMGR_GRP_OS=y
CONFIG_MCUMGR_GRP_STAT=y

# Enable logging
CONFIG_LOG=y
CONFIG_MCUBOOT_UTIL_LOG_LEVEL_WRN=y

# Disable debug logging
CONFIG_LOG_MAX_LEVEL=3

CONFIG_MCUBOOT_IMAGE_VERSION=&amp;quot;1.1.1&amp;quot;

#qspi
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y

#USB related configs
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT=&amp;quot;Zephyr MSC sample&amp;quot;
CONFIG_LOG=y
CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y
CONFIG_USB_MASS_STORAGE=y
CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y
CONFIG_USB_MASS_STORAGE_LOG_LEVEL_ERR=y

CONFIG_APP_MSC_STORAGE_FLASH_LITTLEFS=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;nrf52840dk_nrf52840.overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/delete-node/ &amp;amp;boot_partition;
/delete-node/ &amp;amp;slot0_partition;
/delete-node/ &amp;amp;slot1_partition;


&amp;amp;flash0 {
	partitions {
		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = &amp;lt;0x000000000 0x00010000&amp;gt;;
		};
		slot0_partition: partition@10000 {
			label = &amp;quot;image-0&amp;quot;;
			reg = &amp;lt;0x000010000 0x0000e8000&amp;gt;;
		};
	};
};

&amp;amp;mx25r64 {
	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;;
		};
		external_flash: partition@e8000 {
			label = &amp;quot;external flash&amp;quot;;
			reg = &amp;lt;0x0000e8000 0x000718000&amp;gt;;
		};
	};
};

/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};
	msc_disk0 {
		compatible = &amp;quot;zephyr,flash-disk&amp;quot;;
		partition = &amp;lt;&amp;amp;external_flash&amp;gt;;
		disk-name = &amp;quot;NAND&amp;quot;;
		cache-size = &amp;lt;4096&amp;gt;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;child_image/mcuboot/prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_MAIN_STACK_SIZE=10240

CONFIG_SIZE_OPTIMIZATIONS=y
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16

# Enable flash operations
CONFIG_FLASH=y

CONFIG_MULTITHREADING=y
CONFIG_BOOT_MAX_IMG_SECTORS=256

CONFIG_MCUBOOT_INDICATION_LED=y

CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000

CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

CONFIG_LOG=y
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_LOG_BACKEND_UART=y
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y 
CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD=y

CONFIG_FW_INFO_FIRMWARE_VERSION=1
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;child_image/mcuboot/boards/nrf52840dk_nrf52840.overlay:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};
};
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: code build issue with mcuboot and mass storage</title><link>https://devzone.nordicsemi.com/thread/439493?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 12:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d747d70-948d-4505-8ac8-4609b1c26950</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not able to reproduce the error by adding the configurations you mention in smp_svr sample. Can you upload a project where this can easily be reproduced?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>