<?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>nrf52840dongle_nrf52840 Exceed Flash, with smp_svr sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118040/nrf52840dongle_nrf52840-exceed-flash-with-smp_svr-sample</link><description>I have looked at forum_post_1 , forum_link_2 and forum_link_3 . In short, I am following instructions for my_dongle . I have ncs 2.6.1. I have clones of nordics git repos in the proj directory. -- The mcuboot is &amp;gt; git remote -v &amp;gt; origin github.com/..</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jan 2025 13:30:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118040/nrf52840dongle_nrf52840-exceed-flash-with-smp_svr-sample" /><item><title>RE: nrf52840dongle_nrf52840 Exceed Flash, with smp_svr sample</title><link>https://devzone.nordicsemi.com/thread/519569?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 13:30:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8346b664-eb6e-42f5-8db4-56643285869b</guid><dc:creator>Spector</dc:creator><description>&lt;p&gt;Okay - Update is as follows.&lt;br /&gt;&lt;br /&gt;Created a very simple program as per &lt;br /&gt;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf_desktop/doc/dfu.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf_desktop/doc/dfu.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Using version 2.9.0&lt;br /&gt;&lt;br /&gt;Added the &amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/kconfig/index.html#CONFIG_MCUMGR_GRP_OS_MCUMGR_PARAMS"&gt;CONFIG_MCUMGR_GRP_OS_MCUMGR_PARAMS&lt;/a&gt; to the prj.conf.&lt;br /&gt;&lt;br /&gt;I can run the smpmgr and we are partially cooking. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840dongle_nrf52840 Exceed Flash, with smp_svr sample</title><link>https://devzone.nordicsemi.com/thread/519453?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 07:45:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15470e9f-3f40-4ea7-8419-2bfd385360d4</guid><dc:creator>Spector</dc:creator><description>&lt;p&gt;The intention is to only update by uart.&lt;br /&gt;&lt;br /&gt;We are only interested in drone remote id (from friendly drones). If we need to update the app. We update the zynq fpga (freertos) this in turn will control the power lines to the nrf52811, so we don&amp;#39;t need the smp_svr running as an app per se, just the mcuboot. When restarting, within the dfu wait period the command to read the image will be sent and then if it&amp;#39;s deemed to be old it will be updated.&lt;br /&gt;&lt;br /&gt;I will now attempt on sdk nrf v2.9.0 (i&amp;#39;m hoping later is bettter) to&amp;nbsp;implement with config_mcumgr_grp_os_mcumgr_params. I will keep you posted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840dongle_nrf52840 Exceed Flash, with smp_svr sample</title><link>https://devzone.nordicsemi.com/thread/519450?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 07:37:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85979c0f-70cc-4e90-b123-40c9fc98c261</guid><dc:creator>Hieu</dc:creator><description>[quote user="Spector"]The goal is using one of our dev boards - be it ubx_bmd360eval_nrf52811 or nrf52840dongle[/quote]
&lt;p&gt;Do you intend to use the nRF52811 for your final product? Please know that it has very limited flash memory and you are even more likely to run into the kind of issues you are having here. Using dual slot DFU with it has been very challenging, and we&amp;nbsp;almost always can only recommend single slot (which means no OTA DFU, only over wired connection).&lt;/p&gt;
[quote user="Spector"]In mcuboot (or smp_svr) so I can integrate it with a smp management tool like &lt;br /&gt;&lt;a href="https://github.com/intercreate/smpmgr"&gt;https://github.com/intercreate/smpmgr&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If this works, then I have the fun experience of recreating a DFU ctrl in FreeRTOS.&lt;br /&gt;&lt;br /&gt;With the smpmgr at the moment i get the following responses when in &amp;quot;mcuboot&amp;quot;. Whereas I&amp;#39;ve had no luck communicating with the smp_svr..wtih mcumgr[/quote]
&lt;p&gt;The warning&amp;nbsp;seems to say that the client failed trying to read MCUmgr parameters. You could try enabling this:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/kconfig/index.html#CONFIG_MCUMGR_GRP_OS_MCUMGR_PARAMS"&gt;CONFIG_MCUMGR_GRP_OS_MCUMGR_PARAMS&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Further looking into this kind of issue would be of a different topic, and I would like to ask you to do so over a new DevZone case though, to keep each case focused on a single topic.&lt;/p&gt;
&lt;p&gt;On the original topic, is the Dongle working for you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840dongle_nrf52840 Exceed Flash, with smp_svr sample</title><link>https://devzone.nordicsemi.com/thread/519422?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 21:26:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c96e8dd7-8cbd-4837-b25d-90c1b77805b3</guid><dc:creator>Spector</dc:creator><description>&lt;p&gt;The goal is using one of our dev boards - be it ubx_bmd360eval_nrf52811 or nrf52840dongle&lt;br /&gt;&lt;br /&gt;In mcuboot (or smp_svr) so I can integrate it with a smp management tool like &lt;br /&gt;&lt;a id="" href="https://github.com/intercreate/smpmgr"&gt;https://github.com/intercreate/smpmgr&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If this works, then I have the fun experience of recreating a DFU ctrl in FreeRTOS.&lt;br /&gt;&lt;br /&gt;With the smpmgr at the moment i get the following responses when in &amp;quot;mcuboot&amp;quot;. Whereas I&amp;#39;ve had no luck communicating with the smp_svr..wtih mcumgr&lt;br /&gt;&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/pastedimage1737494753120v3.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840dongle_nrf52840 Exceed Flash, with smp_svr sample</title><link>https://devzone.nordicsemi.com/thread/519410?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 20:06:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7523cba8-2052-4d61-9787-55c8dae70d80</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Spector,&lt;/p&gt;
[quote user="Spector"]In the link for &amp;quot;my_dongle&amp;quot; the instructions would lead one to believe that they could simply compile the smp_svr with&amp;nbsp;&lt;br /&gt;west build -b nrf52840dongle/nrf52840 -d build/smp_svr zephyr/samples/subsys/mgmt/mcumgr/smp_svr[/quote]
&lt;p&gt;Our apologies for the inconvenience, but this is one of the documentations that are very outdated. The content you were referring from was &lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/4f23741a931c0ac871bd5fa23be1d75a7c013ca6#diff-b7b577c54d1133086633492d137bb8a1e992375b1c45412df35494abdb1cee34"&gt;written in 2019&lt;/a&gt;. Since then, there seem to have only been mass automated&amp;nbsp;document updates due to changes in the toolchain and documentation rendering.&lt;/p&gt;
&lt;p&gt;Back at the time the guide was written, perhaps the smp_svr sample was simple enough that it can fit on the nRF52840 Dongle with the chain loadings setup. However, since then, there have been a lot of improvement made&amp;nbsp;to the features&amp;nbsp;that sample uses, as well as the sample code itself.&amp;nbsp;That increases the memory footprint, and&amp;nbsp;causes the linker&amp;nbsp;error you have:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;region `FLASH&amp;#39; overflowed by 7768 bytes&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The simplest way to overcome this is to use a different sample instead. I can recommend the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/zephyr/samples/bluetooth/beacon/README.html#bluetooth_beacon"&gt;Beacon&lt;/a&gt;&amp;nbsp;sample &lt;em&gt;&lt;span style="text-decoration:underline;"&gt;with CONFIG_BOOTLOADER_MCUBOOT=y&lt;/span&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The other options&amp;nbsp;to work with the nRF52840 Dongle should also leave more space for the application.&lt;/p&gt;
&lt;p&gt;If the smp_svr sample is a must,&amp;nbsp;you can attempt &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/test_and_optimize/optimizing/memory.html"&gt;memory optimization&lt;/a&gt; for the SMP server.&lt;/p&gt;
&lt;p&gt;Finally, there is &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/exploring-the-benefits-of-mcuboots-compressed-image-support"&gt;the new compressed image feature&lt;/a&gt;&amp;nbsp;that should also give some more space for the application. You will need to rebuild MCUboot though.&lt;/p&gt;
&lt;p&gt;All that said, may I ask what you intend to use the Dongle&amp;nbsp;for, or is there any goal overall, independent of the dongle?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840dongle_nrf52840 Exceed Flash, with smp_svr sample</title><link>https://devzone.nordicsemi.com/thread/519269?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 11:47:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af35e760-0739-4e62-99e1-91f82d4f15d6</guid><dc:creator>Spector</dc:creator><description>&lt;p&gt;I have generated more information.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;This is a capture of steps taken to try and implement the smp_svr demo.

1. Open terminal, make project work directory
❯ cd ~/work
❯ mkdir nrf_connect
❯ cd nrf_connect
❯ code .

2. Within vscode nrf_connect extension tab.
* Create a new application.
* Copy a sample
* Select nRF Connect SDK v2.9.0
* Select zephyr/samples/subsys/mgmt/mcumgr/smp_svr
* Name it ~/work/nrf_connect/discord_demo/

3. Setup vscode workspace so that it&amp;#39;s in ~/work/nrf_connect/discord_demo/

4. Within the nrf_connect applications add a build configuration.
* Set toolchain and sdk (2.9.0)
* Set board target nrf52840dongle/nrf52840
* For Extra Kconfig fragments add overlay-cdc.conf (imported with when project was created with sample)
* For Base Devicetree overlay add usb.overlay (imported with when project was created with sample)
* Set build directory name - build
* click build
!!ERROR!!
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/wtr/work/nrf_connect/discord_demo/dongle/mcuboot/zephyr/zephyr_pre0.map 
: &amp;amp;&amp;amp; ccache /home/wtr/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -Os -DNDEBUG -gdwarf-4 -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/home/wtr/work/nrf_connect/discord_demo/dongle/mcuboot/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/libarch__arm__core.a  zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a  zephyr/arch/arch/arm/core/mpu/libarch__arm__core__mpu.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/nrf52840/libsoc__nordic.a  zephyr/boards/nordic/nrf52840dongle/libboards__nordic__nrf52840dongle.a  zephyr/drivers/usb/device/libdrivers__usb__device.a  zephyr/drivers/usb/common/nrf_usbd_common/libdrivers__usb__common__nrf_usbd_common.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/hwinfo/libdrivers__hwinfo.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/nrf/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/zcbor/libmodules__zcbor.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L/home/wtr/work/nrf_connect/discord_demo/dongle/mcuboot/zephyr  zephyr/arch/common/libisr_tables.a  -mcpu=cortex-m4  -mthumb  -mabi=aapcs  -mfpu=fpv4-sp-d16  -mfloat-abi=hard  -mfp16-format=ieee  -fuse-ld=bfd  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -Wl,-no-pie  /home/wtr/ncs/v2.9.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_platform_0.9.19.a  /home/wtr/ncs/v2.9.0/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a -L&amp;quot;/home/wtr/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m+fp/hard&amp;quot; -lc -lgcc &amp;amp;&amp;amp; cd /home/wtr/work/nrf_connect/discord_demo/dongle/mcuboot/zephyr &amp;amp;&amp;amp; /home/wtr/ncs/toolchains/b77d8c1312/usr/local/bin/cmake -E true
/home/wtr/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `text&amp;#39; will not fit in region `FLASH&amp;#39;
/home/wtr/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH&amp;#39; overflowed by 7912 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[10/20] No configure step for &amp;#39;discord_demo&amp;#39;
FAILED: _sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/mcuboot-build /home/wtr/work/nrf_connect/discord_demo/dongle/_sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/mcuboot-build 
cd /home/wtr/work/nrf_connect/discord_demo/dongle/mcuboot &amp;amp;&amp;amp; /home/wtr/ncs/toolchains/b77d8c1312/usr/local/bin/cmake --build .
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/wtr/ncs/toolchains/b77d8c1312/usr/local/bin/cmake --build /home/wtr/work/nrf_connect/discord_demo/dongle
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840dongle_nrf52840 Exceed Flash, with smp_svr sample</title><link>https://devzone.nordicsemi.com/thread/518939?ContentTypeID=1</link><pubDate>Sat, 18 Jan 2025 07:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a4bc747-76fd-4d8c-825c-03e223ab68f0</guid><dc:creator>Spector</dc:creator><description>&lt;p&gt;For information sake notice the comment with 5 steps on the forum thread &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110997/sample-smp_svr-on-nrf52840-dongle-text-does-not-fit-in-flash"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840dongle_nrf52840 Exceed Flash, with smp_svr sample</title><link>https://devzone.nordicsemi.com/thread/518620?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2025 12:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cf92ae2-6b2e-493b-af83-dd0ac6002928</guid><dc:creator>Spector</dc:creator><description>[quote userid="115767" url="~/f/nordic-q-a/118040/nrf52840dongle_nrf52840-exceed-flash-with-smp_svr-sample/518577"]&lt;p&gt;Unfortunately, a pre-configured &lt;code&gt;smp_server&lt;/code&gt; sample for the nRF52840 dongle is not available.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;In the link for &amp;quot;my_dongle&amp;quot; the instructions would lead one to believe that they could simply compile the smp_svr with&amp;nbsp;&lt;br /&gt;west build -b nrf52840dongle/nrf52840 -d build/smp_svr zephyr/samples/subsys/mgmt/mcumgr/smp_svr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840dongle_nrf52840 Exceed Flash, with smp_svr sample</title><link>https://devzone.nordicsemi.com/thread/518577?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2025 09:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b590fe24-f2e8-4047-8a93-1ac5fbca94cc</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;My colleague, who is more experienced, will review this in the coming days, as he is currently swamped with other work.&lt;/p&gt;
&lt;p&gt;In the meantime, I would like to clarify a few points:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The &lt;code&gt;smp_server&lt;/code&gt; sample from Zephyr does not support the nRF52840 dongle out of the box. Some settings will need to be adjusted and updated.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The nRF52840 dongle has a different memory layout compared to the development kit. You may need to modify the memory partitioning to accommodate the bootloader that comes pre-installed on the dongle (as explained in forum post 1).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The nRF52840 dongle does not have exposed hardware UART lines and typically uses USB for communication. You will need to enable USB in your configuration.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you have already customized the &lt;code&gt;smp_server&lt;/code&gt; sample, please share the changes you have made.&lt;/p&gt;
[quote user=""]Is Nordic Semi using AI to write documentation? Has a human been involved in the loop testing it?[/quote]
&lt;p&gt;There is no involvement of AI in creating technical documentation. We have a dedicated team responsible for that.&lt;/p&gt;
[quote user=""]Is there a stable build i can just use without tweaking the &amp;quot;sample&amp;quot; files.[/quote]
&lt;p&gt;Unfortunately, a pre-configured &lt;code&gt;smp_server&lt;/code&gt; sample for the nRF52840 dongle is not available.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>