<?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>mcuboot_smp_ble west build failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102974/mcuboot_smp_ble-west-build-failed</link><description>I try to build https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_ble . But west build failed with a lot of undefined symbols. 
 D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Oct 2024 04:12:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102974/mcuboot_smp_ble-west-build-failed" /><item><title>RE: mcuboot_smp_ble west build failed</title><link>https://devzone.nordicsemi.com/thread/506809?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2024 04:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53123919-2114-40af-b637-aaf9458623e8</guid><dc:creator>Dinesh Vaghela</dc:creator><description>&lt;p&gt;&lt;strong&gt;For the Error as below&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;warning: MCUMGR (defined at subsys/mgmt/mcumgr/Kconfig:5) was assigned the value &amp;#39;y&amp;#39; but got the&lt;/span&gt;&lt;br /&gt;&lt;span&gt;value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: ZCBOR (=n).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Suggestion:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;if you are using Zephyr &amp;gt;3.6.0 , upgrade to latest west.yml file and update the zephyr RTOS&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the west.yml file should include ZCBOR Keyword between line number 20 to 50&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After this above errors should resolve and build should work.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot_smp_ble west build failed</title><link>https://devzone.nordicsemi.com/thread/442405?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 03:05:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb5f5298-4e53-4c9d-9020-dbda077d35ab</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4263.mcuboot_5F00_smp_5F00_ble.zip"&gt;devzone.nordicsemi.com/.../4263.mcuboot_5F00_smp_5F00_ble.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot_smp_ble west build failed</title><link>https://devzone.nordicsemi.com/thread/442404?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 03:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d10416f4-2fb6-4c84-859d-b6fea9605776</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your great support! I can build successfully on 2.4.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot_smp_ble west build failed</title><link>https://devzone.nordicsemi.com/thread/442146?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 22:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ac556a1-2b66-4ebe-9d4c-e46a9f0c8358</guid><dc:creator>nordicator_prim3</dc:creator><description>&lt;p&gt;Here is a version of the .zip you sent that will compile for version 2.4.1 (and most likely 2.4.0).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/mcuboot_5F00_smp_5F00_ble_5F00_2_5F00_4_5F00_1.zip"&gt;devzone.nordicsemi.com/.../mcuboot_5F00_smp_5F00_ble_5F00_2_5F00_4_5F00_1.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If the attachment does not show up, then the only changes that needed to be made were in the prj.comf file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NET_BUF=y
CONFIG_ZCBOR=y
CONFIG_CRC=y
CONFIG_MCUMGR=y
CONFIG_STREAM_FLASH=y
CONFIG_FLASH_MAP=y

# 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_BT=y
CONFIG_BT_PERIPHERAL=y

# Allow for large Bluetooth data packets.
CONFIG_BT_L2CAP_TX_MTU=498
CONFIG_BT_BUF_ACL_RX_SIZE=502
CONFIG_BT_BUF_ACL_TX_SIZE=502
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251

# Enable the Bluetooth mcumgr transport (unauthenticated).
CONFIG_MCUMGR_TRANSPORT_BT=y
CONFIG_MCUMGR_TRANSPORT_BT_AUTHEN=n
CONFIG_MCUMGR_TRANSPORT_BT_CONN_PARAM_CONTROL=y

# Enable the Shell mcumgr transport.
CONFIG_BASE64=y
CONFIG_SHELL=y
CONFIG_SHELL_BACKEND_SERIAL=y
CONFIG_MCUMGR_TRANSPORT_SHELL=y

# Enable the mcumgr Packet Reassembly feature over Bluetooth and its configuration dependencies.
# MCUmgr buffer size is optimized to fit one SMP packet divided into five Bluetooth Write Commands,
# transmitted with the maximum possible MTU value: 498 bytes.
CONFIG_MCUMGR_TRANSPORT_BT_REASSEMBLY=y
CONFIG_MCUMGR_TRANSPORT_NETBUF_SIZE=2475
CONFIG_MCUMGR_GRP_OS_MCUMGR_PARAMS=y
CONFIG_MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE=4608

# Enable the LittleFS file system.
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y

# Enable file system commands
CONFIG_MCUMGR_GRP_FS=y

# Enable the storage erase command.
CONFIG_MCUMGR_GRP_ZBASIC=y
CONFIG_MCUMGR_GRP_ZBASIC_STORAGE_ERASE=y

# Disable Bluetooth ping support
CONFIG_BT_CTLR_LE_PING=n

# Disable shell commands that are not needed
CONFIG_CLOCK_CONTROL_NRF_SHELL=n
CONFIG_DEVICE_SHELL=n
CONFIG_DEVMEM_SHELL=n
CONFIG_FLASH_SHELL=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I probably have some unneeded entries in there but this at least works for nrf52840dk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot_smp_ble west build failed</title><link>https://devzone.nordicsemi.com/thread/442143?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 22:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:723854f2-4ac3-438f-806a-064f5d869090</guid><dc:creator>nordicator_prim3</dc:creator><description>&lt;p&gt;I&amp;#39;ve confirmed that the sample .zip you provided builds on v2.3.0 only, so apparently it was written for that. We just have to look at the changes shown in smp_svr example between 2.3.0 and 2.4.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot_smp_ble west build failed</title><link>https://devzone.nordicsemi.com/thread/442142?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 22:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6522075-f957-41aa-b32d-bf7dcdc96cd9</guid><dc:creator>nordicator_prim3</dc:creator><description>&lt;p&gt;I&amp;#39;m dealing with the exact same error trying to upgrade my custom firmware from version 2.3.0 to 2.4.1 and my firmware includes the functionality of the smp_svr example that that github references. There were significant changes moving from v2.3.0 to v2.4.0. The smp_svr example that that github linked to was for v2.1.0 so the errors you&amp;#39;re seeing are likely due to the differences between v2.1.0 and v2.4.0.&lt;/p&gt;
&lt;p&gt;Some of these changes include needing CONFIG_ZCBOR=y. Also, the terminology of other configuration has changed e.g. it looks like&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MCUMGR_CMD_IMG_MGMT&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;is being replaced by&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_IMG_MANAGER&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MCUMGR_GRP_IMG&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;so the changes seem quite drastic.&lt;/p&gt;
&lt;p&gt;If you want to see how different they are, then look at the smp_svr example from v2.3.0 and compare the .conf and src files to the same smp_svr example from v2.4.0. There were also less extreme changes I had to make to get smp_svr to work when moving from 2.1.0-&amp;gt;2.2.0-&amp;gt;2.3..0.&lt;/p&gt;
&lt;p&gt;I just now ran into this problem, but am confident that this is why you are seeing these errors. I will update you on this thread once I migrate from v2.3.0 -&amp;gt; 2.4.1 to confirm/deny that these are the only problems.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(in short, the code you&amp;#39;re trying to use was written [likely] for v2.1.0 and you&amp;#39;re building with v2.4.0)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot_smp_ble west build failed</title><link>https://devzone.nordicsemi.com/thread/442027?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 07:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8de5fb9-fe55-4b21-a169-dcb3f3123dda</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0777.mcuboot_5F00_smp_5F00_ble.zip"&gt;devzone.nordicsemi.com/.../0777.mcuboot_5F00_smp_5F00_ble.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>