nrf52840dongle_nrf52840 Exceed Flash, with smp_svr sample

I have looked at forum_post_1forum_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.
--

---mcuboot
 |
 +-zephyr


The mcuboot is 
> git remote -v
>     origin github.com/.../sdk-mcuboot (fetch)
> git status
>     On branch v2.0.99-ncs1-1

The zephyr branch is 
> git remote -v
>     github.com/.../sdk-zephyr (fetch)
> git status
>     On branch v3.599-ncs-1

Following instructions from my_dongle OPTION 2 I am able build mcuboot, and flash using nrfutil (Which btw needs instructions for the rust version that needs to install the pkg before use).

However when I get to the west build of the smp_svr it fails with 

/home/Spector/ncs/toolchains/2be090971e/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' will not fit in region `FLASH'
/home/Spector/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 7768 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[204/223] Linking C static library zephyr/kernel/libkernel.a
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /home/Spector/work/_play/dongle_play/dongle_smp_svr/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /home/Spector/work/_play/dongle_play/dongle_smp_svr/mcuboot/zephyr/zephyr.hex /home/Spector/work/_play/dongle_play/dongle_smp_svr/mcuboot/zephyr/zephyr.elf


I get that some configuration tweaks are required in the board config files, but i'm concerned because i would have thought....that a tags version v2.6.1 would be working with the provided examples.

Is Nordic Semi using AI to write documentation? Has a human been involved in the loop testing it?

Is there a stable build i can just use without tweaking the "sample" files.

Regards,
Spector

Parents
  • Hello,

    My colleague, who is more experienced, will review this in the coming days, as he is currently swamped with other work.

    In the meantime, I would like to clarify a few points:

    1. The smp_server sample from Zephyr does not support the nRF52840 dongle out of the box. Some settings will need to be adjusted and updated.

    2. 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).

    3. 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.

    If you have already customized the smp_server sample, please share the changes you have made.

    Is Nordic Semi using AI to write documentation? Has a human been involved in the loop testing it?

    There is no involvement of AI in creating technical documentation. We have a dedicated team responsible for that.

    Is there a stable build i can just use without tweaking the "sample" files.

    Unfortunately, a pre-configured smp_server sample for the nRF52840 dongle is not available.

    Kind Regards,

    Abhijith

  • Unfortunately, a pre-configured smp_server sample for the nRF52840 dongle is not available.

    In the link for "my_dongle" the instructions would lead one to believe that they could simply compile the smp_svr with 
    west build -b nrf52840dongle/nrf52840 -d build/smp_svr zephyr/samples/subsys/mgmt/mcumgr/smp_svr

Reply Children
No Data
Related