<?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>How to port the SMP Service to the peripheral_uart to support DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104954/how-to-port-the-smp-service-to-the-peripheral_uart-to-support-dfu</link><description>Dear Support Team 
 We would like to port the SMP Service to the peripheral_uart sample to support DFU and the NCS version we used is v2.4.0. 
 Below are what I have done for the peripheral_uart sample. 
 1) I copied all files in the smp_svr\src to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Nov 2023 13:40:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104954/how-to-port-the-smp-service-to-the-peripheral_uart-to-support-dfu" /><item><title>RE: How to port the SMP Service to the peripheral_uart to support DFU</title><link>https://devzone.nordicsemi.com/thread/454222?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 13:40:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d67286e-eb6d-4835-b59f-65a01a46399b</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately BLE DFU on only one slot is not supported in NCS, so the only options are to keep minimizing the application by optimization and/or feature removal or to add an external flash for BLE DFU if you don&amp;#39;t wish to do serial recovery&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to port the SMP Service to the peripheral_uart to support DFU</title><link>https://devzone.nordicsemi.com/thread/454104?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 04:34:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0c4e89a-1fa3-4270-b8e8-e1ced38cb65d</guid><dc:creator>Tom.Fu</dc:creator><description>&lt;p&gt;Hi AHaug&lt;/p&gt;
&lt;p&gt;Many thanks for the detail guiding.&lt;/p&gt;
&lt;p&gt;When I built this project for the nRF52840, it got the memory report like the screenshot below. It has exceeded 240kB by 55.79kB.&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/pastedimage1699242216911v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;After I tried, I found that it is difficult to squeeze the size of the firmware to&amp;nbsp;&lt;span&gt;within ~240kB by&amp;nbsp;removing x amount of features.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After I added the below kconfgs in the prj.conf, it could not be built successfully.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#Squeeze 
CONFIG_I2C=n
CONFIG_SPI=n
CONFIG_SIZE_OPTIMIZATIONS=y
CONFIG_ISR_STACK_SIZE=1024
CONFIG_WATCHDOG=n
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_STDOUT_CONSOLE=n
CONFIG_PRINTK=n
CONFIG_EARLY_CONSOLE=n
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_IDLE_STACK_SIZE=64
CONFIG_MAIN_STACK_SIZE=256
CONFIG_PRIVILEGED_STACK_SIZE=0
CONFIG_MPSL_WORK_STACK_SIZE=256
CONFIG_ISR_STACK_SIZE=128
 
