net core cant output log

my net core only output the boot information and i enable config_log that uart console will put some strange info

CONFIG_LOG_DEFAULT_LEVEL=3

appcore output to ttyACM1 and netcore is ttyACM0

another question : appcore uart console will make wrong while i use mcumgr command

  • Hi,

    Ok.

    wangrj said:

    the ttyACM0 should output hci_rpmsg sample's log  after netboot,  

    So I'm curious about why HCI sample don't have log output?

    The project config file you shared earlier, was that for the HCI sample?

    I want to look at the prj.conf file that you use for the HCI sample on the netcore. 

    Did you add CONFIG_LOG=y to the prj.conf file of the hci_rpmsg sample and do a pristine build?

    Can you share the config file from the build folder? It should be at <sample>/build/hci_rpmsg/zephyr/.config after doing a pristine build. 

    regards

    Jared 

  • hi Jared  

    let me show you detail  

    there are one father image (hello sample) and three child image  (mcuboot hci_rpmsg b0n)

    1. this is father image prj.conf   that include CONFIG_BT and CONFIG_BOOTLOADER_MCUBOOT

    2.  b0n image   , i  already added CONFIG_LOG

    3.hci image  that  added CONFIG_LOG

    4 mcuboot image 

     

    final  let us to see the putty console ,   in the netcore ttyACM0 only shows "boot zephyr (b0n)"   ,not show hci_image log

    i would like to know  why  netcore can not completly output log 

  • Hi there,

    This Is the steps I did to turn on logging on the netcore on the nRF5340.

    1.I first choose a trivial BLE example such as the peripheral uart.

    2.Then I proceed to add an overlay file called hci_rpmsg.conf in the child image folder to enable the log:

    3. Next, I do a pristine build of the peripheral uart example with the nRF5340dk_nRF5340_cpuapp option. I then check the build folder of the child image and verify that log is enabled:

    4. I flash the example and check if log is printed:

    Note, that the netcore also shows the printk output that is added to the hci_rpmsg example is also printed.

    Attached is the project so you can test and verify on your side:

    peripheral_uart.7z

    best regards

    Jared

  • 1. my serial console can not display complete  ,  that is my focus

    2. can you output  LOG_INFO  LOG_ERR  LOG_DBG ?   in the title  i tried use CONFIG_LOG_DEFAULT_LEVEL=3 to display LOG_DBG

  • Hi,

    Did you try the example I shared? You're still not able to display the log with my example? Can you try to change the serial terminal to something else? Are you able to display it if you use Termite on a windows computer?

    regards

    Jared 

Related