5340 BLE custom board remove uart0 from both app and network processors to free pins

Hi,

We have custom board files (copied from 5340dk dts files) and I wish to remove all redundant DK stuff from my DTS and free up pins.

Can I remove UART0 from both the app and network processors?
Is Uart 0 just uded for debug channels in both processors?

Until now I have been very selective about removing stuff; but this has lead to a few clashs; so now I want to rationalise this config so there is no risk of any misconfigurations.

In both app and network processor dts files one sees such as....

chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,uart-mcumgr = &uart0;
zephyr,bt-mon-uart = &uart0;
zephyr,bt-c2h-uart = &uart0;
};

How do I go about freeing these pins?

Regards,
Owain


Parents
  • Hi Owain,

    I believe it should work..

    Could you also try adding  these two CONFIGS into the prj.conf file ?

    CONFIG_SERIAL=n

    CONFIG_SHELL_BACKEND_UART=n 

    CONFIG_USE_SEGGER_RTT=y

    Regards,

    Swathy

  • Hi Swathy,

    my prj.conf as it currently stand for the app processor includes the following....

    CONFIG_PRINTK=y
    CONFIG_SHELL=y
    CONFIG_SHELL_DYNAMIC_CMDS=n
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_SHELL_BACKEND_RTT=y
    CONFIG_SHELL_PROMPT_RTT="nova2>"
    CONFIG_SHELL_STACK_SIZE=2048
    CONFIG_SHELL_BACKEND_SERIAL=n
    CONFIG_SHELL_ECHO_STATUS=n
    CONFIG_SHELL_TAB=y


    CONFIG_RTT_CONSOLE=y
    CONFIG_UART_CONSOLE=n

    CONFIG_CONSOLE=y
    CONFIG_LOG=y
    CONFIG_LOG_PRINTK=y

    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=n
    #CONFIG_LOG_PROCESS_THREAD=y
    CONFIG_LOG_BACKEND_RTT_BUFFER=2


    I don't think I can use CONFIG_SERIAL=n; I have a uart connection to my modem.

    The above works with uart0 enabled in the dts; as soon as disabled in dts I see nothing on RTT console and my Segger Embedded studio indicates bus fault.

    I have no time to debug at the moment; its not blocking me at the moment. Just freeing pins like this helps our HW developers. I will have to park till I have some bandwidth.

Reply
  • Hi Swathy,

    my prj.conf as it currently stand for the app processor includes the following....

    CONFIG_PRINTK=y
    CONFIG_SHELL=y
    CONFIG_SHELL_DYNAMIC_CMDS=n
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_SHELL_BACKEND_RTT=y
    CONFIG_SHELL_PROMPT_RTT="nova2>"
    CONFIG_SHELL_STACK_SIZE=2048
    CONFIG_SHELL_BACKEND_SERIAL=n
    CONFIG_SHELL_ECHO_STATUS=n
    CONFIG_SHELL_TAB=y


    CONFIG_RTT_CONSOLE=y
    CONFIG_UART_CONSOLE=n

    CONFIG_CONSOLE=y
    CONFIG_LOG=y
    CONFIG_LOG_PRINTK=y

    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_UART=n
    #CONFIG_LOG_PROCESS_THREAD=y
    CONFIG_LOG_BACKEND_RTT_BUFFER=2


    I don't think I can use CONFIG_SERIAL=n; I have a uart connection to my modem.

    The above works with uart0 enabled in the dts; as soon as disabled in dts I see nothing on RTT console and my Segger Embedded studio indicates bus fault.

    I have no time to debug at the moment; its not blocking me at the moment. Just freeing pins like this helps our HW developers. I will have to park till I have some bandwidth.

Children
No Data
Related