Zephyr shell on an nRF52840 board

I'm trying to build a basic shell sample on a custom board based on nRF52840 

In the proj.conf file I have

CONFIG_SHELL=y
CONFIG_SHELL_GETOPT=y 
CONFIG_SHELL_BACKENDS=y
CONFIG_SHELL_BACKEND_SERIAL=y
CONFIG_SHELL_ECHO_STATUS=y
I get the following compile error
'__device_dts_ord_DT_CHOSEN_zephyr_shell_uart_ORD' undeclared (first use in this function)
What am I missing?
Thank you
Parents Reply
  • Follow up question

     I have logging enabled with the following config items

    CONFIG_LOG=y
    CONFIG_LOG_PRINTK=y
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG2_MODE_IMMEDIATE=y
     CONFIG_LOG2_MODE_DEFERRED  
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_DEFAULT_LEVEL=4
    When I added uart I see the logging in the uart console as well as in the JLink RTT viewer
    How do I disable logging in the UART console ?  I only need my custom commands to appear there. 
    Thank you
Children
Related