No output to UART console when CONFIG_BT=y

There is no output to UART console when I set CONFIG_BT=y in prj.conf

peripheral_lbs sample project in ncs V2.0.2 can't printk anything.  

  • The message *** Booting Zephyr OS build v3.1.99-ncs1 *** coming out at 

    • TX at P1.01
    • RX at P0.29

    may be from the NetCore and I am looking for the output from AppCore.  Let me try your suggestion to disable the UART at NetCore first.

  • The message *** Booting Zephyr OS build v3.1.99-ncs1 *** coming out at 

    • TX at P1.01
    • RX at P0.29

    is actually from the NetCore.   I got the output of AppCore using RTT, so my application is running fine.  It is just somehow the UART pins of NetCore  are connected as specified in the overlay file for AppCore!!!!

    I will need your guidance to re-route the AppCore UART to 

    • TX at P1.01
    • RX at P0.29

    so I don't need to use RTT for it.

    Anyway, it is interesting that the UART of NetCore is actually mapped to that for the NetCore.   However, it is better to document it and print messages from AppCore and NetCore.   Both print the same message*** Booting Zephyr OS build v3.1.99-ncs1 ***  at the beginning.  Hard to tell if it has been re routed.

    Thanks for your great help!!!

  • Let me clarify.  I am able to use my custom board RTT for the AppCore with 

    CONFIG_SERIAL=n
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_RTT_CONSOLE=y
    CONFIG_UART_CONSOLE=n
    in prj.conf
    and I got some blue tooth messages from the AppCore
    Starting Zombie Bluetooth Peripheral LBS example
    I: 2 Sectors of 4096 bytes
    I: alloc wra: 0, fd0
    I: data wra: 0, 1c
    I: No ID address. App must call settings_load()
    Bluetooth initialized
    Advertising successfully started
    and I got *** Booting Zephyr OS build v3.1.99-ncs1  *** from UART with 
    • TX at P1.01
    • RX at P0.29

    What I need is to flip the RTT and  UART.   With AppCore messages come out from UART and NetCore messages come out from RTT.

    My custom board has only one UART, so I use it for the AppCore with shell commands.

    Need to re-route with different configuration.

    Thanks for helping.

    JC

  • By setting 

    CONFIG_SERIAL=y or n in child_image/hci_rpmsg.conf 
    I can see or not see *** Booting Zephyr OS build v3.1.99-ncs1 ***. on the UART console connected to my custom board running application built with overlay file nrf5340dk_nrf5340_cuppapp.overlay setting 
    • TX at P1.01
    • RX at P0.29

    The important point is I am using overlay file for AppCore to configure the UART pins but turning on/off tx/rx data with CONFIG_SERIAL for child image which is running in the NetCore!!!!

    This is the reason that I think the message *** Booting Zephyr OS build v3.1.99-ncs1 *** on my console connected to the AppCore UART is actually the bootup message from the NetCore.

    Now, I can disable the NetCore UART

    The next step is to configure AppCore UART to

    • TX at P1.01
    • RX at P0.29

    Do you have any suggestion.   Thanks for your help.

     
  • With CONFIG_SERIAL=n in child_image/hci_rpmsg.conf, I can shut down the UART of NetCore, but setting. 

    CONFIG_UART_CONSOLE=y
    CONFIG_SERIAL=y
    in the prj.conf does not send any bootup message from the AppCore to 
    • TX at P1.01
    • RX at P0.29
Related