CONFIG_BT_HCI_TX_STACK_SIZE_WITH_PROMPT=y
CONFIG_BT_HCI_TX_STACK_SIZE=256
CONFIG_BT_RX_STACK_SIZE=256
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=13
CONFIG_BT_BUF_EVT_DISCARDABLE_COUNT=1
CONFIG_BT_BUF_EVT_RX_COUNT=1
CONFIG_BT_CONN_TX_MAX=2
CONFIG_BT_L2CAP_TX_BUF_COUNT=3
CONFIG_BT_BUF_ACL_TX_COUNT=1
CONFIG_BT_BUF_ACL_TX_SIZE=64&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Below is the bulit log.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/ncs/VSC2.4.0/peripheral_uart_smp
-- CMake version: 3.20.5
-- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
-- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
-- Found west (found suitable version &amp;quot;1.0.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52dk_nrf52832
-- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: C:/ncs/v2.4.0/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts
-- Found devicetree overlay: c:/ncs/VSC2.4.0/peripheral_uart_smp/app.overlay
-- Generated zephyr.dts: C:/ncs/VSC2.4.0/peripheral_uart_smp/build_1/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/ncs/VSC2.4.0/peripheral_uart_smp/build_1/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/ncs/VSC2.4.0/peripheral_uart_smp/build_1/zephyr/dts.cmake

warning: BT_RX_STACK_SIZE (defined at C:/ncs/v2.4.0/nrf\subsys\bluetooth\controller/Kconfig:73,
C:/ncs/v2.4.0/zephyr/subsys/bluetooth/host/Kconfig:125, subsys/bluetooth\host/Kconfig:125) was
assigned the value &amp;#39;256&amp;#39; but got the value &amp;#39;2200&amp;#39;. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_RX_STACK_SIZE and/or look up
BT_RX_STACK_SIZE in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: BT_BUF_EVT_RX_COUNT (defined at C:/ncs/v2.4.0/zephyr/subsys/bluetooth/common/Kconfig:127,
subsys/bluetooth\common/Kconfig:127) was assigned the value &amp;#39;1&amp;#39; but got the value &amp;#39;10&amp;#39;. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_BUF_EVT_RX_COUNT and/or look up
BT_BUF_EVT_RX_COUNT in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.


warning: BT_BUF_EVT_DISCARDABLE_SIZE (defined at
C:/ncs/v2.4.0/zephyr/subsys/bluetooth/common/Kconfig:137, subsys/bluetooth\common/Kconfig:137) was
assigned the value &amp;#39;13&amp;#39; but got the value &amp;#39;43&amp;#39;. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE and/or look up
BT_BUF_EVT_DISCARDABLE_SIZE in the menuconfig/guiconfig interface. The Application Development
Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
might be helpful too.


warning: BT_CONN_TX_MAX (defined at C:/ncs/v2.4.0/zephyr/subsys/bluetooth/host/Kconfig:293,
Parsing C:/ncs/VSC2.4.0/peripheral_uart_smp/Kconfig
Loaded configuration &amp;#39;C:/ncs/v2.4.0/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832_defconfig&amp;#39;
Merged configuration &amp;#39;c:/ncs/VSC2.4.0/peripheral_uart_smp/prj.conf&amp;#39;
Merged configuration &amp;#39;c:/ncs/VSC2.4.0/peripheral_uart_smp/overlay-bt.conf&amp;#39;
subsys/bluetooth\host/Kconfig:293) was assigned the value &amp;#39;2&amp;#39; but got the value &amp;#39;3&amp;#39;. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_CONN_TX_MAX and/or look up
BT_CONN_TX_MAX in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: PRINTK (defined at subsys/debug/Kconfig:202) was assigned the value &amp;#39;n&amp;#39; but got the value
&amp;#39;y&amp;#39;. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_PRINTK and/or look up PRINTK in
the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.


warning: EARLY_CONSOLE (defined at subsys/debug/Kconfig:221) was assigned the value &amp;#39;n&amp;#39; but got the
value &amp;#39;y&amp;#39;. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_EARLY_CONSOLE and/or look up
EARLY_CONSOLE in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.


warning: user value 256 on the int symbol BT_RX_STACK_SIZE (defined at C:/ncs/v2.4.0/nrf\subsys\bluetooth\controller/Kconfig:73, C:/ncs/v2.4.0/zephyr/subsys/bluetooth/host/Kconfig:125, subsys/bluetooth\host/Kconfig:125) ignored due to being outside the active range ([1024, 65536]) -- falling back on defaults

warning: user value 1 on the int symbol BT_BUF_EVT_RX_COUNT (defined at C:/ncs/v2.4.0/zephyr/subsys/bluetooth/common/Kconfig:127, subsys/bluetooth\common/Kconfig:127) ignored due to being outside the active range ([2, 255]) -- falling back on defaults

warning: user value 13 on the int symbol BT_BUF_EVT_DISCARDABLE_SIZE (defined at C:/ncs/v2.4.0/zephyr/subsys/bluetooth/common/Kconfig:137, subsys/bluetooth\common/Kconfig:137) ignored due to being outside the active range ([43, 255]) -- falling back on defaults

warning: user value 2 on the int symbol BT_CONN_TX_MAX (defined at C:/ncs/v2.4.0/zephyr/subsys/bluetooth/host/Kconfig:293, subsys/bluetooth\host/Kconfig:293) ignored due to being outside the active range ([3, 255]) -- falling back on defaults

error: Aborting due to Kconfig warnings

CMake Error at C:/ncs/v2.4.0/zephyr/cmake/modules/kconfig.cmake:339 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/ncs/v2.4.0/nrf/cmake/modules/kconfig.cmake:29 (include)
  C:/ncs/v2.4.0/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
  C:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:8 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE&amp;#39; &amp;#39;-DWEST_PYTHON=C:\ncs\toolchains\31f4403e35\opt\bin\python.exe&amp;#39; &amp;#39;-Bc:\ncs\VSC2.4.0\peripheral_uart_smp\build_1&amp;#39; -GNinja -DBOARD=nrf52dk_nrf52832 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DBOARD_ROOT:STRING=c:/ncs/vsc2.4.0/peripheral_uart_smp -DCONF_FILE:STRING=c:/ncs/VSC2.4.0/peripheral_uart_smp/prj.conf -DOVERLAY_CONFIG:STRING=c:/ncs/VSC2.4.0/peripheral_uart_smp/overlay-bt.conf -DDTC_OVERLAY_FILE:STRING=c:/ncs/VSC2.4.0/peripheral_uart_smp/app.overlay &amp;#39;-Sc:\ncs\VSC2.4.0\peripheral_uart_smp&amp;#39;

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For the cost and the customer requirement reason, we didn&amp;#39;t want to used the&amp;nbsp;external flash or use serial recovery. Is it possible to use the one slot for the BLE DFU? If yes, may be we can try it and how to implementation? Many thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to port the SMP Service to the peripheral_uart to support DFU</title><link>https://devzone.nordicsemi.com/thread/451908?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 08:38:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fefcdcf7-a40c-49b5-a16f-b43ec926ec02</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="Tom.Fu"]But I could not find the file of &amp;#39;&lt;em&gt;ninja partition_manager report&amp;#39;&amp;nbsp; like the screenshot below showing.&amp;nbsp;&lt;/em&gt;Did you mean the&amp;nbsp;partitions.yml file? Below code is the content of the&amp;nbsp;partitions.yml file．[/quote]
&lt;p&gt;No worries, I will guide you to how to do this, but the partition manager is fine for now&lt;/p&gt;
&lt;p&gt;For the partition manager report, you can either use cmd when building and enter&amp;nbsp;&lt;em&gt;&amp;#39;west build -t partition_manager_report&amp;#39;,&amp;nbsp;&lt;/em&gt;or navigate to &amp;lt;your_project&amp;gt;/build and enter &amp;#39;&lt;em&gt;ninja partition_manager report&amp;#39;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The output should be similar to this&amp;nbsp;&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/2068.pastedimage1698134490451v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The other option which is built in the extension is found under actions and named &amp;#39;&lt;em&gt;Memory report&amp;#39;&lt;/em&gt;&amp;nbsp;&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/6470.pastedimage1698136749873v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="Tom.Fu"]Because of the cost of the nRF52832 is cheaper than nRF52840, so we still would like to use the nRF52832 for the project. Is there any other way to integrate the spm service to the peripheral_uart for the nRF52832? Many thanks.[/quote]
&lt;p&gt;That is understandable and I will guide you to some pointers for how to do this, but there are a couple of points that are essential for your understanding to reach the goal. You might already know this, but I&amp;#39;m stating it nonetheless&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The error you see is a memory related issue that is caused by that the application with DFU support is too large for the device you&amp;#39;re developing with&lt;/li&gt;
&lt;li&gt;When you add DFU support to your application, you will in practice reduce the available flash you have for an application to less than half of the total flash on the device.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Why do you half the available flash?&lt;/p&gt;
&lt;p&gt;This is explained in &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/index.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As seen in&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/index.html"&gt;this section&lt;/a&gt;, what you do is adding a secondary application slot where you will temporary hold the new firmware. This needs to be&amp;nbsp;&lt;em&gt;&lt;strong&gt;atleast&lt;/strong&gt;&lt;/em&gt; as large as the primary application slot, + the swap area illustrated&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To resolve item 2&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You will have to&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Optimize the application w.r.t ROM and RAM, see the following links for some resources for how to do this
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/test_and_optimize.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/test_and_optimize.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/debunking-misconceptions-a-technical-analysis-of-nrf5-sdk-and-nrf-connect-sdk"&gt;Debunking misconceptions: A technical analysis of nRF5 SDK and nRF Connect SDK&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Optimize MCUboot:
&lt;ul&gt;
&lt;li&gt;Investigate the nRF Machine Learning application to see how this is done:&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/machine_learning/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/machine_learning/README.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Optimize by further removing other features from the sample&lt;/li&gt;
&lt;li&gt;Add an external flash where you have your secondary mcuboot image
&lt;ul&gt;
&lt;li&gt;See this sample for how to do this&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_uart_feat_external_flash"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp/mcuboot_smp_uart_feat_external_flash&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;And the final method which looses quite a lot of safety w.r.t redundancy is to use serial recovery without a secondary slot
&lt;ul&gt;
&lt;li&gt;See these samples for how to do this&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery&lt;/a&gt;&amp;nbsp;which uses one application slot instead of two slots which the smp server uses&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Recommended steps:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;See how large the application is when you build for the nRF52840. Is it possible to fit this within ~240kB? (This is just a rough number, and not necessarily accurate)
&lt;ul&gt;
&lt;li&gt;If thats an &amp;quot;absoluete no&amp;quot;, then move on to either add external flash or use serial recovery&lt;/li&gt;
&lt;li&gt;If it is a &amp;quot;yes, I can remove x amount of features&amp;quot; by using the guides I&amp;#39;ve linked, then try to squeeze the size of the firmware down to fit&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;I also recommend that you use static partitioning&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#adding-a-static-partition"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#adding-a-static-partition&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is a lot of resources and information, so please take the time to go through the samples and docs to properly understand them and see if you can apply them to your project&lt;/p&gt;
&lt;p&gt;If you have any other questions after doing this, then please reach out and I&amp;#39;ll do my best to answer them&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to port the SMP Service to the peripheral_uart to support DFU</title><link>https://devzone.nordicsemi.com/thread/451868?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 03:10:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f61834-8599-42f5-98a4-628c79688ed5</guid><dc:creator>Tom.Fu</dc:creator><description>&lt;p&gt;Hi AHaug&lt;/p&gt;
&lt;p&gt;Many thanks for supporting and guiding.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:27px;max-width:346px;" height="27" src="https://devzone.nordicsemi.com/resized-image/__size/692x54/__key/communityserver-discussions-components-files/4/pastedimage1698115396146v1.png" width="346" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It could be&amp;nbsp;compiled successfully for nRF52840DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1698115608597v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But I could not find the file of &amp;#39;&lt;em&gt;ninja partition_manager report&amp;#39;&amp;nbsp; like the screenshot below showing.&amp;nbsp;&lt;/em&gt;Did you mean the&amp;nbsp;partitions.yml file? Below code is the content of the&amp;nbsp;partitions.yml file．&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0xc200
  end_address: 0x42000
  region: flash_primary
  size: 0x35e00
littlefs_storage:
  address: 0x7a000
  end_address: 0x80000
  placement:
    before:
    - end
  region: flash_primary
  size: 0x6000
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  end_address: 0xc200
  placement:
    align:
      start: 0x1000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0xc000
  end_address: 0x42000
  orig_span: &amp;amp;id001
  - app
  - mcuboot_pad
  region: flash_primary
  sharers: 0x1
  size: 0x36000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x42000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x35e00
  span: *id002
mcuboot_secondary:
  address: 0x42000
  end_address: 0x78000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x1000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x36000
settings_storage:
  address: 0x78000
  end_address: 0x7a000
  placement:
    align:
      start: 0x1000
    before:
    - end
  region: flash_primary
  size: 0x2000
sram_primary:
  address: 0x20000000
  end_address: 0x20010000
  region: sram_primary
  size: 0x10000
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&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/pastedimage1698115823971v3.png" alt=" " /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&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/pastedimage1698115860918v4.png" alt=" " /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;Sorry, I also could not find the icon in the below screenshot for the&amp;nbsp;built in tool in the extension.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1698116118693v5.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Because of the cost of the nRF52832 is cheaper than nRF52840, so we still would like to use the nRF52832 for the project. Is there any other way to integrate the spm service to the peripheral_uart for the nRF52832? Many thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to port the SMP Service to the peripheral_uart to support DFU</title><link>https://devzone.nordicsemi.com/thread/451713?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2023 12:16:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7c1991e-6fb8-4a62-8998-abca8d1062fd</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like you&amp;#39;ve done the merging of the samples correct, but the issue comes from ROM and RAM restrictions from your hardware.&amp;nbsp; I assume you&amp;#39;re using a 512kB ROM / 64kB RAM version of the nRF52832?&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Could you try to compile it for the nRF52840DK and see if the errors are still present? i.e build target &amp;#39;&lt;em&gt;nrf52840dk_nrf528440&lt;/em&gt;&amp;#39;&lt;/li&gt;
&lt;li&gt;Could you either&amp;nbsp;
&lt;ol&gt;
&lt;li&gt;Navigate to the build folder of your project in ncs and enter &amp;#39;&lt;em&gt;ninja partition_manager report&amp;#39; &lt;/em&gt;and post the result here, or&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Use the built in tool in the extension to show me the partitioning?&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>