This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf5340 Zephyr smp_svr bluetooth advertising issue

Hi, I want to enable Bluetooth support on nrf5340 for FOTA. Serial seems to work fine but BT doesn't seem to advertise.

I get the following error after flashing smp_svr with relevant overlays for BT and serial on appcore.

Does smp_svr include the components required by netcore automatically once flashed with CONFIG_BOOTLOADER_MCUBOOT=y on nrf5340?

or have I done anything wrong?

Can anybody help me out please?

*** Booting Zephyr OS build v2.7.0-rc3-136-g0e1ecb373a1b ***
I: Starting bootloader
I: Primary image: magic=good, swap_type=0x2, copy_done=0x1, image_ok=0x1
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0x10000
I: Jumping to the first image slot
*** Booting Zephyr OS build v2.7.0-rc3-136-g0e1ecb373a1b ***
[00:00:00.006,317] <wrn> bt_hci_core: Failed to set device name (-12)

  • Hey ,

    Thanks for the support!

    I managed to figure out the issue. Initially I used the original zephyr project as I got to know that it supports nrf5340.

    The result I got above was when I tried to flash smp_svr example within the zephyr project.(https://github.com/zephyrproject-rtos/zephyr) But didn't seem to activate the necessary components on the network core when flashing.

    But eventually I realized the soc requires separate images to be flashed onto the 2 cores so that one image enables the Bluetooth component on the network core where as the other image essentially host the smp_svr on the app core.

    I had to go with a multi-image build which didn't seem to work with Zephyr project alone - it only builds a single image hex. Didn't see any proper documentation on Zephyr project on that.

    I then tried NCS which properly built the merged.hex. Thanks to NCS, BT now advertises! Hope someone find this information useful.

    *** Booting Zephyr OS build v2.6.99-ncs1  ***
    I: Starting bootloader
    I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3                                                
    I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Boot source: none
    I: Swap type: none
    I: Bootloader chainload address offset: 0xc000
    *** Booting Zephyr OS build v2.6.99-ncs1  ***
    [00:00:00.012,512] <inf> smp_sample: build time: Oct 14 2021 17:16:10
    [00:00:00.038,543] <inf> smp_bt_sample: Bluetooth initialized
    [00:00:00.041,961] <inf> smp_bt_sample: Advertising successfully started

    Br,

    Thusara

  • Hi,

    I am also trying to look into this smp_svr using blueetooth on a nrf5340DK board.. I am currently stuck with the west sign tool. see error below

    this is only one of the issues that I am struggling with going thru this documentation. issue with installation of go to install mcumgr wasnt straightforward. someone says that the issue was because of the proxy when doing go set command because my PC is behind a corporate network. 

    developer.nordicsemi.com/.../README.html

    ***************************************

    PS C:\Users\RDElab\Documents\eco-L\demoBoardnrf5340\smp_svr2\smp_svr2> west sign -t imgtool -- --key bootloader/mcuboot/root-rsa-2048.pem
    === image configuration:
    partition offset: 65536 (0x10000)
    partition size: 262144 (0x40000)
    rom start offset: 0 (0x0)
    === signing binaries
    unsigned bin: C:\Users\RDElab\Documents\eco-L\demoBoardnrf5340\smp_svr2\smp_svr2\build\zephyr\zephyr.bin
    signed bin: C:\Users\RDElab\Documents\eco-L\demoBoardnrf5340\smp_svr2\smp_svr2\build\zephyr\zephyr.signed.bin
    Usage: imgtool.EXE sign [OPTIONS] INFILE OUTFILE

    Error: Invalid value for '-H' / '--header-size': Minimum value for -H/--header-size is 32
    FATAL ERROR: command exited with status 2: 'c:\Users\RDElab\ncs\v1.8.0\toolchain\opt\bin\Scripts\imgtool.EXE' sign --version 0.0.0+0 --align 4 --header-size 0 --slot-size 262144 --key bootloader/mcuboot/root-rsa-2048.pem 'C:\Users\RDElab\Documents\eco-L\demoBoardnrf5340\smp_svr2\smp_svr2\build\zephyr\zephyr.bin' 'C:\Users\RDElab\Documents\eco-L\demoBoardnrf5340\smp_svr2\smp_svr2\build\zephyr\zephyr.signed.bin'
    PS C:\Users\RDElab\Documents\eco-L\demoBoardnrf5340\smp_svr2\smp_svr2>

    Lanz

  • Hi, 

    Please create new support for your own issue. Thanks. 

    -Amanda

Related