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

BLE Mesh & Uart0 without serial support

Hello nordic team,
I have a question regarding BLE Mesh and Uart0:


The InfoCenter is saying that Uart0 is blocked when using the serial Support. I don't wan't to use the serial support and use the Nordic as application controller aswell.
Does anyone has practical experience if the Uart0 is completely free if you are not using the serial support?


Unfortunately I don't have any DevKits here yet to test it with the examples.

Thanks in advance!

  • Hi Tim,  

    As the documentation states, the Mesh stack will only control the UART0 peripheral if Serial Support is compiled into the project, i.e if the following files are added to you project and their API are used your code:

    nrf5_SDK_for_Mesh_v2.2.0_src\mesh\serial\src\nrf_mesh_serial.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial_bearer.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial_handler_common.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial_handler_access.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial_handler_config.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial_handler_openmesh.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial_handler_prov.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial_handler_dfu.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial_handler_mesh.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial_handler_models.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial_handler_device.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/nrf_mesh_serial.c
    nrf5_SDK_for_Mesh_v2.2.0_src/mesh/serial/src/serial_handler_app.c

    If not, you can use the UART0 peripheral as you see fit. 

    Best regards

    Bjørn 

  • Hi Tim,

    The UART0 is free if you are not using the Mesh Serial. I tested with my nRF52840 DK. The configuration is similar to using the uart peripheral in the BLE SDK example.

Related