This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF5340 BLE Mesh setup problem in nrf connect sdk v1.4.99-dev1

We bought 4 NRF5340 PDK and trying to setup BLE mesh.
As suggested in the getting started guide, there are two BLE mesh example samples from nordic and zephyr.
However, for common BLE examples, it is said that before building any example it is better to program hci_rpmsg to the network core. But it is not mentioned how to configure for BLE mesh examples.
I was able to run BLE mesh light example once but afterward, the board was not recognized in mobile even after rebuilding.

When I tried to flash other board with BLE mesh light control or light switch build error halts the process in "lc_pwm_led.c": 'unsupported board: PWM-led0 device tree alias is not defined".
I would like to know how to correctly set up the BLE mesh light control and BLE mesh light on the board. Following the getting started guide is incomplete.
Other questions like, how to reset the mesh light back to an unprovisioned state after once provisioned.
If we are using nordic BLE sample examples 'light, light control, light switch', is there any guide that how to add more resources such as SPI/i2c, ADC to the same.
Do nordic BLE mesh example uses soft device or HCI of zephyr. What should be the correct configuration to get sample BLE mesh light-light control running?

Thank you.

  • Hi,

    I will ask the mesh team to give a comment on this. 

    You can have a look at this thread.

  • Thank you for the reply.

    Again an elaborated question.

    We bought NRF5340 PDK - v0.8.0

    The getting started guide available is not connectable with respect to the compatibility of hardware, software.

    Question 1: What is the difference between NRF5340PDK vs NRF5340DK. We ordered last week and got delivered PDK. But in NRF connect SDK v1.4.99-dev1, sometimes it shows nrf5340PDK board is deprecated.

    Question 2: How to get started with NRF5340PDK, and what are the examples tested and supported for the board. In the PDK, we can run blinky but not blinky_pwm. The nrf_connect_sdk option in segger embedded studio often throws cmake_error when selected NRF5340PDK for BLE mesh light examples.

    Question 3: Does BLE Mesh supported in NRF5340PDK? Only mesh light example is flashing but not, BLE Mesh Light control or BLE Mesh Light switch. Error: Unsupported board, CPU unable to halt, CMake error for selecting NRF5340PDK.

    Question 4: How to configure device tree alias for NRF5340PDK. Either overlay file is not found or editing DTS file not affecting any changes. For some examples using the board name NRF5340DK works, and for some other NRF5340PDK. What is the suggested configuration for NRF5340 v0.8.0?

    Question 5: What is the actual difference between NORDIC BLE mesh vs Zephyr BLE mesh setup. How to chose a nordic soft device for NORDIC BLE Mesh examples? Does there any setup guide available for BLE Mesh in NRF5340PDK.

    Question 6: What are the necessary fundamental kernel or RTOS or soft device architecture knowledge expected for developing a BLE Mesh application on NRF5340. It is very hard to set up even the sample examples and unable to resolve any build errors.

    Question 7: Guide me to the resources to actually choose the right combination of NRF_connect_SDK for NRF5340 v0.8.0; replication configuration of the other board setup does not work for all examples. 

  • Also, how to see debug output in nordic specific embedded studio for NRF_CONNECT_SDK examples. No RTT settings seen and project options are disable or un-selectable (greyed out).

  • Hi,

    Answering your initial post:

    A correction to the thread I referred to in my previous reply. It seems like after NCS v1.4, Mesh samples should run with the default config on the network core

    Note that the Bluetooth: Mesh Light Control example does not support the nRF5340. This is not an issue with the mesh stack itself, but the way the sample interacts with the hardware.

    how to reset the mesh light back to an unprovisioned state after once provisioned.

    You can reset the device to an unprovisioned state by calling bt_mesh_reset().

    If we are using nordic BLE sample examples 'light, light control, light switch', is there any guide that how to add more resources such as SPI/i2c, ADC to the same.

    There are no specific guide for this but perhaps look at the zephyr documentation, including the devicetree guide, and the device model. There are a lot of samples on driver usage both in NCS and Zephyr, those are a good starting point. There's nothing about the mesh stack that should interfere with the HW drivers.

    new said:
    Also, how to see debug output in nordic specific embedded studio for NRF_CONNECT_SDK examples. No RTT settings seen and project options are disable or un-selectable (greyed out).

    Try adding "CONFIG_SERIAL=y" to prj.conf.

    I will come back to you regarding the other questions soon.

  • Thank you for the quick support.

    I lately found that mesh light control, mesh sensor client, mesh sensor server not supported for NRF5340 and got disappointed. I expected those features for NRF5340. Do these examples support NRF5340 in the future connect SDK releases?

    Even after "CONFIG_SERIAL=y" mentioned in Proj.conf; I am unable to see the printk - output in the embedded studio debug window. However, using PUTTY, I get the "printk" logs. Is there any setting required to see printk output in the embedded studio?

Related