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)

Parents
  • 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

Reply
  • 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

Children
No Data
Related