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

Enabling CONFIG_UART_0_NRF_UART in nrf connect

I want to use CONFIG_UART_0_NRF_UART instead of CONFIG_UART_0_NRF_UARTE. But I don't get any option for this because CONFIG_UART_0_NRF_UARTE is selected by default .

I want to have 

#
# Serial Drivers
#
CONFIG_UART_NRFX=y
CONFIG_UART_0_NRF_UART=y
# CONFIG_UART_0_INTERRUPT_DRIVEN is not set
CONFIG_UART_0_ASYNC=y
# CONFIG_UART_0_NRF_PARITY_BIT is not set
CONFIG_NRF_UART_PERIPHERAL=y

But always getting 

#
# Serial Drivers
#
CONFIG_UART_NRFX=y
CONFIG_UART_0_NRF_UARTE=y
CONFIG_UART_0_ENHANCED_POLL_OUT=y
# CONFIG_UART_0_INTERRUPT_DRIVEN is not set
CONFIG_UART_0_ASYNC=y
# CONFIG_UART_0_NRF_PARITY_BIT is not set
CONFIG_UART_0_NRF_TX_BUFFER_SIZE=32
# CONFIG_UART_0_NRF_HW_ASYNC is not set
# CONFIG_UART_0_NRF_ASYNC_LOW_POWER is not set
CONFIG_UART_ENHANCED_POLL_OUT=y
CONFIG_NRF_UARTE_PERIPHERAL=y

Also if I put the required configuration in the proj.config, cmake fails to compile the project.

This is what I can get.

  • I simply used this and in the final .config it seems that UART0 is enabled instead of UARTE0

    # Enable the UART driver
    CONFIG_UART_NRFX=y
    CONFIG_NRFX_UART0=y
    # CONFIG_UART_0_INTERRUPT_DRIVEN is not set
    CONFIG_UART_0_ASYNC=y
    # CONFIG_UART_0_NRF_PARITY_BIT is not set
    CONFIG_SERIAL=y

    If you see any other results then there must be some other dependency you might have unknowingly included that pulls in UARTE aswell.

  • Hi Susheel, 

    I use the chat example and copy paste your lines in that but still it doesnot work. UARTE option is bydefault enabled. 

    The configuration file is as below:

    #
    # Copyright (c) 2020 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    CONFIG_NCS_SAMPLES_DEFAULTS=y

    CONFIG_BT_CONN_TX_MAX=16

    CONFIG_BT_MESH_TX_SEG_MSG_COUNT=5
    #large size require large ram
    CONFIG_BT_MESH_RX_SEG_MSG_COUNT=5
    CONFIG_BT_MESH_TX_SEG_RETRANS_COUNT=1
    CONFIG_BT_MESH_NETWORK_TRANSMIT_COUNT=0
    CONFIG_BT_MESH_RELAY_RETRANSMIT_COUNT=0
    CONFIG_BT_MESH_RPL_STORE_TIMEOUT=-1
    CONFIG_PRINTK=y
    CONFIG_LOG=y
    CONFIG_LOG_BUFFER_SIZE=2048
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=n
    CONFIG_RTT_CONSOLE=y
    #
    # Copyright (c) 2020 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    CONFIG_NCS_SAMPLES_DEFAULTS=y

    # General configuration
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
    CONFIG_FLASH=y
    CONFIG_FLASH_MAP=y
    CONFIG_NVS=y
    CONFIG_SETTINGS=y
    CONFIG_HWINFO=y
    CONFIG_DK_LIBRARY=y

    # Bluetooth configuration
    CONFIG_BT=y
    CONFIG_BT_COMPANY_ID=0x0059
    CONFIG_BT_DEVICE_NAME="Mesh Chat"
    CONFIG_BT_L2CAP_TX_MTU=69
    CONFIG_BT_L2CAP_TX_BUF_COUNT=8
    CONFIG_BT_OBSERVER=y
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_SETTINGS=y

    # Disable unused Bluetooth features
    CONFIG_BT_CTLR_DUP_FILTER_LEN=0
    CONFIG_BT_CTLR_LE_ENC=n
    CONFIG_BT_DATA_LEN_UPDATE=n
    CONFIG_BT_PHY_UPDATE=n
    CONFIG_BT_CTLR_CHAN_SEL_2=n
    CONFIG_BT_CTLR_MIN_USED_CHAN=n
    CONFIG_BT_CTLR_PRIVACY=n

    # Bluetooth Mesh configuration
    CONFIG_BT_MESH=y
    CONFIG_BT_MESH_RELAY=y
    CONFIG_BT_MESH_FRIEND=y
    CONFIG_BT_MESH_ADV_BUF_COUNT=13
    CONFIG_BT_MESH_RX_SEG_MAX=10
    CONFIG_BT_MESH_TX_SEG_MAX=10
    CONFIG_BT_MESH_PB_GATT=y
    CONFIG_BT_MESH_GATT_PROXY=y
    CONFIG_BT_MESH_DK_PROV=y

    # Enable Bluetooth mesh models debug logs
    CONFIG_BT_DEBUG_LOG=y
    CONFIG_BT_MESH_DEBUG=y
    CONFIG_BT_MESH_DEBUG_MODEL=y

    # Enable Shell module and use UART as a backend
    CONFIG_SHELL=y
    CONFIG_SHELL_BACKEND_SERIAL=y

    CONFIG_PRINTK=y
    CONFIG_UART_CONSOLE=n
    CONFIG_LOG=y
    CONFIG_LOG_BUFFER_SIZE=2048
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=n
    CONFIG_RTT_CONSOLE=y
    CONFIG_LOG_DEFAULT_LEVEL=4

    # Enable the UART driver
    CONFIG_UART_NRFX=y
    CONFIG_NRFX_UART0=y
    # CONFIG_UART_0_INTERRUPT_DRIVEN is not set
    CONFIG_UART_0_ASYNC=y
    # CONFIG_UART_0_NRF_PARITY_BIT is not set
    CONFIG_SERIAL=y

    Can you please let me know which example have you use?

  • I used a simple bluetooth sample and not the Mesh sample. Can you please attach your project so that i can do some tests here and not spend too much time on configuring stuff attempting to match yours.

  • Sorry for late response, it seems like the attachment needs authentication to download which I can't get pass through. Note that you can attach the zip files here in this thread.

Related