Thingy53 server doesn't show LOGs

Hi,

i'm trying to creating a project where my thingy53 is a coap_server thread node that sends environmental data to a coap_clinet (nRF5340).

The problem i found is that, even if i enable LOGs, none of them is shown on the nrf terminal, only works printk(), but not in the main function.

i thought the roblem was correalted to USB CDC ACM that i enabled following the peripheral_uart sample... i don't know if i followed the right procedure, i only compy and pasted overlay files and config commands.

How could i fix these problems? is the correct way to enamble the MTD mode in my thingy?
this is the project:
thanks a lot
simon

  • even with that, nothing change...

    i tried to add these line of code, took by the file thingy53_nrf5340_cpuapp.conf  in the boards folder of the peripheral_uart sample:

    # Config logger
    CONFIG_LOG=y
    CONFIG_USE_SEGGER_RTT=n
    CONFIG_LOG_BACKEND_RTT=n
    CONFIG_LOG_BACKEND_UART=y
    CONFIG_SHELL_LOG_BACKEND=y
    CONFIG_NET_LOG=y
    CONFIG_NET_CONFIG_LOG_LEVEL_INF=y
    CONFIG_LOG_MODE_DEFERRED=y
    CONFIG_LOG_PRINTK=y
    CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=1024
    CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=4000

    and logs looks better:

    Connected via Serial Port with settings COM5 115200 8n1 rtscts:off
    
    [00:00:00.383,209] <inf> regulator_fixed: sensor-pwr-ctrl sync: 0
    [00:00:00.383,239] <inf> regulator_fixed: regulator-3v3-ctrl sync: 0
    [00:00:00.392,547] <inf> ieee802154_nrf5: nRF5 802154 radio initialized
    [00:00:00.465,667] <inf> fs_nvs: 2 Sectors of 4096 bytes
    [00:00:00.465,698] <inf> fs_nvs: alloc wra: 0, fe8
    [00:00:00.465,698] <inf> fs_nvs: data wra: 0, 0
    [00:00:00.466,735] <inf> net_l2_openthread: State changed! Flags: 0x00038200 Current role: disabled
    [00:00:00.467,193] <inf> net_l2_openthread: OpenThread version: OPENTHREAD/thread-reference-20200818-ncs1-rc3-764-g0d19f9112; Zephyr; Sep  9 2022 09:48:17
    [00:00:00.470,214] <inf> net_l2_openthread: Network name: Station1
    [00:00:00.470,886] <inf> net_l2_openthread: State changed! Flags: 0x3107d11d Current role: detached
    *** Booting Zephyr OS build v3.1.99-ncs1-1  ***
    [00:00:01.197,021] <inf> usb_cdc_acm: Device suspended
    [00:00:01.398,040] <inf> usb_cdc_acm: Device resumed
    [00:00:01.528,198] <inf> usb_cdc_acm: Device configured
    [00:00:01.720,733] <inf> net_l2_openthread: State changed! Flags: 0x301812a4 Current role: child
    [00:00:10.706,939] <inf> net_l2_openthread: State changed! Flags: 0x00000064 Current role: router

Related